@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutCorsPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutCorsPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutCorsPolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getContainerName()
The name of the container that you want to assign the CORS policy to.
|
List<CorsRule> |
getCorsPolicy()
The CORS policy to apply to the container.
|
int |
hashCode() |
void |
setContainerName(String containerName)
The name of the container that you want to assign the CORS policy to.
|
void |
setCorsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy to apply to the container.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PutCorsPolicyRequest |
withContainerName(String containerName)
The name of the container that you want to assign the CORS policy to.
|
PutCorsPolicyRequest |
withCorsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy to apply to the container.
|
PutCorsPolicyRequest |
withCorsPolicy(CorsRule... corsPolicy)
The CORS policy to apply to the container.
|
addHandlerContext, copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setContainerName(String containerName)
The name of the container that you want to assign the CORS policy to.
containerName - The name of the container that you want to assign the CORS policy to.public String getContainerName()
The name of the container that you want to assign the CORS policy to.
public PutCorsPolicyRequest withContainerName(String containerName)
The name of the container that you want to assign the CORS policy to.
containerName - The name of the container that you want to assign the CORS policy to.public List<CorsRule> getCorsPolicy()
The CORS policy to apply to the container.
public void setCorsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy to apply to the container.
corsPolicy - The CORS policy to apply to the container.public PutCorsPolicyRequest withCorsPolicy(CorsRule... corsPolicy)
The CORS policy to apply to the container.
NOTE: This method appends the values to the existing list (if any). Use
setCorsPolicy(java.util.Collection) or withCorsPolicy(java.util.Collection) if you want to
override the existing values.
corsPolicy - The CORS policy to apply to the container.public PutCorsPolicyRequest withCorsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy to apply to the container.
corsPolicy - The CORS policy to apply to the container.public String toString()
toString in class ObjectObject.toString()public PutCorsPolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2018. All rights reserved.