@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()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
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, 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, withSdkRequestTimeout
public 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 Object
Object.toString()
public PutCorsPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.