@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()
Creates a shallow clone of this object for all fields except the handler context.
|
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, 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 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:
PolicyType
public String getType()
The type of policy to create. You can specify one of the following values:
PolicyType
public 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:
PolicyType
public 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:
PolicyType
public 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:
PolicyType
public String toString()
toString
in class Object
Object.toString()
public CreatePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.