public class CreateGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateGroup operation.
Creates a new group.
For information about the number of groups you can create, see Limitations on IAM Entities in the IAM User Guide .
NOOP| Constructor and Description |
|---|
CreateGroupRequest()
Default constructor for a new CreateGroupRequest object.
|
CreateGroupRequest(String groupName)
Constructs a new CreateGroupRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
CreateGroupRequest |
clone() |
boolean |
equals(Object obj) |
String |
getGroupName()
The name of the group to create.
|
String |
getPath()
The path to the group.
|
int |
hashCode() |
void |
setGroupName(String groupName)
The 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)
The name of the group to create.
|
CreateGroupRequest |
withPath(String path)
The path to the group.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic CreateGroupRequest()
public CreateGroupRequest(String groupName)
groupName - The name of the group to create. Do not include the
path in this value.public String getPath()
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
This parameter is optional. If it is not included, it defaults to a slash (/).
public void setPath(String path)
This parameter is optional. If it is not included, it defaults to a slash (/).
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path - The path to the group. For more information about paths, see IAM
Identifiers in the Using IAM guide. This parameter is optional. If it is not included, it defaults to a slash (/).
public CreateGroupRequest withPath(String path)
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: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
path - The path to the group. For more information about paths, see IAM
Identifiers in the Using IAM guide. This parameter is optional. If it is not included, it defaults to a slash (/).
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 to create. Do not include the path in this
value.public CreateGroupRequest 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 to create. Do not include the path in this
value.public String toString()
toString in class ObjectObject.toString()public CreateGroupRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2015. All rights reserved.