@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreatePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreatePolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreatePolicyRequest |
clone() |
boolean |
equals(Object obj) |
String |
getContent()
The policy text content to add to the new policy.
|
String |
getDescription()
An optional description to assign to the policy.
|
String |
getName()
The friendly name to assign to the policy.
|
String |
getType()
The type of policy to create.
|
int |
hashCode() |
void |
setContent(String content)
The policy text content to add to the new policy.
|
void |
setDescription(String description)
An optional description to assign to the policy.
|
void |
setName(String name)
The friendly name to assign to the policy.
|
void |
setType(PolicyType type)
The type of policy to create.
|
void |
setType(String type)
The type of policy to create.
|
String |
toString()
Returns a string representation of this object.
|
CreatePolicyRequest |
withContent(String content)
The policy text content to add to the new policy.
|
CreatePolicyRequest |
withDescription(String description)
An optional description to assign to the policy.
|
CreatePolicyRequest |
withName(String name)
The friendly name to assign to the policy.
|
CreatePolicyRequest |
withType(PolicyType type)
The type of policy to create.
|
CreatePolicyRequest |
withType(String type)
The type of policy to create.
|
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 setContent(String content)
The policy text content to add to the new policy. The text that you supply must adhere to the rules of the policy
type you specify in the Type parameter.
content - The policy text content to add to the new policy. The text that you supply must adhere to the rules of the
policy type you specify in the Type parameter.public String getContent()
The policy text content to add to the new policy. The text that you supply must adhere to the rules of the policy
type you specify in the Type parameter.
Type parameter.public CreatePolicyRequest withContent(String content)
The policy text content to add to the new policy. The text that you supply must adhere to the rules of the policy
type you specify in the Type parameter.
content - The policy text content to add to the new policy. The text that you supply must adhere to the rules of the
policy type you specify in the Type parameter.public void setDescription(String description)
An optional description to assign to the policy.
description - An optional description to assign to the policy.public String getDescription()
An optional description to assign to the policy.
public CreatePolicyRequest withDescription(String description)
An optional description to assign to the policy.
description - An optional description to assign to the policy.public void setName(String name)
The friendly name to assign to the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name - The friendly name to assign to the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public String getName()
The friendly name to assign to the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public CreatePolicyRequest withName(String name)
The friendly name to assign to the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
name - The friendly name to assign to the policy.
The regex pattern that is used to validate this parameter is a string of any of the characters in the ASCII character range.
public void setType(String type)
The type of policy to create. You can specify one of the following values:
type - The type of policy to create. You can specify one of the following values:
PolicyTypepublic String getType()
The type of policy to create. You can specify one of the following values:
PolicyTypepublic CreatePolicyRequest withType(String type)
The type of policy to create. You can specify one of the following values:
type - The type of policy to create. You can specify one of the following values:
PolicyTypepublic void setType(PolicyType type)
The type of policy to create. You can specify one of the following values:
type - The type of policy to create. You can specify one of the following values:
PolicyTypepublic CreatePolicyRequest withType(PolicyType type)
The type of policy to create. You can specify one of the following values:
type - The type of policy to create. You can specify one of the following values:
PolicyTypepublic String toString()
toString in class ObjectObject.toString()public CreatePolicyRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2020. All rights reserved.