Class AddTagsRequest

    • Constructor Detail

      • AddTagsRequest

        public AddTagsRequest()
    • Method Detail

      • setResourceId

        public void setResourceId​(String resourceId)

        Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:

        arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

        Parameters:
        resourceId - Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:

        arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

      • getResourceId

        public String getResourceId()

        Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:

        arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

        Returns:
        Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:

        arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

      • withResourceId

        public AddTagsRequest withResourceId​(String resourceId)

        Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:

        arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

        Parameters:
        resourceId - Specifies the ARN of the trail to which one or more tags will be added. The format of a trail ARN is:

        arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getTagsList

        public List<Tag> getTagsList()

        Contains a list of CloudTrail tags, up to a limit of 10.

        Returns:
        Contains a list of CloudTrail tags, up to a limit of 10.
      • setTagsList

        public void setTagsList​(Collection<Tag> tagsList)

        Contains a list of CloudTrail tags, up to a limit of 10.

        Parameters:
        tagsList - Contains a list of CloudTrail tags, up to a limit of 10.
      • withTagsList

        public AddTagsRequest withTagsList​(Tag... tagsList)

        Contains a list of CloudTrail tags, up to a limit of 10.

        NOTE: This method appends the values to the existing list (if any). Use setTagsList(java.util.Collection) or withTagsList(java.util.Collection) if you want to override the existing values.

        Parameters:
        tagsList - Contains a list of CloudTrail tags, up to a limit of 10.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTagsList

        public AddTagsRequest withTagsList​(Collection<Tag> tagsList)

        Contains a list of CloudTrail tags, up to a limit of 10.

        Parameters:
        tagsList - Contains a list of CloudTrail tags, up to a limit of 10.
        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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object