cfdsl.elasticbeanstalk.property.SourceBundle Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cfdsl Show documentation
Show all versions of cfdsl Show documentation
Java DSL for Amazon CloudFormation templates
The newest version!
package cfdsl.elasticbeanstalk.property;
import cfdsl.EmbeddedProperty;
import cfdsl.fn.StringLike;
import cfdsl.s3.Bucket;
public final class SourceBundle extends EmbeddedProperty {
private SourceBundle(Builder b) {
super(b);
}
public static SourceBundle of(StringLike bucket, String key) {
return new Builder(bucket, key).build();
}
public static SourceBundle of(Bucket bucket, String key) {
return of(bucket.ref(), key);
}
public static final class Builder extends EmbeddedProperty.Builder {
private Builder(StringLike bucket, String key) {
addProperty("S3Bucket", bucket);
addProperty("S3Key", key);
}
@Override
public SourceBundle build() {
return new SourceBundle(this);
}
}
}