All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cdklabs.cdk.codepipeline.extensions.ChangeControllerProps Maven / Gradle / Ivy

Go to download

This project is for use in the workshop DOP 401: Get better at building AWS CDK constructs.

There is a newer version: 0.1.0
Show newest version
package io.github.cdklabs.cdk.codepipeline.extensions;

/**
 * (experimental) Properties used to create change controller.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.72.0 (build 4b8828b)", date = "2022-12-24T00:13:28.725Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.codepipeline.extensions.$Module.class, fqn = "@cdklabs/cdk-codepipeline-extensions.ChangeControllerProps")
@software.amazon.jsii.Jsii.Proxy(ChangeControllerProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface ChangeControllerProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * (experimental) The calendar object.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.codepipeline.extensions.Calendar getCalendar();

    /**
     * (experimental) The schedule on which to check the calendar and alarm state.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.events.Schedule getSchedule();

    /**
     * (experimental) The terms to search for in alarm descriptions.
     * 

* These if these alarms are in ALARM state, the change controller will close * the pipeline stage. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull java.util.List getSearchTerms(); /** * (experimental) The pipeline stage. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.codepipeline.IStage getStage(); /** * @return a {@link Builder} of {@link ChangeControllerProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link ChangeControllerProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { io.github.cdklabs.cdk.codepipeline.extensions.Calendar calendar; software.amazon.awscdk.services.events.Schedule schedule; java.util.List searchTerms; software.amazon.awscdk.services.codepipeline.IStage stage; /** * Sets the value of {@link ChangeControllerProps#getCalendar} * @param calendar The calendar object. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder calendar(io.github.cdklabs.cdk.codepipeline.extensions.Calendar calendar) { this.calendar = calendar; return this; } /** * Sets the value of {@link ChangeControllerProps#getSchedule} * @param schedule The schedule on which to check the calendar and alarm state. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder schedule(software.amazon.awscdk.services.events.Schedule schedule) { this.schedule = schedule; return this; } /** * Sets the value of {@link ChangeControllerProps#getSearchTerms} * @param searchTerms The terms to search for in alarm descriptions. This parameter is required. * These if these alarms are in ALARM state, the change controller will close * the pipeline stage. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder searchTerms(java.util.List searchTerms) { this.searchTerms = searchTerms; return this; } /** * Sets the value of {@link ChangeControllerProps#getStage} * @param stage The pipeline stage. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder stage(software.amazon.awscdk.services.codepipeline.IStage stage) { this.stage = stage; return this; } /** * Builds the configured instance. * @return a new instance of {@link ChangeControllerProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public ChangeControllerProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link ChangeControllerProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ChangeControllerProps { private final io.github.cdklabs.cdk.codepipeline.extensions.Calendar calendar; private final software.amazon.awscdk.services.events.Schedule schedule; private final java.util.List searchTerms; private final software.amazon.awscdk.services.codepipeline.IStage stage; /** * 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.calendar = software.amazon.jsii.Kernel.get(this, "calendar", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.codepipeline.extensions.Calendar.class)); this.schedule = software.amazon.jsii.Kernel.get(this, "schedule", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.events.Schedule.class)); this.searchTerms = software.amazon.jsii.Kernel.get(this, "searchTerms", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.stage = software.amazon.jsii.Kernel.get(this, "stage", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.codepipeline.IStage.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.calendar = java.util.Objects.requireNonNull(builder.calendar, "calendar is required"); this.schedule = java.util.Objects.requireNonNull(builder.schedule, "schedule is required"); this.searchTerms = java.util.Objects.requireNonNull(builder.searchTerms, "searchTerms is required"); this.stage = java.util.Objects.requireNonNull(builder.stage, "stage is required"); } @Override public final io.github.cdklabs.cdk.codepipeline.extensions.Calendar getCalendar() { return this.calendar; } @Override public final software.amazon.awscdk.services.events.Schedule getSchedule() { return this.schedule; } @Override public final java.util.List getSearchTerms() { return this.searchTerms; } @Override public final software.amazon.awscdk.services.codepipeline.IStage getStage() { return this.stage; } @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("calendar", om.valueToTree(this.getCalendar())); data.set("schedule", om.valueToTree(this.getSchedule())); data.set("searchTerms", om.valueToTree(this.getSearchTerms())); data.set("stage", om.valueToTree(this.getStage())); 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.ChangeControllerProps")); 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; ChangeControllerProps.Jsii$Proxy that = (ChangeControllerProps.Jsii$Proxy) o; if (!calendar.equals(that.calendar)) return false; if (!schedule.equals(that.schedule)) return false; if (!searchTerms.equals(that.searchTerms)) return false; return this.stage.equals(that.stage); } @Override public final int hashCode() { int result = this.calendar.hashCode(); result = 31 * result + (this.schedule.hashCode()); result = 31 * result + (this.searchTerms.hashCode()); result = 31 * result + (this.stage.hashCode()); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy