public class GetPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable
Gets information about the specified policy with the policy document of the default version.
Constructor and Description |
---|
GetPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPolicyName()
The name of the policy.
|
int |
hashCode() |
void |
setPolicyName(java.lang.String policyName)
The name of the policy.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPolicyRequest |
withPolicyName(java.lang.String policyName)
The name of the policy.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getPolicyName()
The name of the policy.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The name of the policy.
public void setPolicyName(java.lang.String policyName)
The name of the policy.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The name of the policy.
public GetPolicyRequest withPolicyName(java.lang.String policyName)
The name of the policy.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The name of the policy.
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.