Example usage for com.amazonaws.services.codebuild.model ArtifactsType S3

List of usage examples for com.amazonaws.services.codebuild.model ArtifactsType S3

Introduction

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

Prototype

ArtifactsType S3

To view the source code for com.amazonaws.services.codebuild.model ArtifactsType S3.

Click Source Link

Usage

From source file:CodeBuilder.java

License:Open Source License

public String generateS3ArtifactURL(String baseURL, String artifactLocation, String artifactType)
        throws UnsupportedEncodingException {
    if (artifactLocation == null || artifactLocation.isEmpty() || artifactType == null
            || !artifactType.equals(ArtifactsType.S3.toString())) {
        return "";
    } else {//from w ww .  j av a  2  s. com
        return new StringBuilder().append(baseURL).append("region=" + this.region + "#")
                .append("&bucket=" + URLEncoder.encode(artifactLocation, "UTF-8")).toString();
    }
}