@Generated(value="software.amazon.awssdk:codegen") public final class CORSRule extends Object implements SdkPojo, Serializable, 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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CORSRule.Builder> |
serializableBuilderClass() |
CORSRule.Builder |
toBuilder() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public List<String> allowedHeaders()
Specifies which headers are allowed in a pre-flight OPTIONS request.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> allowedMethods()
Identifies HTTP methods that the domain/origin specified in the rule is allowed to execute.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> allowedOrigins()
One or more origins you want customers to be able to access the bucket from.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public 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).
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Integer maxAgeSeconds()
The time in seconds that your browser is to cache the preflight response for the specified resource.
public CORSRule.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CORSRule.Builder,CORSRule>
public static CORSRule.Builder builder()
public static Class<? extends CORSRule.Builder> serializableBuilderClass()
Copyright © 2018. All rights reserved.