public class ResourceGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about a resource group. The resource group defines a set of tags that, when queried, identify the AWS resources that make up the assessment target. This data type is used as the response element in the DescribeResourceGroups action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The ARN of the resource group.
|
private java.util.Date |
createdAt
The time at which resource group is created.
|
private java.util.List<ResourceGroupTag> |
tags
The tags (key and value pairs) of the resource group.
|
Constructor and Description |
---|
ResourceGroup() |
Modifier and Type | Method and Description |
---|---|
ResourceGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The ARN of the resource group.
|
java.util.Date |
getCreatedAt()
The time at which resource group is created.
|
java.util.List<ResourceGroupTag> |
getTags()
The tags (key and value pairs) of the resource group.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The ARN of the resource group.
|
void |
setCreatedAt(java.util.Date createdAt)
The time at which resource group is created.
|
void |
setTags(java.util.Collection<ResourceGroupTag> tags)
The tags (key and value pairs) of the resource group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ResourceGroup |
withArn(java.lang.String arn)
The ARN of the resource group.
|
ResourceGroup |
withCreatedAt(java.util.Date createdAt)
The time at which resource group is created.
|
ResourceGroup |
withTags(java.util.Collection<ResourceGroupTag> tags)
The tags (key and value pairs) of the resource group.
|
ResourceGroup |
withTags(ResourceGroupTag... tags)
The tags (key and value pairs) of the resource group.
|
private java.lang.String arn
The ARN of the resource group.
private java.util.List<ResourceGroupTag> tags
The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
private java.util.Date createdAt
The time at which resource group is created.
public void setArn(java.lang.String arn)
The ARN of the resource group.
arn
- The ARN of the resource group.public java.lang.String getArn()
The ARN of the resource group.
public ResourceGroup withArn(java.lang.String arn)
The ARN of the resource group.
arn
- The ARN of the resource group.public java.util.List<ResourceGroupTag> getTags()
The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
public void setTags(java.util.Collection<ResourceGroupTag> tags)
The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
tags
- The tags (key and value pairs) of the resource group. This data
type property is used in the CreateResourceGroup action.public ResourceGroup withTags(ResourceGroupTag... tags)
The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags (key and value pairs) of the resource group. This data
type property is used in the CreateResourceGroup action.public ResourceGroup withTags(java.util.Collection<ResourceGroupTag> tags)
The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
tags
- The tags (key and value pairs) of the resource group. This data
type property is used in the CreateResourceGroup action.public void setCreatedAt(java.util.Date createdAt)
The time at which resource group is created.
createdAt
- The time at which resource group is created.public java.util.Date getCreatedAt()
The time at which resource group is created.
public ResourceGroup withCreatedAt(java.util.Date createdAt)
The time at which resource group is created.
createdAt
- The time at which resource group is 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 ResourceGroup clone()
clone
in class java.lang.Object