public class SetDefaultPolicyVersionRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
policyArn
The Amazon Resource Name (ARN) of the IAM policy whose default version
you want to set.
|
private java.lang.String |
versionId
The version of the policy to set as the default (operative) version.
|
NOOP
Constructor and Description |
---|
SetDefaultPolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
SetDefaultPolicyVersionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyArn()
The Amazon Resource Name (ARN) of the IAM policy whose default version
you want to set.
|
java.lang.String |
getVersionId()
The version of the policy to set as the default (operative) version.
|
int |
hashCode() |
void |
setPolicyArn(java.lang.String policyArn)
The Amazon Resource Name (ARN) of the IAM policy whose default version
you want to set.
|
void |
setVersionId(java.lang.String versionId)
The version of the policy to set as the default (operative) version.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetDefaultPolicyVersionRequest |
withPolicyArn(java.lang.String policyArn)
The Amazon Resource Name (ARN) of the IAM policy whose default version
you want to set.
|
SetDefaultPolicyVersionRequest |
withVersionId(java.lang.String versionId)
The version of the policy to set as the default (operative) version.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String policyArn
The Amazon Resource Name (ARN) of the IAM policy whose default version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
private java.lang.String versionId
The version of the policy to set as the default (operative) version.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public void setPolicyArn(java.lang.String policyArn)
The Amazon Resource Name (ARN) of the IAM policy whose default version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
policyArn
- The Amazon Resource Name (ARN) of the IAM policy whose default
version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public java.lang.String getPolicyArn()
The Amazon Resource Name (ARN) of the IAM policy whose default version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public SetDefaultPolicyVersionRequest withPolicyArn(java.lang.String policyArn)
The Amazon Resource Name (ARN) of the IAM policy whose default version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
policyArn
- The Amazon Resource Name (ARN) of the IAM policy whose default
version you want to set.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
public void setVersionId(java.lang.String versionId)
The version of the policy to set as the default (operative) version.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
versionId
- The version of the policy to set as the default (operative)
version.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public java.lang.String getVersionId()
The version of the policy to set as the default (operative) version.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public SetDefaultPolicyVersionRequest withVersionId(java.lang.String versionId)
The version of the policy to set as the default (operative) version.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
versionId
- The version of the policy to set as the default (operative)
version.
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetDefaultPolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()