public class GetGroupPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetGroupPolicy operation
.
Retrieves the specified inline policy document that is embedded in the specified group.
A group can also have managed policies attached to it. To retrieve a managed policy document that is attached to a group, use GetPolicy to determine the policy's default version, then use GetPolicyVersion to retrieve the policy document.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide .
NOOP
Constructor and Description |
---|
GetGroupPolicyRequest()
Default constructor for a new GetGroupPolicyRequest object.
|
GetGroupPolicyRequest(String groupName,
String policyName)
Constructs a new GetGroupPolicyRequest object.
|
Modifier and Type | Method and Description |
---|---|
GetGroupPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getGroupName()
The name of the group the policy is associated with.
|
String |
getPolicyName()
The name of the policy document to get.
|
int |
hashCode() |
void |
setGroupName(String groupName)
The name of the group the policy is associated with.
|
void |
setPolicyName(String policyName)
The name of the policy document to get.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetGroupPolicyRequest |
withGroupName(String groupName)
The name of the group the policy is associated with.
|
GetGroupPolicyRequest |
withPolicyName(String policyName)
The name of the policy document to get.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public GetGroupPolicyRequest()
public GetGroupPolicyRequest(String groupName, String policyName)
groupName
- The name of the group the policy is associated with.policyName
- The name of the policy document to get.public String getGroupName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setGroupName(String groupName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
groupName
- The name of the group the policy is associated with.public GetGroupPolicyRequest withGroupName(String groupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
groupName
- The name of the group the policy is associated with.public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The name of the policy document to get.public GetGroupPolicyRequest 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 name of the policy document to get.public String toString()
toString
in class Object
Object.toString()
public GetGroupPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.