Class BucketTaggingConfiguration

java.lang.Object
com.amazonaws.services.s3.model.BucketTaggingConfiguration
All Implemented Interfaces:
Serializable

public class BucketTaggingConfiguration extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • withTagSets

      public BucketTaggingConfiguration withTagSets(TagSet... tagSets)

      Sets the TagSet TagSets and returns this object, enabling additional method calls to be chained together.

      Calling this method will overwrite any previously set TagSets for this object.

      Parameters:
      tagSets - A set of TagSet objects.
      Returns:
      The updated BucketTaggingConfiguration object, enabling additional method calls to be chained together.
      See Also:
    • setTagSets

      public void setTagSets(Collection<TagSet> tagSets)

      Sets the TagSet.

      Calling this method will overwrite any previously set TagSets for this object.

      Parameters:
      tagSets - A collection of TagSet objects.
      See Also:
    • getAllTagSets

      public List<TagSet> getAllTagSets()

      Gets the list of TagSet objects contained in this object. This method may return an empty list if no TagSet objects are present.

      Returns:
      The list of TagSet objects contained in this object. May return an empty list.
    • getTagSet

      public TagSet getTagSet()

      Gets the first TagSet object contained in this object. This method may return null list if no TagSet objects are present.

      Returns:
      The first TagSet object contained in the object
    • getTagSetAtIndex

      public TagSet getTagSetAtIndex(int index)

      Gets the TagSet object at the specified index contained in this object.

      Parameters:
      index - The index of the TagSet object to return
      Returns:
      The TagSet object contained in the object
    • toString

      public String toString()
      Overrides:
      toString in class Object