public class GroupDetail
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an IAM group, including all of the group's policies.
This data type is used as a response element in the GetAccountAuthorizationDetails action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn |
private SdkInternalList<AttachedPolicy> |
attachedManagedPolicies
A list of the managed policies attached to 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 SdkInternalList<PolicyDetail> |
groupPolicyList
A list of the inline policies embedded in the group.
|
private java.lang.String |
path
The path to the group.
|
Constructor and Description |
---|
GroupDetail() |
Modifier and Type | Method and Description |
---|---|
GroupDetail |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn() |
java.util.List<AttachedPolicy> |
getAttachedManagedPolicies()
A list of the managed policies attached to 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.util.List<PolicyDetail> |
getGroupPolicyList()
A list of the inline policies embedded in the group.
|
java.lang.String |
getPath()
The path to the group.
|
int |
hashCode() |
void |
setArn(java.lang.String arn) |
void |
setAttachedManagedPolicies(java.util.Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to 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 |
setGroupPolicyList(java.util.Collection<PolicyDetail> groupPolicyList)
A list of the inline policies embedded in 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.
|
GroupDetail |
withArn(java.lang.String arn) |
GroupDetail |
withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of the managed policies attached to the group.
|
GroupDetail |
withAttachedManagedPolicies(java.util.Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the group.
|
GroupDetail |
withCreateDate(java.util.Date createDate)
The date and time, in ISO 8601
date-time format, when the group was created.
|
GroupDetail |
withGroupId(java.lang.String groupId)
The stable and unique string identifying the group.
|
GroupDetail |
withGroupName(java.lang.String groupName)
The friendly name that identifies the group.
|
GroupDetail |
withGroupPolicyList(java.util.Collection<PolicyDetail> groupPolicyList)
A list of the inline policies embedded in the group.
|
GroupDetail |
withGroupPolicyList(PolicyDetail... groupPolicyList)
A list of the inline policies embedded in the group.
|
GroupDetail |
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
private java.util.Date createDate
The date and time, in ISO 8601 date-time format, when the group was created.
private SdkInternalList<PolicyDetail> groupPolicyList
A list of the inline policies embedded in the group.
private SdkInternalList<AttachedPolicy> attachedManagedPolicies
A list of the managed policies attached to the group.
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 GroupDetail 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 GroupDetail 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 GroupDetail 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)
arn
- public java.lang.String getArn()
public GroupDetail withArn(java.lang.String arn)
arn
- 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 GroupDetail 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.util.List<PolicyDetail> getGroupPolicyList()
A list of the inline policies embedded in the group.
public void setGroupPolicyList(java.util.Collection<PolicyDetail> groupPolicyList)
A list of the inline policies embedded in the group.
groupPolicyList
- A list of the inline policies embedded in the group.public GroupDetail withGroupPolicyList(PolicyDetail... groupPolicyList)
A list of the inline policies embedded in the group.
NOTE: This method appends the values to the existing list (if
any). Use setGroupPolicyList(java.util.Collection)
or
withGroupPolicyList(java.util.Collection)
if you want to
override the existing values.
groupPolicyList
- A list of the inline policies embedded in the group.public GroupDetail withGroupPolicyList(java.util.Collection<PolicyDetail> groupPolicyList)
A list of the inline policies embedded in the group.
groupPolicyList
- A list of the inline policies embedded in the group.public java.util.List<AttachedPolicy> getAttachedManagedPolicies()
A list of the managed policies attached to the group.
public void setAttachedManagedPolicies(java.util.Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the group.
attachedManagedPolicies
- A list of the managed policies attached to the group.public GroupDetail withAttachedManagedPolicies(AttachedPolicy... attachedManagedPolicies)
A list of the managed policies attached to the group.
NOTE: This method appends the values to the existing list (if
any). Use setAttachedManagedPolicies(java.util.Collection)
or
withAttachedManagedPolicies(java.util.Collection)
if you want to
override the existing values.
attachedManagedPolicies
- A list of the managed policies attached to the group.public GroupDetail withAttachedManagedPolicies(java.util.Collection<AttachedPolicy> attachedManagedPolicies)
A list of the managed policies attached to the group.
attachedManagedPolicies
- A list of the managed policies attached to the group.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 GroupDetail clone()
clone
in class java.lang.Object