@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ValidatePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
ValidatePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
ValidatePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getLocale()
The locale to use for localizing the findings.
|
Integer |
getMaxResults()
The maximum number of results to return in the response.
|
String |
getNextToken()
A token used for pagination of results returned.
|
String |
getPolicyDocument()
The JSON policy document to use as the content for the policy.
|
String |
getPolicyType()
The type of policy to validate.
|
int |
hashCode() |
void |
setLocale(String locale)
The locale to use for localizing the findings.
|
void |
setMaxResults(Integer maxResults)
The maximum number of results to return in the response.
|
void |
setNextToken(String nextToken)
A token used for pagination of results returned.
|
void |
setPolicyDocument(String policyDocument)
The JSON policy document to use as the content for the policy.
|
void |
setPolicyType(String policyType)
The type of policy to validate.
|
String |
toString()
Returns a string representation of this object.
|
ValidatePolicyRequest |
withLocale(Locale locale)
The locale to use for localizing the findings.
|
ValidatePolicyRequest |
withLocale(String locale)
The locale to use for localizing the findings.
|
ValidatePolicyRequest |
withMaxResults(Integer maxResults)
The maximum number of results to return in the response.
|
ValidatePolicyRequest |
withNextToken(String nextToken)
A token used for pagination of results returned.
|
ValidatePolicyRequest |
withPolicyDocument(String policyDocument)
The JSON policy document to use as the content for the policy.
|
ValidatePolicyRequest |
withPolicyType(PolicyType policyType)
The type of policy to validate.
|
ValidatePolicyRequest |
withPolicyType(String policyType)
The type of policy to validate.
|
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 setLocale(String locale)
The locale to use for localizing the findings.
locale
- The locale to use for localizing the findings.Locale
public String getLocale()
The locale to use for localizing the findings.
Locale
public ValidatePolicyRequest withLocale(String locale)
The locale to use for localizing the findings.
locale
- The locale to use for localizing the findings.Locale
public ValidatePolicyRequest withLocale(Locale locale)
The locale to use for localizing the findings.
locale
- The locale to use for localizing the findings.Locale
public void setMaxResults(Integer maxResults)
The maximum number of results to return in the response.
maxResults
- The maximum number of results to return in the response.public Integer getMaxResults()
The maximum number of results to return in the response.
public ValidatePolicyRequest withMaxResults(Integer maxResults)
The maximum number of results to return in the response.
maxResults
- The maximum number of results to return in the response.public void setNextToken(String nextToken)
A token used for pagination of results returned.
nextToken
- A token used for pagination of results returned.public String getNextToken()
A token used for pagination of results returned.
public ValidatePolicyRequest withNextToken(String nextToken)
A token used for pagination of results returned.
nextToken
- A token used for pagination of results returned.public void setPolicyDocument(String policyDocument)
The JSON policy document to use as the content for the policy.
policyDocument
- The JSON policy document to use as the content for the policy.public String getPolicyDocument()
The JSON policy document to use as the content for the policy.
public ValidatePolicyRequest withPolicyDocument(String policyDocument)
The JSON policy document to use as the content for the policy.
policyDocument
- The JSON policy document to use as the content for the policy.public void setPolicyType(String policyType)
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. They also include service-control policies (SCPs) that are attached to an AWS organization, organizational unit (OU), or an account.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
policyType
- The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies
include managed and inline policies for IAM roles, users, and groups. They also include service-control
policies (SCPs) that are attached to an AWS organization, organizational unit (OU), or an account.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
PolicyType
public String getPolicyType()
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. They also include service-control policies (SCPs) that are attached to an AWS organization, organizational unit (OU), or an account.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
PolicyType
public ValidatePolicyRequest withPolicyType(String policyType)
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. They also include service-control policies (SCPs) that are attached to an AWS organization, organizational unit (OU), or an account.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
policyType
- The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies
include managed and inline policies for IAM roles, users, and groups. They also include service-control
policies (SCPs) that are attached to an AWS organization, organizational unit (OU), or an account.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
PolicyType
public ValidatePolicyRequest withPolicyType(PolicyType policyType)
The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies include managed and inline policies for IAM roles, users, and groups. They also include service-control policies (SCPs) that are attached to an AWS organization, organizational unit (OU), or an account.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
policyType
- The type of policy to validate. Identity policies grant permissions to IAM principals. Identity policies
include managed and inline policies for IAM roles, users, and groups. They also include service-control
policies (SCPs) that are attached to an AWS organization, organizational unit (OU), or an account.
Resource policies grant permissions on AWS resources. Resource policies include trust policies for IAM roles and bucket policies for S3 buckets. You can provide a generic input such as identity policy or resource policy or a specific input such as managed policy or S3 bucket policy.
PolicyType
public String toString()
toString
in class Object
Object.toString()
public ValidatePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()