ca.wheatstalk.cdkecskeycloak.FromDatabaseInfoProvider Maven / Gradle / Ivy
Show all versions of cdk-ecs-keycloak Show documentation
package ca.wheatstalk.cdkecskeycloak;
/**
* Provide database info directly.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.24.0 (build b722f66)", date = "2021-03-04T07:10:04.604Z")
@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.FromDatabaseInfoProvider")
public class FromDatabaseInfoProvider extends software.amazon.jsii.JsiiObject implements ca.wheatstalk.cdkecskeycloak.IDatabaseInfoProvider {
protected FromDatabaseInfoProvider(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected FromDatabaseInfoProvider(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 FromDatabaseInfoProvider(final @org.jetbrains.annotations.NotNull ca.wheatstalk.cdkecskeycloak.FromDatabaseInfoProviderProps 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.FromDatabaseInfoProvider}.
*/
@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.FromDatabaseInfoProviderProps.Builder props;
private Builder() {
this.props = new ca.wheatstalk.cdkecskeycloak.FromDatabaseInfoProviderProps.Builder();
}
/**
* Database credentials in standard RDS json format.
*
* @return {@code this}
* @param credentials Database credentials in standard RDS json format. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder credentials(final software.amazon.awscdk.services.secretsmanager.ISecret credentials) {
this.props.credentials(credentials);
return this;
}
/**
* Database vendor.
*
* @return {@code this}
* @param vendor Database vendor. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder vendor(final ca.wheatstalk.cdkecskeycloak.KeycloakDatabaseVendor vendor) {
this.props.vendor(vendor);
return this;
}
/**
* A connectable so that the cluster can allow itself to connect to the database.
*
* @return {@code this}
* @param connectable A connectable so that the cluster can allow itself to connect to the database. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder connectable(final software.amazon.awscdk.services.ec2.IConnectable connectable) {
this.props.connectable(connectable);
return this;
}
/**
* @returns a newly built instance of {@link ca.wheatstalk.cdkecskeycloak.FromDatabaseInfoProvider}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public ca.wheatstalk.cdkecskeycloak.FromDatabaseInfoProvider build() {
return new ca.wheatstalk.cdkecskeycloak.FromDatabaseInfoProvider(
this.props.build()
);
}
}
}