public class CreateGroupRequest extends AmazonWebServiceRequest implements Serializable
CreateGroup operation
.
Creates a new group.
For information about the number of groups you can create, see Limitations on IAM Entities in the Using IAM 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 |
---|---|
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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateGroupRequest()
public CreateGroupRequest(String groupName)
groupName
- 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 Identifiers
for IAM Entities 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 Identifiers
for IAM Entities 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
- 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
- Name of the group to create. Do not include the path in this value.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.