List of usage examples for com.amazonaws.services.s3.model TagSet setTag
public void setTag(String key, String value)
Sets the value of the tag for a given key.
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()); }/* www . j ava 2 s . c o m*/ tagSets.add(tagSet); bucketTaggingConfiguration.setTagSets(tagSets); return bucketTaggingConfiguration; }