Class ResourceGroup
- java.lang.Object
-
- com.amazonaws.services.inspector.model.ResourceGroup
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ResourceGroup extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceGroupclone()booleanequals(Object obj)StringgetArn()The ARN of the resource group.DategetCreatedAt()The time at which resource group is created.List<ResourceGroupTag>getTags()The tags (key and value pairs) of the resource group.inthashCode()voidsetArn(String arn)The ARN of the resource group.voidsetCreatedAt(Date createdAt)The time at which resource group is created.voidsetTags(Collection<ResourceGroupTag> tags)The tags (key and value pairs) of the resource group.StringtoString()Returns a string representation of this object; useful for testing and debugging.ResourceGroupwithArn(String arn)The ARN of the resource group.ResourceGroupwithCreatedAt(Date createdAt)The time at which resource group is created.ResourceGroupwithTags(ResourceGroupTag... tags)The tags (key and value pairs) of the resource group.ResourceGroupwithTags(Collection<ResourceGroupTag> tags)The tags (key and value pairs) of the resource group.
-
-
-
Method Detail
-
setArn
public void setArn(String arn)
The ARN of the resource group.
- Parameters:
arn- The ARN of the resource group.
-
getArn
public String getArn()
The ARN of the resource group.
- Returns:
- The ARN of the resource group.
-
withArn
public ResourceGroup withArn(String arn)
The ARN of the resource group.
- Parameters:
arn- The ARN of the resource group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<ResourceGroupTag> getTags()
The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
- Returns:
- The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
-
setTags
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.
- Parameters:
tags- The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.
-
withTags
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)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
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.
- Parameters:
tags- The tags (key and value pairs) of the resource group. This data type property is used in the CreateResourceGroup action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreatedAt
public void setCreatedAt(Date createdAt)
The time at which resource group is created.
- Parameters:
createdAt- The time at which resource group is created.
-
getCreatedAt
public Date getCreatedAt()
The time at which resource group is created.
- Returns:
- The time at which resource group is created.
-
withCreatedAt
public ResourceGroup withCreatedAt(Date createdAt)
The time at which resource group is created.
- Parameters:
createdAt- The time at which resource group is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ResourceGroup clone()
-
-