io.github.cdklabs.cdk.codepipeline.extensions.AggregateAlarmState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-codepipeline-extensions Show documentation
Show all versions of cdk-codepipeline-extensions Show documentation
This project is for use in the workshop DOP 401: Get better at building AWS CDK constructs.
package io.github.cdklabs.cdk.codepipeline.extensions;
/**
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.72.0 (build 4b8828b)", date = "2022-12-24T00:13:28.547Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.codepipeline.extensions.$Module.class, fqn = "@cdklabs/cdk-codepipeline-extensions.AggregateAlarmState")
@software.amazon.jsii.Jsii.Proxy(AggregateAlarmState.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface AggregateAlarmState extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.util.List getAlarmDetails();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.codepipeline.extensions.AlarmState getState();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@org.jetbrains.annotations.NotNull java.lang.String getSummary();
/**
* @return a {@link Builder} of {@link AggregateAlarmState}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link AggregateAlarmState}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
java.util.List alarmDetails;
io.github.cdklabs.cdk.codepipeline.extensions.AlarmState state;
java.lang.String summary;
/**
* Sets the value of {@link AggregateAlarmState#getAlarmDetails}
* @param alarmDetails the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder alarmDetails(java.util.List extends io.github.cdklabs.cdk.codepipeline.extensions.IAlarmDetail> alarmDetails) {
this.alarmDetails = (java.util.List)alarmDetails;
return this;
}
/**
* Sets the value of {@link AggregateAlarmState#getState}
* @param state the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder state(io.github.cdklabs.cdk.codepipeline.extensions.AlarmState state) {
this.state = state;
return this;
}
/**
* Sets the value of {@link AggregateAlarmState#getSummary}
* @param summary the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder summary(java.lang.String summary) {
this.summary = summary;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link AggregateAlarmState}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public AggregateAlarmState build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link AggregateAlarmState}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AggregateAlarmState {
private final java.util.List alarmDetails;
private final io.github.cdklabs.cdk.codepipeline.extensions.AlarmState state;
private final java.lang.String summary;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.alarmDetails = software.amazon.jsii.Kernel.get(this, "alarmDetails", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.codepipeline.extensions.IAlarmDetail.class)));
this.state = software.amazon.jsii.Kernel.get(this, "state", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.codepipeline.extensions.AlarmState.class));
this.summary = software.amazon.jsii.Kernel.get(this, "summary", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final Builder builder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.alarmDetails = (java.util.List)java.util.Objects.requireNonNull(builder.alarmDetails, "alarmDetails is required");
this.state = java.util.Objects.requireNonNull(builder.state, "state is required");
this.summary = java.util.Objects.requireNonNull(builder.summary, "summary is required");
}
@Override
public final java.util.List getAlarmDetails() {
return this.alarmDetails;
}
@Override
public final io.github.cdklabs.cdk.codepipeline.extensions.AlarmState getState() {
return this.state;
}
@Override
public final java.lang.String getSummary() {
return this.summary;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
data.set("alarmDetails", om.valueToTree(this.getAlarmDetails()));
data.set("state", om.valueToTree(this.getState()));
data.set("summary", om.valueToTree(this.getSummary()));
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@cdklabs/cdk-codepipeline-extensions.AggregateAlarmState"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AggregateAlarmState.Jsii$Proxy that = (AggregateAlarmState.Jsii$Proxy) o;
if (!alarmDetails.equals(that.alarmDetails)) return false;
if (!state.equals(that.state)) return false;
return this.summary.equals(that.summary);
}
@Override
public final int hashCode() {
int result = this.alarmDetails.hashCode();
result = 31 * result + (this.state.hashCode());
result = 31 * result + (this.summary.hashCode());
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy