@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSecurityPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateSecurityPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateSecurityPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier to ensure idempotency of the request.
|
String |
getDescription()
A description of the policy.
|
String |
getName()
The name of the policy.
|
String |
getPolicy()
The JSON policy document to use as the content for the new policy.
|
String |
getType()
The type of security policy.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier to ensure idempotency of the request.
|
void |
setDescription(String description)
A description of the policy.
|
void |
setName(String name)
The name of the policy.
|
void |
setPolicy(String policy)
The JSON policy document to use as the content for the new policy.
|
void |
setType(String type)
The type of security policy.
|
String |
toString()
Returns a string representation of this object.
|
CreateSecurityPolicyRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier to ensure idempotency of the request.
|
CreateSecurityPolicyRequest |
withDescription(String description)
A description of the policy.
|
CreateSecurityPolicyRequest |
withName(String name)
The name of the policy.
|
CreateSecurityPolicyRequest |
withPolicy(String policy)
The JSON policy document to use as the content for the new policy.
|
CreateSecurityPolicyRequest |
withType(SecurityPolicyType type)
The type of security policy.
|
CreateSecurityPolicyRequest |
withType(String type)
The type of security policy.
|
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, withSdkRequestTimeoutpublic void setClientToken(String clientToken)
Unique, case-sensitive identifier to ensure idempotency of the request.
clientToken - Unique, case-sensitive identifier to ensure idempotency of the request.public String getClientToken()
Unique, case-sensitive identifier to ensure idempotency of the request.
public CreateSecurityPolicyRequest withClientToken(String clientToken)
Unique, case-sensitive identifier to ensure idempotency of the request.
clientToken - Unique, case-sensitive identifier to ensure idempotency of the request.public void setDescription(String description)
A description of the policy. Typically used to store information about the permissions defined in the policy.
description - A description of the policy. Typically used to store information about the permissions defined in the
policy.public String getDescription()
A description of the policy. Typically used to store information about the permissions defined in the policy.
public CreateSecurityPolicyRequest withDescription(String description)
A description of the policy. Typically used to store information about the permissions defined in the policy.
description - A description of the policy. Typically used to store information about the permissions defined in the
policy.public void setName(String name)
The name of the policy.
name - The name of the policy.public String getName()
The name of the policy.
public CreateSecurityPolicyRequest withName(String name)
The name of the policy.
name - The name of the policy.public void setPolicy(String policy)
The JSON policy document to use as the content for the new policy.
policy - The JSON policy document to use as the content for the new policy.public String getPolicy()
The JSON policy document to use as the content for the new policy.
public CreateSecurityPolicyRequest withPolicy(String policy)
The JSON policy document to use as the content for the new policy.
policy - The JSON policy document to use as the content for the new policy.public void setType(String type)
The type of security policy.
type - The type of security policy.SecurityPolicyTypepublic String getType()
The type of security policy.
SecurityPolicyTypepublic CreateSecurityPolicyRequest withType(String type)
The type of security policy.
type - The type of security policy.SecurityPolicyTypepublic CreateSecurityPolicyRequest withType(SecurityPolicyType type)
The type of security policy.
type - The type of security policy.SecurityPolicyTypepublic String toString()
toString in class ObjectObject.toString()public CreateSecurityPolicyRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()