Example usage for com.amazonaws.services.codedeploy.model RevisionLocationType S3

List of usage examples for com.amazonaws.services.codedeploy.model RevisionLocationType S3

Introduction

In this page you can find the example usage for com.amazonaws.services.codedeploy.model RevisionLocationType S3.

Prototype

RevisionLocationType S3

To view the source code for com.amazonaws.services.codedeploy.model RevisionLocationType S3.

Click Source Link

Usage

From source file:jetbrains.buildServer.runner.codedeploy.AWSClient.java

License:Apache License

@NotNull
private RevisionLocation getRevisionLocation(@NotNull String s3BucketName, @NotNull String s3ObjectKey,
        @NotNull String bundleType, @Nullable String s3ObjectVersion, @Nullable String s3ObjectETag) {
    final S3Location loc = new S3Location().withBucket(s3BucketName).withKey(s3ObjectKey)
            .withBundleType(bundleType);
    if (StringUtil.isNotEmpty(s3ObjectVersion))
        loc.withVersion(s3ObjectVersion);
    if (StringUtil.isNotEmpty(s3ObjectETag))
        loc.withETag(s3ObjectETag);//from  w  w  w. j av  a2  s  .  c  o m
    return new RevisionLocation().withRevisionType(RevisionLocationType.S3).withS3Location(loc);
}