public class Group
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an IAM group entity.
This data type is used as a response element in the following actions:
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The Amazon Resource Name (ARN) specifying the group.
|
private java.util.Date |
createDate
The date and time, in ISO 8601
date-time format, when the group was created.
|
private java.lang.String |
groupId
The stable and unique string identifying the group.
|
private java.lang.String |
groupName
The friendly name that identifies the group.
|
private java.lang.String |
path
The path to the group.
|
Constructor and Description |
---|
Group()
Default constructor for Group object.
|
Group(java.lang.String path,
java.lang.String groupName,
java.lang.String groupId,
java.lang.String arn,
java.util.Date createDate)
Constructs a new Group object.
|
Modifier and Type | Method and Description |
---|---|
Group |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) specifying the group.
|
java.util.Date |
getCreateDate()
The date and time, in ISO 8601
date-time format, when the group was created.
|
java.lang.String |
getGroupId()
The stable and unique string identifying the group.
|
java.lang.String |
getGroupName()
The friendly name that identifies the group.
|
java.lang.String |
getPath()
The path to the group.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) specifying the group.
|
void |
setCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the group was created.
|
void |
setGroupId(java.lang.String groupId)
The stable and unique string identifying the group.
|
void |
setGroupName(java.lang.String groupName)
The friendly name that identifies the group.
|
void |
setPath(java.lang.String path)
The path to the group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Group |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) specifying the group.
|
Group |
withCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the group was created.
|
Group |
withGroupId(java.lang.String groupId)
The stable and unique string identifying the group.
|
Group |
withGroupName(java.lang.String groupName)
The friendly name that identifies the group.
|
Group |
withPath(java.lang.String path)
The path to the group.
|
private java.lang.String path
The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
private java.lang.String groupName
The friendly name that identifies the group.
private java.lang.String groupId
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
private java.lang.String 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.
private java.util.Date createDate
The date and time, in ISO 8601 date-time format, when the group was created.
public Group()
public Group(java.lang.String path, java.lang.String groupName, java.lang.String groupId, java.lang.String arn, java.util.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 void setPath(java.lang.String path)
The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.public java.lang.String getPath()
The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
public Group withPath(java.lang.String path)
The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.
path
- The path to the group. For more information about paths, see IAM Identifiers in the Using IAM guide.public void setGroupName(java.lang.String groupName)
The friendly name that identifies the group.
groupName
- The friendly name that identifies the group.public java.lang.String getGroupName()
The friendly name that identifies the group.
public Group withGroupName(java.lang.String groupName)
The friendly name that identifies the group.
groupName
- The friendly name that identifies the group.public void setGroupId(java.lang.String groupId)
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
groupId
- The stable and unique string identifying the group. For more
information about IDs, see IAM Identifiers in the Using IAM guide.public java.lang.String getGroupId()
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
public Group withGroupId(java.lang.String groupId)
The stable and unique string identifying the group. For more information about IDs, see IAM Identifiers in the Using IAM guide.
groupId
- The stable and unique string identifying the group. For more
information about IDs, see IAM Identifiers in the Using IAM guide.public void setArn(java.lang.String 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.
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 java.lang.String getArn()
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(java.lang.String 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.
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 void setCreateDate(java.util.Date createDate)
The date and time, in ISO 8601 date-time format, when the group was created.
createDate
- The date and time, in ISO
8601 date-time format, when the group was created.public java.util.Date getCreateDate()
The date and time, in ISO 8601 date-time format, when the group was created.
public Group withCreateDate(java.util.Date createDate)
The date and time, in ISO 8601 date-time format, when the group was created.
createDate
- The date and time, in ISO
8601 date-time format, when the group was created.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Group clone()
clone
in class java.lang.Object