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

cfdsl.opsworks.property.SSLConfiguration Maven / Gradle / Ivy

The newest version!
package cfdsl.opsworks.property;

import cfdsl.EmbeddedProperty;

public final class SSLConfiguration extends EmbeddedProperty {
    private SSLConfiguration(Builder b) {
        super(b);
    }

    public static Builder of(String certificate, String privateKey) {
        return new Builder(certificate, privateKey);
    }

    public static final class Builder extends EmbeddedProperty.Builder {
        private Builder(String certificate, String privateKey) {
            addProperty("Certificate", certificate);
            addProperty("PrivateKey", privateKey);
        }

        public Builder chain(String chain) {
            addProperty("Chain", chain);
            return this;
        }

        @Override
        public SSLConfiguration build() {
            return new SSLConfiguration(this);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy