io.github.cdklabs.cdk.amazonmq.ConfigurationAssociation Maven / Gradle / Ivy
package io.github.cdklabs.cdk.amazonmq;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.102.0 (build e354887)", date = "2024-08-08T22:30:31.777Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.amazonmq.$Module.class, fqn = "@cdklabs/cdk-amazonmq.ConfigurationAssociation")
public class ConfigurationAssociation extends software.amazon.awscdk.Resource {
protected ConfigurationAssociation(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected ConfigurationAssociation(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
/**
* @param scope This parameter is required.
* @param id This parameter is required.
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public ConfigurationAssociation(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.amazonmq.ConfigurationAssociationProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) A fluent builder for {@link io.github.cdklabs.cdk.amazonmq.ConfigurationAssociation}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope This parameter is required.
* @param id This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static Builder create(final software.constructs.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.constructs.Construct scope;
private final java.lang.String id;
private final io.github.cdklabs.cdk.amazonmq.ConfigurationAssociationProps.Builder props;
private Builder(final software.constructs.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new io.github.cdklabs.cdk.amazonmq.ConfigurationAssociationProps.Builder();
}
/**
* @return {@code this}
* @param broker This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder broker(final io.github.cdklabs.cdk.amazonmq.IBrokerDeployment broker) {
this.props.broker(broker);
return this;
}
/**
* @return {@code this}
* @param configuration This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder configuration(final io.github.cdklabs.cdk.amazonmq.IBrokerConfiguration configuration) {
this.props.configuration(configuration);
return this;
}
/**
* @return a newly built instance of {@link io.github.cdklabs.cdk.amazonmq.ConfigurationAssociation}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public io.github.cdklabs.cdk.amazonmq.ConfigurationAssociation build() {
return new io.github.cdklabs.cdk.amazonmq.ConfigurationAssociation(
this.scope,
this.id,
this.props.build()
);
}
}
}