public class UpdateGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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 the IAM User Guide.
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.
NOOP
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 |
---|---|
UpdateGroupRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, 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: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
public void setNewPath(String newPath)
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
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: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
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()
public UpdateGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.