@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceGroup extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
ResourceGroup() |
Modifier and Type | Method and Description |
---|---|
ResourceGroup |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the resource group.
|
Date |
getCreatedAt()
The time at which resource group is created.
|
List<ResourceGroupTag> |
getTags()
The tags (key and value pairs) of the resource group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the resource group.
|
void |
setCreatedAt(Date createdAt)
The time at which resource group is created.
|
void |
setTags(Collection<ResourceGroupTag> tags)
The tags (key and value pairs) of the resource group.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ResourceGroup |
withArn(String arn)
The ARN of the resource group.
|
ResourceGroup |
withCreatedAt(Date createdAt)
The time at which resource group is created.
|
ResourceGroup |
withTags(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.
|
public void setArn(String arn)
The ARN of the resource group.
arn
- The ARN of the resource group.public String getArn()
The ARN of the resource group.
public ResourceGroup withArn(String arn)
The ARN of the resource group.
arn
- The ARN of the resource group.public 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(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(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(Date createdAt)
The time at which resource group is created.
createdAt
- The time at which resource group is created.public Date getCreatedAt()
The time at which resource group is created.
public ResourceGroup withCreatedAt(Date createdAt)
The time at which resource group is created.
createdAt
- The time at which resource group is created.public String toString()
toString
in class Object
Object.toString()
public ResourceGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.