All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfdsl.elasticbeanstalk.property.SourceBundle Maven / Gradle / Ivy

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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy