@Generated(value="software.amazon.awssdk:codegen") public class CORSRule extends Object implements ToCopyableBuilder<CORSRule.Builder,CORSRule>
Modifier and Type | Class and Description |
---|---|
static interface |
CORSRule.Builder |
Modifier and Type | Method and Description |
---|---|
List<String> |
allowedHeaders()
Specifies which headers are allowed in a pre-flight OPTIONS request.
|
List<String> |
allowedMethods()
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
|
List<String> |
allowedOrigins()
One or more origins you want customers to be able to access the bucket from.
|
static CORSRule.Builder |
builder() |
boolean |
equals(Object obj) |
List<String> |
exposeHeaders()
One or more headers in the response that you want customers to be able to access from their applications (for
example, from a JavaScript XMLHttpRequest object).
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
maxAgeSeconds()
The time in seconds that your browser is to cache the preflight response for the specified resource.
|
static Class<? extends CORSRule.Builder> |
serializableBuilderClass() |
CORSRule.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public List<String> allowedHeaders()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> allowedMethods()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> allowedOrigins()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> exposeHeaders()
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Integer maxAgeSeconds()
public CORSRule.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CORSRule.Builder,CORSRule>
public static CORSRule.Builder builder()
public static Class<? extends CORSRule.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.