Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class PutGroupPolicyRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.PutGroupPolicyRequest
All Implemented Interfaces:
Serializable

public class PutGroupPolicyRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the PutGroupPolicy operation.

Adds (or updates) a policy document associated with the specified group. For information about policies, refer to Overview of Policies in Using AWS Identity and Access Management .

For information about limits on the number of policies you can associate with a group, see Limitations on IAM Entities in Using AWS Identity and Access Management .

NOTE:Because policy documents can be large, you should use POST rather than GET when calling PutGroupPolicy. For information about setting up signatures and authorization through the API, go to Signing AWS API Requests in the AWS General Reference. For general information about using the Query API with IAM, go to Making Query Requests in Using IAM.

See Also:
AmazonIdentityManagement.putGroupPolicy(PutGroupPolicyRequest), Serialized Form

Constructor Summary
PutGroupPolicyRequest()
          Default constructor for a new PutGroupPolicyRequest object.
PutGroupPolicyRequest(String groupName, String policyName, String policyDocument)
          Constructs a new PutGroupPolicyRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getGroupName()
          Name of the group to associate the policy with.
 String getPolicyDocument()
          The policy document.
 String getPolicyName()
          Name of the policy document.
 int hashCode()
           
 void setGroupName(String groupName)
          Name of the group to associate the policy with.
 void setPolicyDocument(String policyDocument)
          The policy document.
 void setPolicyName(String policyName)
          Name of the policy document.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PutGroupPolicyRequest withGroupName(String groupName)
          Name of the group to associate the policy with.
 PutGroupPolicyRequest withPolicyDocument(String policyDocument)
          The policy document.
 PutGroupPolicyRequest withPolicyName(String policyName)
          Name of the policy document.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PutGroupPolicyRequest

public PutGroupPolicyRequest()
Default constructor for a new PutGroupPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


PutGroupPolicyRequest

public PutGroupPolicyRequest(String groupName,
                             String policyName,
                             String policyDocument)
Constructs a new PutGroupPolicyRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
groupName - Name of the group to associate the policy with.
policyName - Name of the policy document.
policyDocument - The policy document.
Method Detail

getGroupName

public String getGroupName()
Name of the group to associate the policy with.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
Name of the group to associate the policy with.

setGroupName

public void setGroupName(String groupName)
Name of the group to associate the policy with.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
groupName - Name of the group to associate the policy with.

withGroupName

public PutGroupPolicyRequest withGroupName(String groupName)
Name of the group to associate the policy with.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
groupName - Name of the group to associate the policy with.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyName

public String getPolicyName()
Name of the policy document.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
Name of the policy document.

setPolicyName

public void setPolicyName(String policyName)
Name of the policy document.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
policyName - Name of the policy document.

withPolicyName

public PutGroupPolicyRequest withPolicyName(String policyName)
Name of the policy document.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
policyName - Name of the policy document.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyDocument

public String getPolicyDocument()
The policy document.

Constraints:
Length: 1 - 131072
Pattern: [ -?]+

Returns:
The policy document.

setPolicyDocument

public void setPolicyDocument(String policyDocument)
The policy document.

Constraints:
Length: 1 - 131072
Pattern: [ -?]+

Parameters:
policyDocument - The policy document.

withPolicyDocument

public PutGroupPolicyRequest withPolicyDocument(String policyDocument)
The policy document.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 131072
Pattern: [ -?]+

Parameters:
policyDocument - The policy document.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.