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:
  • Constructor Details

    • ResourceGroup

      public ResourceGroup()
  • Method Details

    • 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) or withTags(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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ResourceGroup clone()
      Overrides:
      clone in class Object