@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetCorsPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetCorsPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetCorsPolicyResult |
clone() |
boolean |
equals(Object obj) |
List<CorsRule> |
getCorsPolicy()
The CORS policy assigned to the container.
|
int |
hashCode() |
void |
setCorsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy assigned to the container.
|
String |
toString()
Returns a string representation of this object.
|
GetCorsPolicyResult |
withCorsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy assigned to the container.
|
GetCorsPolicyResult |
withCorsPolicy(CorsRule... corsPolicy)
The CORS policy assigned to the container.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<CorsRule> getCorsPolicy()
The CORS policy assigned to the container.
public void setCorsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy assigned to the container.
corsPolicy
- The CORS policy assigned to the container.public GetCorsPolicyResult withCorsPolicy(CorsRule... corsPolicy)
The CORS policy assigned 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 assigned to the container.public GetCorsPolicyResult withCorsPolicy(Collection<CorsRule> corsPolicy)
The CORS policy assigned to the container.
corsPolicy
- The CORS policy assigned to the container.public String toString()
toString
in class Object
Object.toString()
public GetCorsPolicyResult clone()