ToCopyableBuilder<CORSRule.Builder,CORSRule>
@Generated("software.amazon.awssdk:codegen") public class CORSRule extends Object implements ToCopyableBuilder<CORSRule.Builder,CORSRule>
Modifier and Type | Class | Description |
---|---|---|
static interface |
CORSRule.Builder |
Modifier and Type | Method | 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).
|
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() |
public List<String> allowedHeaders()
public List<String> allowedMethods()
public List<String> allowedOrigins()
public List<String> exposeHeaders()
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.