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

org.mongodb.awscdk.resources.mongodbatlas.CfnTriggerProps Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package org.mongodb.awscdk.resources.mongodbatlas;

/**
 * View and manage your application's triggers.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.94.0 (build b380f01)", date = "2024-02-05T16:04:31.910Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CfnTriggerProps")
@software.amazon.jsii.Jsii.Proxy(CfnTriggerProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnTriggerProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * App Services Application ID.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getAppId();

    /**
     * Project Id for application services.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getProjectId();

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.AuthConfig getAuthTrigger() {
        return null;
    }

    /**
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.DatabaseConfig getDatabaseTrigger() {
        return null;
    }

    /**
     * If true, the trigger is disabled and does not listen for events or execute.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Boolean getDisabled() {
        return null;
    }

    /**
     * An object where each field name is an event processor ID and each value is an object that configures its corresponding event processor.
     * 

* For an example configuration object, see * Send Trigger Events to AWS * EventBridge. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.Event getEventProcessors() { return null; } /** * The ID of the function that the trigger calls when it fires. *

* This value is the same as event_processors.FUNCTION.function_id. * You can either define the value here or in event_processors.FUNCTION.function_id. * The App Services backend duplicates the value to the configuration location where you did not define it. *

* For example, if you define function_id, the backend duplicates it to event_processors.FUNCTION.function_id. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getFunctionId() { return null; } /** * The name of the function that the trigger calls when it fires, i.e. the function described by function_id. *

* This value is the same as event_processors.FUNCTION.function_name. * You can either define the value here or in event_processors.FUNCTION.function_name. * The App Services backend duplicates the value to the configuration location where you did not define it. *

* For example, if you define function_name, the backend duplicates it to event_processors.FUNCTION.function_name. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getFunctionName() { return null; } /** * The trigger's name. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getName() { return null; } /** * The profile is defined in AWS Secret manager. *

* See Secret Manager Profile setup. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProfile() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable org.mongodb.awscdk.resources.mongodbatlas.ScheduleConfig getScheduleTrigger() { return null; } /** * The trigger's type. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getType() { return null; } /** * @return a {@link Builder} of {@link CfnTriggerProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnTriggerProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String appId; java.lang.String projectId; org.mongodb.awscdk.resources.mongodbatlas.AuthConfig authTrigger; org.mongodb.awscdk.resources.mongodbatlas.DatabaseConfig databaseTrigger; java.lang.Boolean disabled; org.mongodb.awscdk.resources.mongodbatlas.Event eventProcessors; java.lang.String functionId; java.lang.String functionName; java.lang.String name; java.lang.String profile; org.mongodb.awscdk.resources.mongodbatlas.ScheduleConfig scheduleTrigger; java.lang.String type; /** * Sets the value of {@link CfnTriggerProps#getAppId} * @param appId App Services Application ID. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder appId(java.lang.String appId) { this.appId = appId; return this; } /** * Sets the value of {@link CfnTriggerProps#getProjectId} * @param projectId Project Id for application services. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder projectId(java.lang.String projectId) { this.projectId = projectId; return this; } /** * Sets the value of {@link CfnTriggerProps#getAuthTrigger} * @param authTrigger the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder authTrigger(org.mongodb.awscdk.resources.mongodbatlas.AuthConfig authTrigger) { this.authTrigger = authTrigger; return this; } /** * Sets the value of {@link CfnTriggerProps#getDatabaseTrigger} * @param databaseTrigger the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder databaseTrigger(org.mongodb.awscdk.resources.mongodbatlas.DatabaseConfig databaseTrigger) { this.databaseTrigger = databaseTrigger; return this; } /** * Sets the value of {@link CfnTriggerProps#getDisabled} * @param disabled If true, the trigger is disabled and does not listen for events or execute. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder disabled(java.lang.Boolean disabled) { this.disabled = disabled; return this; } /** * Sets the value of {@link CfnTriggerProps#getEventProcessors} * @param eventProcessors An object where each field name is an event processor ID and each value is an object that configures its corresponding event processor. * For an example configuration object, see * Send Trigger Events to AWS * EventBridge. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder eventProcessors(org.mongodb.awscdk.resources.mongodbatlas.Event eventProcessors) { this.eventProcessors = eventProcessors; return this; } /** * Sets the value of {@link CfnTriggerProps#getFunctionId} * @param functionId The ID of the function that the trigger calls when it fires. * This value is the same as event_processors.FUNCTION.function_id. * You can either define the value here or in event_processors.FUNCTION.function_id. * The App Services backend duplicates the value to the configuration location where you did not define it. *

* For example, if you define function_id, the backend duplicates it to event_processors.FUNCTION.function_id. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder functionId(java.lang.String functionId) { this.functionId = functionId; return this; } /** * Sets the value of {@link CfnTriggerProps#getFunctionName} * @param functionName The name of the function that the trigger calls when it fires, i.e. the function described by function_id. * This value is the same as event_processors.FUNCTION.function_name. * You can either define the value here or in event_processors.FUNCTION.function_name. * The App Services backend duplicates the value to the configuration location where you did not define it. *

* For example, if you define function_name, the backend duplicates it to event_processors.FUNCTION.function_name. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder functionName(java.lang.String functionName) { this.functionName = functionName; return this; } /** * Sets the value of {@link CfnTriggerProps#getName} * @param name The trigger's name. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link CfnTriggerProps#getProfile} * @param profile The profile is defined in AWS Secret manager. * See Secret Manager Profile setup. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder profile(java.lang.String profile) { this.profile = profile; return this; } /** * Sets the value of {@link CfnTriggerProps#getScheduleTrigger} * @param scheduleTrigger the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder scheduleTrigger(org.mongodb.awscdk.resources.mongodbatlas.ScheduleConfig scheduleTrigger) { this.scheduleTrigger = scheduleTrigger; return this; } /** * Sets the value of {@link CfnTriggerProps#getType} * @param type The trigger's type. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder type(java.lang.String type) { this.type = type; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnTriggerProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnTriggerProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CfnTriggerProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnTriggerProps { private final java.lang.String appId; private final java.lang.String projectId; private final org.mongodb.awscdk.resources.mongodbatlas.AuthConfig authTrigger; private final org.mongodb.awscdk.resources.mongodbatlas.DatabaseConfig databaseTrigger; private final java.lang.Boolean disabled; private final org.mongodb.awscdk.resources.mongodbatlas.Event eventProcessors; private final java.lang.String functionId; private final java.lang.String functionName; private final java.lang.String name; private final java.lang.String profile; private final org.mongodb.awscdk.resources.mongodbatlas.ScheduleConfig scheduleTrigger; private final java.lang.String type; /** * 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.appId = software.amazon.jsii.Kernel.get(this, "appId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.projectId = software.amazon.jsii.Kernel.get(this, "projectId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.authTrigger = software.amazon.jsii.Kernel.get(this, "authTrigger", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.AuthConfig.class)); this.databaseTrigger = software.amazon.jsii.Kernel.get(this, "databaseTrigger", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.DatabaseConfig.class)); this.disabled = software.amazon.jsii.Kernel.get(this, "disabled", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.eventProcessors = software.amazon.jsii.Kernel.get(this, "eventProcessors", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.Event.class)); this.functionId = software.amazon.jsii.Kernel.get(this, "functionId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.functionName = software.amazon.jsii.Kernel.get(this, "functionName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.scheduleTrigger = software.amazon.jsii.Kernel.get(this, "scheduleTrigger", software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.ScheduleConfig.class)); this.type = software.amazon.jsii.Kernel.get(this, "type", software.amazon.jsii.NativeType.forClass(java.lang.String.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.appId = java.util.Objects.requireNonNull(builder.appId, "appId is required"); this.projectId = java.util.Objects.requireNonNull(builder.projectId, "projectId is required"); this.authTrigger = builder.authTrigger; this.databaseTrigger = builder.databaseTrigger; this.disabled = builder.disabled; this.eventProcessors = builder.eventProcessors; this.functionId = builder.functionId; this.functionName = builder.functionName; this.name = builder.name; this.profile = builder.profile; this.scheduleTrigger = builder.scheduleTrigger; this.type = builder.type; } @Override public final java.lang.String getAppId() { return this.appId; } @Override public final java.lang.String getProjectId() { return this.projectId; } @Override public final org.mongodb.awscdk.resources.mongodbatlas.AuthConfig getAuthTrigger() { return this.authTrigger; } @Override public final org.mongodb.awscdk.resources.mongodbatlas.DatabaseConfig getDatabaseTrigger() { return this.databaseTrigger; } @Override public final java.lang.Boolean getDisabled() { return this.disabled; } @Override public final org.mongodb.awscdk.resources.mongodbatlas.Event getEventProcessors() { return this.eventProcessors; } @Override public final java.lang.String getFunctionId() { return this.functionId; } @Override public final java.lang.String getFunctionName() { return this.functionName; } @Override public final java.lang.String getName() { return this.name; } @Override public final java.lang.String getProfile() { return this.profile; } @Override public final org.mongodb.awscdk.resources.mongodbatlas.ScheduleConfig getScheduleTrigger() { return this.scheduleTrigger; } @Override public final java.lang.String getType() { return this.type; } @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("appId", om.valueToTree(this.getAppId())); data.set("projectId", om.valueToTree(this.getProjectId())); if (this.getAuthTrigger() != null) { data.set("authTrigger", om.valueToTree(this.getAuthTrigger())); } if (this.getDatabaseTrigger() != null) { data.set("databaseTrigger", om.valueToTree(this.getDatabaseTrigger())); } if (this.getDisabled() != null) { data.set("disabled", om.valueToTree(this.getDisabled())); } if (this.getEventProcessors() != null) { data.set("eventProcessors", om.valueToTree(this.getEventProcessors())); } if (this.getFunctionId() != null) { data.set("functionId", om.valueToTree(this.getFunctionId())); } if (this.getFunctionName() != null) { data.set("functionName", om.valueToTree(this.getFunctionName())); } if (this.getName() != null) { data.set("name", om.valueToTree(this.getName())); } if (this.getProfile() != null) { data.set("profile", om.valueToTree(this.getProfile())); } if (this.getScheduleTrigger() != null) { data.set("scheduleTrigger", om.valueToTree(this.getScheduleTrigger())); } if (this.getType() != null) { data.set("type", om.valueToTree(this.getType())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.CfnTriggerProps")); 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; CfnTriggerProps.Jsii$Proxy that = (CfnTriggerProps.Jsii$Proxy) o; if (!appId.equals(that.appId)) return false; if (!projectId.equals(that.projectId)) return false; if (this.authTrigger != null ? !this.authTrigger.equals(that.authTrigger) : that.authTrigger != null) return false; if (this.databaseTrigger != null ? !this.databaseTrigger.equals(that.databaseTrigger) : that.databaseTrigger != null) return false; if (this.disabled != null ? !this.disabled.equals(that.disabled) : that.disabled != null) return false; if (this.eventProcessors != null ? !this.eventProcessors.equals(that.eventProcessors) : that.eventProcessors != null) return false; if (this.functionId != null ? !this.functionId.equals(that.functionId) : that.functionId != null) return false; if (this.functionName != null ? !this.functionName.equals(that.functionName) : that.functionName != null) return false; if (this.name != null ? !this.name.equals(that.name) : that.name != null) return false; if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false; if (this.scheduleTrigger != null ? !this.scheduleTrigger.equals(that.scheduleTrigger) : that.scheduleTrigger != null) return false; return this.type != null ? this.type.equals(that.type) : that.type == null; } @Override public final int hashCode() { int result = this.appId.hashCode(); result = 31 * result + (this.projectId.hashCode()); result = 31 * result + (this.authTrigger != null ? this.authTrigger.hashCode() : 0); result = 31 * result + (this.databaseTrigger != null ? this.databaseTrigger.hashCode() : 0); result = 31 * result + (this.disabled != null ? this.disabled.hashCode() : 0); result = 31 * result + (this.eventProcessors != null ? this.eventProcessors.hashCode() : 0); result = 31 * result + (this.functionId != null ? this.functionId.hashCode() : 0); result = 31 * result + (this.functionName != null ? this.functionName.hashCode() : 0); result = 31 * result + (this.name != null ? this.name.hashCode() : 0); result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0); result = 31 * result + (this.scheduleTrigger != null ? this.scheduleTrigger.hashCode() : 0); result = 31 * result + (this.type != null ? this.type.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy