List of usage examples for com.amazonaws.services.ec2.model Snapshot setTags
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the snapshot.
From source file:com.pearson.eidetic.driver.threads.EideticSubThreadMethods.java
@Override public void setResourceTags(AmazonEC2Client ec2Client, Snapshot snapshot, Collection<Tag> tags, Integer numRetries, Integer maxApiRequestsPerSecond, String uniqueAwsAccountIdentifier) { CreateTagsRequest createTagsRequest = new CreateTagsRequest().withResources(snapshot.getSnapshotId()) .withTags(tags);/* w w w .j a v a 2s .com*/ EC2ClientMethods.createTags(ec2Client, createTagsRequest, numRetries, maxApiRequestsPerSecond, uniqueAwsAccountIdentifier); snapshot.setTags(tags); }
From source file:jp.primecloud.auto.aws.typica.converter.SnapshotConverter.java
License:Open Source License
@Override protected Snapshot convertObject(SnapshotInfo from) { Snapshot to = new Snapshot(); to.setSnapshotId(from.getSnapshotId()); to.setVolumeId(from.getVolumeId());// w w w . j a v a 2 s . c o m to.setState(from.getStatus()); to.setStartTime(from.getStartTime().getTime()); to.setProgress(from.getProgress()); // to.setOwnerId(null); to.setDescription(null); to.setVolumeSize(null); to.setOwnerAlias(null); to.setTags(null); return to; }