cfdsl.opsworks.property.SSLConfiguration 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.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);
}
}
}