List of usage examples for com.amazonaws.services.s3.model BucketTaggingConfiguration setTagSets
public void setTagSets(Collection<TagSet> tagSets)
Sets the 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 ww . j a v a 2 s. c om tagSets.add(tagSet); bucketTaggingConfiguration.setTagSets(tagSets); return bucketTaggingConfiguration; }