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 request.
|
boolean |
equals(Object obj) |
String |
getDescription()
A friendly description of the policy.
|
String |
getPath()
The path for the policy.
|
String |
getPolicyDocument()
The policy document.
|
String |
getPolicyName()
The name of the policy document.
|
int |
hashCode() |
void |
setDescription(String description)
A friendly description of the policy.
|
void |
setPath(String path)
The path for the policy.
|
void |
setPolicyDocument(String policyDocument)
The policy document.
|
void |
setPolicyName(String policyName)
The name of the policy document.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreatePolicyRequest |
withDescription(String description)
A friendly description of the policy.
|
CreatePolicyRequest |
withPath(String path)
The path for the policy.
|
CreatePolicyRequest |
withPolicyDocument(String policyDocument)
The policy document.
|
CreatePolicyRequest |
withPolicyName(String policyName)
The name of the policy document.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPolicyName(String policyName)
The name of the policy document.
policyName
- The name of the policy document.public String getPolicyName()
The name of the policy document.
public CreatePolicyRequest withPolicyName(String policyName)
The name of the policy document.
policyName
- The name of the policy document.public void setPath(String path)
The path for the policy.
For more information about paths, see IAM Identifiers in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
path
- The path for the policy.
For more information about paths, see IAM Identifiers in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
public String getPath()
The path for the policy.
For more information about paths, see IAM Identifiers in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
For more information about paths, see IAM Identifiers in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
public CreatePolicyRequest withPath(String path)
The path for the policy.
For more information about paths, see IAM Identifiers in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
path
- The path for the policy.
For more information about paths, see IAM Identifiers in the IAM User Guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
public void setPolicyDocument(String policyDocument)
The policy document.
policyDocument
- The policy document.public String getPolicyDocument()
The policy document.
public CreatePolicyRequest withPolicyDocument(String policyDocument)
The policy document.
policyDocument
- The policy document.public void setDescription(String description)
A friendly description of the policy.
Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables."
The policy description is immutable. After a value is assigned, it cannot be changed.
description
- A friendly description of the policy.
Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables."
The policy description is immutable. After a value is assigned, it cannot be changed.
public String getDescription()
A friendly description of the policy.
Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables."
The policy description is immutable. After a value is assigned, it cannot be changed.
Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables."
The policy description is immutable. After a value is assigned, it cannot be changed.
public CreatePolicyRequest withDescription(String description)
A friendly description of the policy.
Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables."
The policy description is immutable. After a value is assigned, it cannot be changed.
description
- A friendly description of the policy.
Typically used to store information about the permissions defined in the policy. For example, "Grants access to production DynamoDB tables."
The policy description is immutable. After a value is assigned, it cannot be changed.
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.