Class BucketTaggingConfiguration
- java.lang.Object
-
- com.amazonaws.services.s3.model.BucketTaggingConfiguration
-
- All Implemented Interfaces:
Serializable
public class BucketTaggingConfiguration extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BucketTaggingConfiguration()Creates a new bucket tagging configuration.BucketTaggingConfiguration(Collection<TagSet> tagSets)Creates a new bucket Tagging configuration containing the specifiedTopicConfigurations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TagSet>getAllTagSets()Gets the list ofTagSetobjects contained in this object.TagSetgetTagSet()Gets the firstTagSetobject contained in this object.TagSetgetTagSetAtIndex(int index)Gets theTagSetobject at the specified index contained in this object.voidsetTagSets(Collection<TagSet> tagSets)Sets theTagSet.StringtoString()BucketTaggingConfigurationwithTagSets(TagSet... tagSets)Sets theTagSetTagSetsand returns this object, enabling additional method calls to be chained together.
-
-
-
Constructor Detail
-
BucketTaggingConfiguration
public BucketTaggingConfiguration()
Creates a new bucket tagging configuration. By default, the newly created configuration is empty.
Passing the new configuration directly to
AmazonS3.setBucketTaggingConfiguration(String,BucketTaggingConfiguration)will remove any existing bucket tagging configuration.- See Also:
BucketTaggingConfiguration(Collection)
-
BucketTaggingConfiguration
public BucketTaggingConfiguration(Collection<TagSet> tagSets)
Creates a new bucket Tagging configuration containing the specified
TopicConfigurations.Passing the new configuration directly to
AmazonS3.setBucketTaggingConfiguration(String,BucketTaggingConfiguration)will set the bucket's Tagging configuration and overwrite any existing configuration.- See Also:
BucketTaggingConfiguration()
-
-
Method Detail
-
withTagSets
public BucketTaggingConfiguration withTagSets(TagSet... tagSets)
Sets the
TagSetTagSetsand returns this object, enabling additional method calls to be chained together.Calling this method will overwrite any previously set
TagSetsfor this object.- Parameters:
tagSets- A set of TagSet objects.- Returns:
- The updated
BucketTaggingConfigurationobject, enabling additional method calls to be chained together. - See Also:
setTagSets(Collection)
-
setTagSets
public void setTagSets(Collection<TagSet> tagSets)
Sets the
TagSet.Calling this method will overwrite any previously set
TagSetsfor this object.- Parameters:
tagSets- A collection of TagSet objects.- See Also:
withTagSets(TagSet...)
-
getAllTagSets
public List<TagSet> getAllTagSets()
Gets the list of
TagSetobjects contained in this object. This method may return an empty list if noTagSetobjects are present.- Returns:
- The list of
TagSetobjects contained in this object. May return an empty list.
-
getTagSet
public TagSet getTagSet()
Gets the first
TagSetobject contained in this object. This method may return null list if noTagSetobjects are present.- Returns:
- The first
TagSetobject contained in the object
-
getTagSetAtIndex
public TagSet getTagSetAtIndex(int index)
Gets the
TagSetobject at the specified index contained in this object.- Parameters:
index- The index of theTagSetobject to return- Returns:
- The
TagSetobject contained in the object
-
-