com.amazonaws.services.identitymanagement.model
Class CreateGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.CreateGroupRequest

public class CreateGroupRequest
extends AmazonWebServiceRequest

Container for the parameters to the CreateGroup operation.

Creates a new group.

For information about the number of groups you can create, see Limitations on IAM Entities in Using AWS Identity and Access Management .

See Also:
AmazonIdentityManagement.createGroup(CreateGroupRequest)

Constructor Summary
CreateGroupRequest()
          Default constructor for a new CreateGroupRequest object.
CreateGroupRequest(String groupName)
          Constructs a new CreateGroupRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getGroupName()
          Name of the group to create.
 String getPath()
          The path to the group.
 int hashCode()
           
 void setGroupName(String groupName)
          Name of the group to create.
 void setPath(String path)
          The path to the group.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateGroupRequest withGroupName(String groupName)
          Name of the group to create.
 CreateGroupRequest withPath(String path)
          The path to the group.
 
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

CreateGroupRequest

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


CreateGroupRequest

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

Parameters:
groupName - Name of the group to create. Do not include the path in this value.
Method Detail

getPath

public String getPath()
The path to the group. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Returns:
The path to the group. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).


setPath

public void setPath(String path)
The path to the group. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - The path to the group. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).


withPath

public CreateGroupRequest withPath(String path)
The path to the group. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

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

Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)

Parameters:
path - The path to the group. For more information about paths, see Identifiers for IAM Entities in Using AWS Identity and Access Management.

This parameter is optional. If it is not included, it defaults to a slash (/).

Returns:
A reference to this updated object so that method calls can be chained together.

getGroupName

public String getGroupName()
Name of the group to create. Do not include the path in this value.

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

Returns:
Name of the group to create. Do not include the path in this value.

setGroupName

public void setGroupName(String groupName)
Name of the group to create. Do not include the path in this value.

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

Parameters:
groupName - Name of the group to create. Do not include the path in this value.

withGroupName

public CreateGroupRequest withGroupName(String groupName)
Name of the group to create. Do not include the path in this value.

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 create. Do not include the path in this value.
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.