public class UpdateGroupRequest extends AmazonWebServiceRequest implements Serializable
UpdateGroup operation
.
Updates the name and/or the path of the specified group.
IMPORTANT: You should understand the implications of changing a group's path or name. For more information, see Renaming Users and Groups in Using AWS Identity and Access Management.
NOTE:To change a group name the requester must have appropriate permissions on both the source object and the target object. For example, to change Managers to MGRs, the entity making the request must have permission on Managers and MGRs, or must have permission on all (*). For more information about permissions, see Permissions and Policies.
Constructor and Description |
---|
UpdateGroupRequest()
Default constructor for a new UpdateGroupRequest object.
|
UpdateGroupRequest(String groupName)
Constructs a new UpdateGroupRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getGroupName()
Name of the group to update.
|
String |
getNewGroupName()
New name for the group.
|
String |
getNewPath()
New path for the group.
|
int |
hashCode() |
void |
setGroupName(String groupName)
Name of the group to update.
|
void |
setNewGroupName(String newGroupName)
New name for the group.
|
void |
setNewPath(String newPath)
New path for the group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateGroupRequest |
withGroupName(String groupName)
Name of the group to update.
|
UpdateGroupRequest |
withNewGroupName(String newGroupName)
New name for the group.
|
UpdateGroupRequest |
withNewPath(String newPath)
New path for the group.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public UpdateGroupRequest()
public UpdateGroupRequest(String groupName)
groupName
- Name of the group to update. If you're changing the
name of the group, this is the original name.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 update. If you're changing the name of the group,
this is the original name.public UpdateGroupRequest 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 update. If you're changing the name of the group,
this is the original name.public String getNewPath()
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
public void setNewPath(String newPath)
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
newPath
- New path for the group. Only include this if changing the group's
path.public UpdateGroupRequest withNewPath(String newPath)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: (/)|(/[!-]+/)
newPath
- New path for the group. Only include this if changing the group's
path.public String getNewGroupName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setNewGroupName(String newGroupName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
newGroupName
- New name for the group. Only include this if changing the group's
name.public UpdateGroupRequest withNewGroupName(String newGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
newGroupName
- New name for the group. Only include this if changing the group's
name.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.