Example usage for com.amazonaws.services.s3.model BucketTaggingConfiguration setTagSets

List of usage examples for com.amazonaws.services.s3.model BucketTaggingConfiguration setTagSets

Introduction

In this page you can find the example usage for com.amazonaws.services.s3.model BucketTaggingConfiguration setTagSets.

Prototype

public void setTagSets(Collection<TagSet> tagSets) 

Source Link

Document

Sets the TagSet .

Usage

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;
}