public class CORSRule
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CORSRule.AllowedMethods
Enumeration of names of the all the allowed methods.
|
Constructor and Description |
---|
CORSRule() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAllowedHeaders()
Returns allowed headers of this rule.
|
java.util.List<CORSRule.AllowedMethods> |
getAllowedMethods()
Returns the allowed methods of this rule.
|
java.util.List<java.lang.String> |
getAllowedOrigins()
Returns the allowed origins of this rule and returns a reference to this
object for method chaining.
|
java.util.List<java.lang.String> |
getExposedHeaders()
Returns expose headers of this rule and returns a reference to this
object for method chaining.
|
java.lang.String |
getId()
Returns the Id of this rule.
|
int |
getMaxAgeSeconds()
Sets the ID of this rule and returns a reference to this object for
method chaining.
|
void |
setAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)
Sets the allowed headers for the rule.
|
void |
setAllowedHeaders(java.lang.String... allowedHeaders)
Convenience array style method for
BucketCrossOriginConfiguration#setAllowedHeaders(List) |
void |
setAllowedMethods(CORSRule.AllowedMethods... allowedMethods)
Convenience array style method for
BucketCrossOriginConfiguration#setAllowedMethods(List) |
void |
setAllowedMethods(java.util.List<CORSRule.AllowedMethods> allowedMethods)
Sets the allowed methods of the rule.
|
void |
setAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)
Sets the allowed origins of the rule.
|
void |
setAllowedOrigins(java.lang.String... allowedOrigins)
Convenience array style method for
BucketCrossOriginConfiguration#setAllowedOrigins(List) |
void |
setExposedHeaders(java.util.List<java.lang.String> exposedHeaders)
Sets the expose headers of the rule.
|
void |
setExposedHeaders(java.lang.String... exposedHeaders)
Convenience array style method for
BucketCrossOriginConfiguration#setExposeHeaders(List) |
void |
setId(java.lang.String id)
Sets the ID of this rule.
|
void |
setMaxAgeSeconds(int maxAgeSeconds)
Sets the max age in seconds of the rule.
|
CORSRule |
withAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)
Sets the allowed headers of this rule and returns a reference to this
object for method chaining.
|
CORSRule |
withAllowedMethods(java.util.List<CORSRule.AllowedMethods> allowedMethods)
Sets the allowed methods of this rule and returns a reference to this
object for method chaining.
|
CORSRule |
withAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)
Sets the allowed origins of this rule and returns a reference to this
object for method chaining.
|
CORSRule |
withExposedHeaders(java.util.List<java.lang.String> exposedHeaders)
Sets the exposeHeaders of this rule and returns a reference to this
object for method chaining.
|
CORSRule |
withId(java.lang.String id)
Sets the ID of this rule and returns a reference to this object for
method chaining.
|
CORSRule |
withMaxAgeSeconds(int maxAgeSeconds)
Sets the max age in seconds of this rule and returns a reference to this
object for method chaining.
|
public void setId(java.lang.String id)
public java.lang.String getId()
public CORSRule withId(java.lang.String id)
setId(String)
public void setAllowedMethods(java.util.List<CORSRule.AllowedMethods> allowedMethods)
public void setAllowedMethods(CORSRule.AllowedMethods... allowedMethods)
BucketCrossOriginConfiguration#setAllowedMethods(List)
public java.util.List<CORSRule.AllowedMethods> getAllowedMethods()
public CORSRule withAllowedMethods(java.util.List<CORSRule.AllowedMethods> allowedMethods)
setAllowedMethods(List)
public void setAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)
public void setAllowedOrigins(java.lang.String... allowedOrigins)
BucketCrossOriginConfiguration#setAllowedOrigins(List)
public java.util.List<java.lang.String> getAllowedOrigins()
public CORSRule withAllowedOrigins(java.util.List<java.lang.String> allowedOrigins)
setAllowedOrigins(List)
public void setMaxAgeSeconds(int maxAgeSeconds)
public int getMaxAgeSeconds()
setId(String)
public CORSRule withMaxAgeSeconds(int maxAgeSeconds)
setMaxAgeSeconds(int)
public void setExposedHeaders(java.util.List<java.lang.String> exposedHeaders)
public void setExposedHeaders(java.lang.String... exposedHeaders)
BucketCrossOriginConfiguration#setExposeHeaders(List)
public java.util.List<java.lang.String> getExposedHeaders()
public CORSRule withExposedHeaders(java.util.List<java.lang.String> exposedHeaders)
CORSRule#setExposeHeaders(List)
public void setAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)
public void setAllowedHeaders(java.lang.String... allowedHeaders)
BucketCrossOriginConfiguration#setAllowedHeaders(List)
public java.util.List<java.lang.String> getAllowedHeaders()
public CORSRule withAllowedHeaders(java.util.List<java.lang.String> allowedHeaders)
setAllowedHeaders(List)
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.