public class SetDefaultPolicyVersionRequest extends AmazonWebServiceRequest implements Serializable
SetDefaultPolicyVersion operation.
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(Object obj) |
String |
getPolicyName()
The policy name.
|
String |
getPolicyVersionId()
The policy version ID.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The policy name.
|
void |
setPolicyVersionId(String policyVersionId)
The policy version ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetDefaultPolicyVersionRequest |
withPolicyName(String policyName)
The policy name.
|
SetDefaultPolicyVersionRequest |
withPolicyVersionId(String policyVersionId)
The policy version ID.
|
getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The policy name.public SetDefaultPolicyVersionRequest withPolicyName(String policyName)
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 String getPolicyVersionId()
Constraints:
Pattern: [0-9]+
public void setPolicyVersionId(String policyVersionId)
Constraints:
Pattern: [0-9]+
policyVersionId - The policy version ID.public SetDefaultPolicyVersionRequest withPolicyVersionId(String policyVersionId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9]+
policyVersionId - The policy version ID.public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.