Example usage for com.amazonaws.services.s3.model TagSet TagSet

List of usage examples for com.amazonaws.services.s3.model TagSet TagSet

Introduction

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

Prototype

public TagSet() 

Source Link

Document

Creates a new empty 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 w  w  . j a  v a 2 s. c om*/
    tagSets.add(tagSet);
    bucketTaggingConfiguration.setTagSets(tagSets);
    return bucketTaggingConfiguration;
}