public class SetDefaultPolicyVersionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Sets the specified version of the specified policy as the policy's default (operative) version. This action affects all certificates to which the policy is attached. To list the principals the policy is attached to, use the ListPrincipalPolicy API.
Constructor and Description |
---|
SetDefaultPolicyVersionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyName()
The policy name.
|
java.lang.String |
getPolicyVersionId()
The policy version ID.
|
int |
hashCode() |
void |
setPolicyName(java.lang.String policyName)
The policy name.
|
void |
setPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetDefaultPolicyVersionRequest |
withPolicyName(java.lang.String policyName)
The policy name.
|
SetDefaultPolicyVersionRequest |
withPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getPolicyName()
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The policy name.
public void setPolicyName(java.lang.String policyName)
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The policy name.
public SetDefaultPolicyVersionRequest withPolicyName(java.lang.String policyName)
The policy name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The policy name.
public java.lang.String getPolicyVersionId()
The policy version ID.
Constraints:
Pattern: [0-9]+
The policy version ID.
public void setPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
Constraints:
Pattern: [0-9]+
policyVersionId
- The policy version ID.
public SetDefaultPolicyVersionRequest withPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9]+
policyVersionId
- The policy version ID.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.