public class SetDefaultPolicyVersionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetDefaultPolicyVersion operation
.
Sets the specified version of the specified policy as the policy's default (operative) version.
This action affects all users, groups, and roles that the policy is attached to. To list the users, groups, and roles that the policy is attached to, use the ListEntitiesForPolicy API.
For information about managed policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
NOOP
Constructor and Description |
---|
SetDefaultPolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
SetDefaultPolicyVersionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyArn()
The Amazon Resource Name (ARN).
|
String |
getVersionId()
The version of the policy to set as the default (operative) version.
|
int |
hashCode() |
void |
setPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
void |
setVersionId(String versionId)
The version of the policy to set as the default (operative) version.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetDefaultPolicyVersionRequest |
withPolicyArn(String policyArn)
The Amazon Resource Name (ARN).
|
SetDefaultPolicyVersionRequest |
withVersionId(String versionId)
The version of the policy to set as the default (operative) version.
|
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 SetDefaultPolicyVersionRequest 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()
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
Constraints:
Pattern: v[1-9][0-9]*(\.[A-Za-z0-9-]*)?
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
public void setVersionId(String versionId)
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
Constraints:
Pattern: v[1-9][0-9]*(\.[A-Za-z0-9-]*)?
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 SetDefaultPolicyVersionRequest withVersionId(String versionId)
For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide.
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
- 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 String toString()
toString
in class Object
Object.toString()
public SetDefaultPolicyVersionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.