public class Group extends Object implements Serializable, Cloneable
Contains information about an IAM group entity.
This data type is used as a response element in the following actions:
Constructor and Description |
---|
Group()
Default constructor for a new Group object.
|
Group(String path,
String groupName,
String groupId,
String arn,
Date createDate)
Constructs a new Group object.
|
Modifier and Type | Method and Description |
---|---|
Group |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) specifying the group.
|
Date |
getCreateDate()
The date and time, in ISO
8601 date-time format, when the group was created.
|
String |
getGroupId()
The stable and unique string identifying the group.
|
String |
getGroupName()
The friendly name that identifies the group.
|
String |
getPath()
The path to the group.
|
int |
hashCode() |
void |
setArn(String arn)
The Amazon Resource Name (ARN) specifying the group.
|
void |
setCreateDate(Date createDate)
The date and time, in ISO
8601 date-time format, when the group was created.
|
void |
setGroupId(String groupId)
The stable and unique string identifying the group.
|
void |
setGroupName(String groupName)
The friendly name that identifies the group.
|
void |
setPath(String path)
The path to the group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Group |
withArn(String arn)
The Amazon Resource Name (ARN) specifying the group.
|
Group |
withCreateDate(Date createDate)
The date and time, in ISO
8601 date-time format, when the group was created.
|
Group |
withGroupId(String groupId)
The stable and unique string identifying the group.
|
Group |
withGroupName(String groupName)
The friendly name that identifies the group.
|
Group |
withPath(String path)
The path to the group.
|
public Group()
public Group(String path, String groupName, String groupId, String arn, Date createDate)
path
- The path to the group. For more information about paths,
see IAM
Identifiers in the Using IAM guide.groupName
- The friendly name that identifies the group.groupId
- The stable and unique string identifying the group. For
more information about IDs, see IAM
Identifiers in the Using IAM guide.arn
- The Amazon Resource Name (ARN) specifying the group. For
more information about ARNs and how to use them in policies, see IAM
Identifiers in the Using IAM guide.createDate
- The date and time, in ISO 8601 date-time format,
when the group was created.public String getPath()
Constraints:
Length: 1 - 512
Pattern: (\u002F)|(\u002F[\u0021-\u007F]+\u002F)
public void setPath(String path)
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.public Group withPath(String path)
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.public String getGroupName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setGroupName(String groupName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
groupName
- The friendly name that identifies the group.public Group 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 friendly name that identifies the group.public String getGroupId()
Constraints:
Length: 16 - 32
Pattern: [\w]*
public void setGroupId(String groupId)
Constraints:
Length: 16 - 32
Pattern: [\w]*
groupId
- The stable and unique string identifying the group. For more
information about IDs, see IAM
Identifiers in the Using IAM guide.public Group withGroupId(String groupId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 16 - 32
Pattern: [\w]*
groupId
- The stable and unique string identifying the group. For more
information about IDs, see IAM
Identifiers in the Using IAM guide.public String getArn()
Constraints:
Length: 20 - 2048
public void setArn(String arn)
Constraints:
Length: 20 - 2048
arn
- The Amazon Resource Name (ARN) specifying the group. For more
information about ARNs and how to use them in policies, see IAM
Identifiers in the Using IAM guide.public Group withArn(String arn)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
arn
- The Amazon Resource Name (ARN) specifying the group. For more
information about ARNs and how to use them in policies, see IAM
Identifiers in the Using IAM guide.public Date getCreateDate()
public void setCreateDate(Date createDate)
createDate
- The date and time, in ISO
8601 date-time format, when the group was created.public Group withCreateDate(Date createDate)
Returns a reference to this object so that method calls can be chained together.
createDate
- The date and time, in ISO
8601 date-time format, when the group was created.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.