|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.s3.model.CORSRule
public class CORSRule
Container for rules of cross origin configuration.
Nested Class Summary | |
---|---|
static class |
CORSRule.AllowedMethods
Enumeration of names of the all the allowed methods. |
Constructor Summary | |
---|---|
CORSRule()
|
Method Summary | |
---|---|
List<String> |
getAllowedHeaders()
Returns allowed headers of this rule. |
List<CORSRule.AllowedMethods> |
getAllowedMethods()
Returns the allowed methods of this rule. |
List<String> |
getAllowedOrigins()
Returns the allowed origins of this rule and returns a reference to this object for method chaining. |
List<String> |
getExposedHeaders()
Returns expose headers of this rule and returns a reference to this object for method chaining. |
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(List<String> allowedHeaders)
Sets the allowed headers for the rule. |
void |
setAllowedHeaders(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(List<CORSRule.AllowedMethods> allowedMethods)
Sets the allowed methods of the rule. |
void |
setAllowedOrigins(List<String> allowedOrigins)
Sets the allowed origins of the rule. |
void |
setAllowedOrigins(String... allowedOrigins)
Convenience array style method for BucketCrossOriginConfiguration#setAllowedOrigins(List) |
void |
setExposedHeaders(List<String> exposedHeaders)
Sets the expose headers of the rule. |
void |
setExposedHeaders(String... exposedHeaders)
Convenience array style method for BucketCrossOriginConfiguration#setExposeHeaders(List) |
void |
setId(String id)
Sets the ID of this rule. |
void |
setMaxAgeSeconds(int maxAgeSeconds)
Sets the max age in seconds of the rule. |
CORSRule |
withAllowedHeaders(List<String> allowedHeaders)
Sets the allowed headers of this rule and returns a reference to this object for method chaining. |
CORSRule |
withAllowedMethods(List<CORSRule.AllowedMethods> allowedMethods)
Sets the allowed methods of this rule and returns a reference to this object for method chaining. |
CORSRule |
withAllowedOrigins(List<String> allowedOrigins)
Sets the allowed origins of this rule and returns a reference to this object for method chaining. |
CORSRule |
withExposedHeaders(List<String> exposedHeaders)
Sets the exposeHeaders of this rule and returns a reference to this object for method chaining. |
CORSRule |
withId(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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CORSRule()
Method Detail |
---|
public void setId(String id)
public String getId()
public CORSRule withId(String id)
setId(String)
public void setAllowedMethods(List<CORSRule.AllowedMethods> allowedMethods)
public void setAllowedMethods(CORSRule.AllowedMethods... allowedMethods)
BucketCrossOriginConfiguration#setAllowedMethods(List)
public List<CORSRule.AllowedMethods> getAllowedMethods()
public CORSRule withAllowedMethods(List<CORSRule.AllowedMethods> allowedMethods)
setAllowedMethods(List)
public void setAllowedOrigins(List<String> allowedOrigins)
public void setAllowedOrigins(String... allowedOrigins)
BucketCrossOriginConfiguration#setAllowedOrigins(List)
public List<String> getAllowedOrigins()
public CORSRule withAllowedOrigins(List<String> allowedOrigins)
setAllowedOrigins(List)
public void setMaxAgeSeconds(int maxAgeSeconds)
public int getMaxAgeSeconds()
setId(String)
public CORSRule withMaxAgeSeconds(int maxAgeSeconds)
setMaxAgeSeconds(int)
public void setExposedHeaders(List<String> exposedHeaders)
public void setExposedHeaders(String... exposedHeaders)
BucketCrossOriginConfiguration#setExposeHeaders(List)
public List<String> getExposedHeaders()
public CORSRule withExposedHeaders(List<String> exposedHeaders)
CORSRule#setExposeHeaders(List)
public void setAllowedHeaders(List<String> allowedHeaders)
public void setAllowedHeaders(String... allowedHeaders)
BucketCrossOriginConfiguration#setAllowedHeaders(List)
public List<String> getAllowedHeaders()
public CORSRule withAllowedHeaders(List<String> allowedHeaders)
setAllowedHeaders(List)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |