public class GetPolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetPolicyVersion operation
.
Retrieves information about the specified version of the specified managed policy, including the policy document.
To list the available versions for a policy, use ListPolicyVersions.
This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded in a user, group, or role, use the GetUserPolicy, GetGroupPolicy, or GetRolePolicy API.
For more information about the types of policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
NOOP
Constructor and Description |
---|
GetPolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
GetPolicyVersionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyArn()
The Amazon Resource Name (ARN).
|
String |
getVersionId()
Identifies the policy version to retrieve.
|
int |
hashCode() |
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
void |
setVersionId(String versionId)
Identifies the policy version to retrieve.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPolicyVersionRequest |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
GetPolicyVersionRequest |
withVersionId(String versionId)
Identifies the policy version to retrieve.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getPolicyArn()
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public GetPolicyVersionRequest withPolicyArn(String policyArn)
For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
policyArn
- The Amazon Resource Name (ARN). ARNs are unique identifiers for AWS
resources. For more information about ARNs, go to Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public String getVersionId()
Constraints:
Pattern: v[1-9][0-9]*(\.[A-Za-z0-9-]*)?
public void setVersionId(String versionId)
Constraints:
Pattern: v[1-9][0-9]*(\.[A-Za-z0-9-]*)?
versionId
- Identifies the policy version to retrieve.public GetPolicyVersionRequest withVersionId(String versionId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: v[1-9][0-9]*(\.[A-Za-z0-9-]*)?
versionId
- Identifies the policy version to retrieve.public String toString()
toString
in class Object
Object.toString()
public GetPolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.