ca.wheatstalk.cdkecskeycloak.NlbPortPublisher Maven / Gradle / Ivy
Show all versions of cdk-ecs-keycloak Show documentation
package ca.wheatstalk.cdkecskeycloak;
/**
* Publishes a port via a Network Load Balancer.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.24.0 (build b722f66)", date = "2021-03-04T07:10:04.641Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = ca.wheatstalk.cdkecskeycloak.$Module.class, fqn = "@wheatstalk/cdk-ecs-keycloak.NlbPortPublisher")
public class NlbPortPublisher extends software.amazon.jsii.JsiiObject implements ca.wheatstalk.cdkecskeycloak.IPortPublisher {
protected NlbPortPublisher(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected NlbPortPublisher(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public NlbPortPublisher(final @org.jetbrains.annotations.NotNull ca.wheatstalk.cdkecskeycloak.NlbPortPublisherProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* A fluent builder for {@link ca.wheatstalk.cdkecskeycloak.NlbPortPublisher}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create() {
return new Builder();
}
private final ca.wheatstalk.cdkecskeycloak.NlbPortPublisherProps.Builder props;
private Builder() {
this.props = new ca.wheatstalk.cdkecskeycloak.NlbPortPublisherProps.Builder();
}
/**
* Port to listen on.
*
* @return {@code this}
* @param port Port to listen on. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder port(final java.lang.Number port) {
this.props.port(port);
return this;
}
/**
* Enable health checking on this endpoint.
*
* Default: true
*
* @return {@code this}
* @param healthCheck Enable health checking on this endpoint. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder healthCheck(final java.lang.Boolean healthCheck) {
this.props.healthCheck(healthCheck);
return this;
}
/**
* Scope ID of the load balancer.
*
* Default: 'LoadBalancer'
*
* @return {@code this}
* @param id Scope ID of the load balancer. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder id(final java.lang.String id) {
this.props.id(id);
return this;
}
/**
* @returns a newly built instance of {@link ca.wheatstalk.cdkecskeycloak.NlbPortPublisher}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public ca.wheatstalk.cdkecskeycloak.NlbPortPublisher build() {
return new ca.wheatstalk.cdkecskeycloak.NlbPortPublisher(
this.props.build()
);
}
}
}