ca.wheatstalk.cdkecskeycloak.FromClusterInfoProvider Maven / Gradle / Ivy
Show all versions of cdk-ecs-keycloak Show documentation
package ca.wheatstalk.cdkecskeycloak;
/**
* Directly provide cluster info.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.29.0 (build 41df200)", date = "2021-04-28T04:27:48.343Z")
@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.FromClusterInfoProvider")
public class FromClusterInfoProvider extends software.amazon.jsii.JsiiObject implements ca.wheatstalk.cdkecskeycloak.IClusterInfoProvider {
protected FromClusterInfoProvider(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected FromClusterInfoProvider(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 FromClusterInfoProvider(final @org.jetbrains.annotations.NotNull ca.wheatstalk.cdkecskeycloak.FromClusterInfoProviderProps 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.FromClusterInfoProvider}.
*/
@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.FromClusterInfoProviderProps.Builder props;
private Builder() {
this.props = new ca.wheatstalk.cdkecskeycloak.FromClusterInfoProviderProps.Builder();
}
/**
* The ECS cluster for adding a service.
*
* @return {@code this}
* @param cluster The ECS cluster for adding a service. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder cluster(final software.amazon.awscdk.services.ecs.ICluster cluster) {
this.props.cluster(cluster);
return this;
}
/**
* @returns a newly built instance of {@link ca.wheatstalk.cdkecskeycloak.FromClusterInfoProvider}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public ca.wheatstalk.cdkecskeycloak.FromClusterInfoProvider build() {
return new ca.wheatstalk.cdkecskeycloak.FromClusterInfoProvider(
this.props.build()
);
}
}
}