List of usage examples for com.amazonaws.services.s3.model TagSet TagSet
public TagSet()
Creates a new empty TagSet.
From source file:com.eucalyptus.cloudformation.resources.standard.actions.AWSS3BucketResourceAction.java
License:Open Source License
private BucketTaggingConfiguration convertTags(List<CloudFormationResourceTag> tags) { BucketTaggingConfiguration bucketTaggingConfiguration = new BucketTaggingConfiguration(); // In theory BucketTaggingConfiguration Collection<TagSet> tagSets = Lists.newArrayList(); TagSet tagSet = new TagSet(); for (CloudFormationResourceTag cloudformationResourceTag : tags) { tagSet.setTag(cloudformationResourceTag.getKey(), cloudformationResourceTag.getValue()); }/*from w w w . j a v a 2 s. c om*/ tagSets.add(tagSet); bucketTaggingConfiguration.setTagSets(tagSets); return bucketTaggingConfiguration; }