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

com.aliyun.ros.cdk.cms.RosEventRuleTargets Maven / Gradle / Ivy

Go to download

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

The newest version!
package com.aliyun.ros.cdk.cms;

/**
 * This class is a base encapsulation around the ROS resource type ALIYUN::CMS::EventRuleTargets, which is used to add or change the recipients to which alert notifications are sent based on an event-triggered alert rule.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:05.707Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cms.$Module.class, fqn = "@alicloud/ros-cdk-cms.RosEventRuleTargets")
public class RosEventRuleTargets extends com.aliyun.ros.cdk.core.RosResource {

    protected RosEventRuleTargets(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected RosEventRuleTargets(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    static {
        ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.cms.RosEventRuleTargets.class, "ROS_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
    }

    /**
     * @param scope 
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param props
  • resource properties.
This parameter is required. * @param enableResourcePropertyConstraint This parameter is required. */ public RosEventRuleTargets(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.cms.RosEventRuleTargetsProps props, final @org.jetbrains.annotations.NotNull java.lang.Boolean enableResourcePropertyConstraint) { 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"), java.util.Objects.requireNonNull(enableResourcePropertyConstraint, "enableResourcePropertyConstraint is required") }); } @Override protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") })); } /** * The resource type name for this resource class. */ public final static java.lang.String ROS_RESOURCE_TYPE_NAME; @Override protected @org.jetbrains.annotations.NotNull java.util.Map getRosProperties() { return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "rosProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)))); } public @org.jetbrains.annotations.NotNull java.lang.Boolean getEnableResourcePropertyConstraint() { return software.amazon.jsii.Kernel.get(this, "enableResourcePropertyConstraint", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); } public void setEnableResourcePropertyConstraint(final @org.jetbrains.annotations.NotNull java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "enableResourcePropertyConstraint", java.util.Objects.requireNonNull(value, "enableResourcePropertyConstraint is required")); } /** */ public @org.jetbrains.annotations.NotNull java.lang.Object getRuleName() { return software.amazon.jsii.Kernel.get(this, "ruleName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setRuleName(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "ruleName", java.util.Objects.requireNonNull(value, "ruleName is required")); } /** */ public void setRuleName(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "ruleName", java.util.Objects.requireNonNull(value, "ruleName is required")); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getContactParameters() { return software.amazon.jsii.Kernel.get(this, "contactParameters", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setContactParameters(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "contactParameters", value); } /** */ public void setContactParameters(final @org.jetbrains.annotations.Nullable java.util.List value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) { final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0); if ( !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable) && !(__val_ac66f0 instanceof com.aliyun.ros.cdk.cms.RosEventRuleTargets.ContactParametersProperty) && !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".get(").append(__idx_ac66f0).append(")") .append(" to be one of: com.aliyun.ros.cdk.core.IResolvable, com.aliyun.ros.cdk.cms.RosEventRuleTargets.ContactParametersProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "contactParameters", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getFcParameters() { return software.amazon.jsii.Kernel.get(this, "fcParameters", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setFcParameters(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "fcParameters", value); } /** */ public void setFcParameters(final @org.jetbrains.annotations.Nullable java.util.List value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) { final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0); if ( !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable) && !(__val_ac66f0 instanceof com.aliyun.ros.cdk.cms.RosEventRuleTargets.FcParametersProperty) && !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".get(").append(__idx_ac66f0).append(")") .append(" to be one of: com.aliyun.ros.cdk.core.IResolvable, com.aliyun.ros.cdk.cms.RosEventRuleTargets.FcParametersProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "fcParameters", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getMnsParameters() { return software.amazon.jsii.Kernel.get(this, "mnsParameters", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setMnsParameters(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "mnsParameters", value); } /** */ public void setMnsParameters(final @org.jetbrains.annotations.Nullable java.util.List value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) { final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0); if ( !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable) && !(__val_ac66f0 instanceof com.aliyun.ros.cdk.cms.RosEventRuleTargets.MnsParametersProperty) && !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".get(").append(__idx_ac66f0).append(")") .append(" to be one of: com.aliyun.ros.cdk.core.IResolvable, com.aliyun.ros.cdk.cms.RosEventRuleTargets.MnsParametersProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "mnsParameters", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSlsParameters() { return software.amazon.jsii.Kernel.get(this, "slsParameters", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSlsParameters(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "slsParameters", value); } /** */ public void setSlsParameters(final @org.jetbrains.annotations.Nullable java.util.List value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) { final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0); if ( !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable) && !(__val_ac66f0 instanceof com.aliyun.ros.cdk.cms.RosEventRuleTargets.SlsParametersProperty) && !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".get(").append(__idx_ac66f0).append(")") .append(" to be one of: com.aliyun.ros.cdk.core.IResolvable, com.aliyun.ros.cdk.cms.RosEventRuleTargets.SlsParametersProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "slsParameters", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getWebhookParameters() { return software.amazon.jsii.Kernel.get(this, "webhookParameters", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setWebhookParameters(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "webhookParameters", value); } /** */ public void setWebhookParameters(final @org.jetbrains.annotations.Nullable java.util.List value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { for (int __idx_ac66f0 = 0; __idx_ac66f0 < value.size(); __idx_ac66f0++) { final java.lang.Object __val_ac66f0 = value.get(__idx_ac66f0); if ( !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable) && !(__val_ac66f0 instanceof com.aliyun.ros.cdk.cms.RosEventRuleTargets.WebhookParametersProperty) && !(__val_ac66f0.getClass().equals(software.amazon.jsii.JsiiObject.class)) ) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".get(").append(__idx_ac66f0).append(")") .append(" to be one of: com.aliyun.ros.cdk.core.IResolvable, com.aliyun.ros.cdk.cms.RosEventRuleTargets.WebhookParametersProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "webhookParameters", value); } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cms.$Module.class, fqn = "@alicloud/ros-cdk-cms.RosEventRuleTargets.ContactParametersProperty") @software.amazon.jsii.Jsii.Proxy(ContactParametersProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface ContactParametersProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getContactGroupName() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getIdentity() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getLevel() { return null; } /** * @return a {@link Builder} of {@link ContactParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link ContactParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object contactGroupName; java.lang.Object identity; java.lang.Object level; /** * Sets the value of {@link ContactParametersProperty#getContactGroupName} * @param contactGroupName the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder contactGroupName(java.lang.String contactGroupName) { this.contactGroupName = contactGroupName; return this; } /** * Sets the value of {@link ContactParametersProperty#getContactGroupName} * @param contactGroupName the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder contactGroupName(com.aliyun.ros.cdk.core.IResolvable contactGroupName) { this.contactGroupName = contactGroupName; return this; } /** * Sets the value of {@link ContactParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(java.lang.String identity) { this.identity = identity; return this; } /** * Sets the value of {@link ContactParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(com.aliyun.ros.cdk.core.IResolvable identity) { this.identity = identity; return this; } /** * Sets the value of {@link ContactParametersProperty#getLevel} * @param level the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder level(java.lang.String level) { this.level = level; return this; } /** * Sets the value of {@link ContactParametersProperty#getLevel} * @param level the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder level(com.aliyun.ros.cdk.core.IResolvable level) { this.level = level; return this; } /** * Builds the configured instance. * @return a new instance of {@link ContactParametersProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public ContactParametersProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link ContactParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContactParametersProperty { private final java.lang.Object contactGroupName; private final java.lang.Object identity; private final java.lang.Object level; /** * 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.contactGroupName = software.amazon.jsii.Kernel.get(this, "contactGroupName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.identity = software.amazon.jsii.Kernel.get(this, "identity", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.level = software.amazon.jsii.Kernel.get(this, "level", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.contactGroupName = builder.contactGroupName; this.identity = builder.identity; this.level = builder.level; } @Override public final java.lang.Object getContactGroupName() { return this.contactGroupName; } @Override public final java.lang.Object getIdentity() { return this.identity; } @Override public final java.lang.Object getLevel() { return this.level; } @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(); if (this.getContactGroupName() != null) { data.set("contactGroupName", om.valueToTree(this.getContactGroupName())); } if (this.getIdentity() != null) { data.set("identity", om.valueToTree(this.getIdentity())); } if (this.getLevel() != null) { data.set("level", om.valueToTree(this.getLevel())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-cms.RosEventRuleTargets.ContactParametersProperty")); 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; ContactParametersProperty.Jsii$Proxy that = (ContactParametersProperty.Jsii$Proxy) o; if (this.contactGroupName != null ? !this.contactGroupName.equals(that.contactGroupName) : that.contactGroupName != null) return false; if (this.identity != null ? !this.identity.equals(that.identity) : that.identity != null) return false; return this.level != null ? this.level.equals(that.level) : that.level == null; } @Override public final int hashCode() { int result = this.contactGroupName != null ? this.contactGroupName.hashCode() : 0; result = 31 * result + (this.identity != null ? this.identity.hashCode() : 0); result = 31 * result + (this.level != null ? this.level.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cms.$Module.class, fqn = "@alicloud/ros-cdk-cms.RosEventRuleTargets.FcParametersProperty") @software.amazon.jsii.Jsii.Proxy(FcParametersProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface FcParametersProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getFunctionName() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getIdentity() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getRegion() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getServiceName() { return null; } /** * @return a {@link Builder} of {@link FcParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link FcParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object functionName; java.lang.Object identity; java.lang.Object region; java.lang.Object serviceName; /** * Sets the value of {@link FcParametersProperty#getFunctionName} * @param functionName the value to be set. * @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 FcParametersProperty#getFunctionName} * @param functionName the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder functionName(com.aliyun.ros.cdk.core.IResolvable functionName) { this.functionName = functionName; return this; } /** * Sets the value of {@link FcParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(java.lang.String identity) { this.identity = identity; return this; } /** * Sets the value of {@link FcParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(com.aliyun.ros.cdk.core.IResolvable identity) { this.identity = identity; return this; } /** * Sets the value of {@link FcParametersProperty#getRegion} * @param region the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(java.lang.String region) { this.region = region; return this; } /** * Sets the value of {@link FcParametersProperty#getRegion} * @param region the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(com.aliyun.ros.cdk.core.IResolvable region) { this.region = region; return this; } /** * Sets the value of {@link FcParametersProperty#getServiceName} * @param serviceName the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder serviceName(java.lang.String serviceName) { this.serviceName = serviceName; return this; } /** * Sets the value of {@link FcParametersProperty#getServiceName} * @param serviceName the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder serviceName(com.aliyun.ros.cdk.core.IResolvable serviceName) { this.serviceName = serviceName; return this; } /** * Builds the configured instance. * @return a new instance of {@link FcParametersProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public FcParametersProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link FcParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements FcParametersProperty { private final java.lang.Object functionName; private final java.lang.Object identity; private final java.lang.Object region; private final java.lang.Object serviceName; /** * 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.functionName = software.amazon.jsii.Kernel.get(this, "functionName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.identity = software.amazon.jsii.Kernel.get(this, "identity", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.serviceName = software.amazon.jsii.Kernel.get(this, "serviceName", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.functionName = builder.functionName; this.identity = builder.identity; this.region = builder.region; this.serviceName = builder.serviceName; } @Override public final java.lang.Object getFunctionName() { return this.functionName; } @Override public final java.lang.Object getIdentity() { return this.identity; } @Override public final java.lang.Object getRegion() { return this.region; } @Override public final java.lang.Object getServiceName() { return this.serviceName; } @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(); if (this.getFunctionName() != null) { data.set("functionName", om.valueToTree(this.getFunctionName())); } if (this.getIdentity() != null) { data.set("identity", om.valueToTree(this.getIdentity())); } if (this.getRegion() != null) { data.set("region", om.valueToTree(this.getRegion())); } if (this.getServiceName() != null) { data.set("serviceName", om.valueToTree(this.getServiceName())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-cms.RosEventRuleTargets.FcParametersProperty")); 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; FcParametersProperty.Jsii$Proxy that = (FcParametersProperty.Jsii$Proxy) o; if (this.functionName != null ? !this.functionName.equals(that.functionName) : that.functionName != null) return false; if (this.identity != null ? !this.identity.equals(that.identity) : that.identity != null) return false; if (this.region != null ? !this.region.equals(that.region) : that.region != null) return false; return this.serviceName != null ? this.serviceName.equals(that.serviceName) : that.serviceName == null; } @Override public final int hashCode() { int result = this.functionName != null ? this.functionName.hashCode() : 0; result = 31 * result + (this.identity != null ? this.identity.hashCode() : 0); result = 31 * result + (this.region != null ? this.region.hashCode() : 0); result = 31 * result + (this.serviceName != null ? this.serviceName.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cms.$Module.class, fqn = "@alicloud/ros-cdk-cms.RosEventRuleTargets.MnsParametersProperty") @software.amazon.jsii.Jsii.Proxy(MnsParametersProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface MnsParametersProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getIdentity() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getQueue() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getRegion() { return null; } /** * @return a {@link Builder} of {@link MnsParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link MnsParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object identity; java.lang.Object queue; java.lang.Object region; /** * Sets the value of {@link MnsParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(java.lang.String identity) { this.identity = identity; return this; } /** * Sets the value of {@link MnsParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(com.aliyun.ros.cdk.core.IResolvable identity) { this.identity = identity; return this; } /** * Sets the value of {@link MnsParametersProperty#getQueue} * @param queue the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder queue(java.lang.String queue) { this.queue = queue; return this; } /** * Sets the value of {@link MnsParametersProperty#getQueue} * @param queue the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder queue(com.aliyun.ros.cdk.core.IResolvable queue) { this.queue = queue; return this; } /** * Sets the value of {@link MnsParametersProperty#getRegion} * @param region the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(java.lang.String region) { this.region = region; return this; } /** * Sets the value of {@link MnsParametersProperty#getRegion} * @param region the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(com.aliyun.ros.cdk.core.IResolvable region) { this.region = region; return this; } /** * Builds the configured instance. * @return a new instance of {@link MnsParametersProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public MnsParametersProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link MnsParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MnsParametersProperty { private final java.lang.Object identity; private final java.lang.Object queue; private final java.lang.Object region; /** * 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.identity = software.amazon.jsii.Kernel.get(this, "identity", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.queue = software.amazon.jsii.Kernel.get(this, "queue", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.identity = builder.identity; this.queue = builder.queue; this.region = builder.region; } @Override public final java.lang.Object getIdentity() { return this.identity; } @Override public final java.lang.Object getQueue() { return this.queue; } @Override public final java.lang.Object getRegion() { return this.region; } @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(); if (this.getIdentity() != null) { data.set("identity", om.valueToTree(this.getIdentity())); } if (this.getQueue() != null) { data.set("queue", om.valueToTree(this.getQueue())); } if (this.getRegion() != null) { data.set("region", om.valueToTree(this.getRegion())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-cms.RosEventRuleTargets.MnsParametersProperty")); 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; MnsParametersProperty.Jsii$Proxy that = (MnsParametersProperty.Jsii$Proxy) o; if (this.identity != null ? !this.identity.equals(that.identity) : that.identity != null) return false; if (this.queue != null ? !this.queue.equals(that.queue) : that.queue != null) return false; return this.region != null ? this.region.equals(that.region) : that.region == null; } @Override public final int hashCode() { int result = this.identity != null ? this.identity.hashCode() : 0; result = 31 * result + (this.queue != null ? this.queue.hashCode() : 0); result = 31 * result + (this.region != null ? this.region.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cms.$Module.class, fqn = "@alicloud/ros-cdk-cms.RosEventRuleTargets.SlsParametersProperty") @software.amazon.jsii.Jsii.Proxy(SlsParametersProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface SlsParametersProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getIdentity() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getLogStore() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getProject() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getRegion() { return null; } /** * @return a {@link Builder} of {@link SlsParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link SlsParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object identity; java.lang.Object logStore; java.lang.Object project; java.lang.Object region; /** * Sets the value of {@link SlsParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(java.lang.String identity) { this.identity = identity; return this; } /** * Sets the value of {@link SlsParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(com.aliyun.ros.cdk.core.IResolvable identity) { this.identity = identity; return this; } /** * Sets the value of {@link SlsParametersProperty#getLogStore} * @param logStore the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder logStore(java.lang.String logStore) { this.logStore = logStore; return this; } /** * Sets the value of {@link SlsParametersProperty#getLogStore} * @param logStore the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder logStore(com.aliyun.ros.cdk.core.IResolvable logStore) { this.logStore = logStore; return this; } /** * Sets the value of {@link SlsParametersProperty#getProject} * @param project the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder project(java.lang.String project) { this.project = project; return this; } /** * Sets the value of {@link SlsParametersProperty#getProject} * @param project the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder project(com.aliyun.ros.cdk.core.IResolvable project) { this.project = project; return this; } /** * Sets the value of {@link SlsParametersProperty#getRegion} * @param region the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(java.lang.String region) { this.region = region; return this; } /** * Sets the value of {@link SlsParametersProperty#getRegion} * @param region the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(com.aliyun.ros.cdk.core.IResolvable region) { this.region = region; return this; } /** * Builds the configured instance. * @return a new instance of {@link SlsParametersProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public SlsParametersProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link SlsParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SlsParametersProperty { private final java.lang.Object identity; private final java.lang.Object logStore; private final java.lang.Object project; private final java.lang.Object region; /** * 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.identity = software.amazon.jsii.Kernel.get(this, "identity", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.logStore = software.amazon.jsii.Kernel.get(this, "logStore", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.project = software.amazon.jsii.Kernel.get(this, "project", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.identity = builder.identity; this.logStore = builder.logStore; this.project = builder.project; this.region = builder.region; } @Override public final java.lang.Object getIdentity() { return this.identity; } @Override public final java.lang.Object getLogStore() { return this.logStore; } @Override public final java.lang.Object getProject() { return this.project; } @Override public final java.lang.Object getRegion() { return this.region; } @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(); if (this.getIdentity() != null) { data.set("identity", om.valueToTree(this.getIdentity())); } if (this.getLogStore() != null) { data.set("logStore", om.valueToTree(this.getLogStore())); } if (this.getProject() != null) { data.set("project", om.valueToTree(this.getProject())); } if (this.getRegion() != null) { data.set("region", om.valueToTree(this.getRegion())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-cms.RosEventRuleTargets.SlsParametersProperty")); 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; SlsParametersProperty.Jsii$Proxy that = (SlsParametersProperty.Jsii$Proxy) o; if (this.identity != null ? !this.identity.equals(that.identity) : that.identity != null) return false; if (this.logStore != null ? !this.logStore.equals(that.logStore) : that.logStore != null) return false; if (this.project != null ? !this.project.equals(that.project) : that.project != null) return false; return this.region != null ? this.region.equals(that.region) : that.region == null; } @Override public final int hashCode() { int result = this.identity != null ? this.identity.hashCode() : 0; result = 31 * result + (this.logStore != null ? this.logStore.hashCode() : 0); result = 31 * result + (this.project != null ? this.project.hashCode() : 0); result = 31 * result + (this.region != null ? this.region.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cms.$Module.class, fqn = "@alicloud/ros-cdk-cms.RosEventRuleTargets.WebhookParametersProperty") @software.amazon.jsii.Jsii.Proxy(WebhookParametersProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface WebhookParametersProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getIdentity() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getMethod() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getProtocol() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getUrl() { return null; } /** * @return a {@link Builder} of {@link WebhookParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link WebhookParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object identity; java.lang.Object method; java.lang.Object protocol; java.lang.Object url; /** * Sets the value of {@link WebhookParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(java.lang.String identity) { this.identity = identity; return this; } /** * Sets the value of {@link WebhookParametersProperty#getIdentity} * @param identity the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder identity(com.aliyun.ros.cdk.core.IResolvable identity) { this.identity = identity; return this; } /** * Sets the value of {@link WebhookParametersProperty#getMethod} * @param method the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder method(java.lang.String method) { this.method = method; return this; } /** * Sets the value of {@link WebhookParametersProperty#getMethod} * @param method the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder method(com.aliyun.ros.cdk.core.IResolvable method) { this.method = method; return this; } /** * Sets the value of {@link WebhookParametersProperty#getProtocol} * @param protocol the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder protocol(java.lang.String protocol) { this.protocol = protocol; return this; } /** * Sets the value of {@link WebhookParametersProperty#getProtocol} * @param protocol the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder protocol(com.aliyun.ros.cdk.core.IResolvable protocol) { this.protocol = protocol; return this; } /** * Sets the value of {@link WebhookParametersProperty#getUrl} * @param url the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder url(java.lang.String url) { this.url = url; return this; } /** * Sets the value of {@link WebhookParametersProperty#getUrl} * @param url the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder url(com.aliyun.ros.cdk.core.IResolvable url) { this.url = url; return this; } /** * Builds the configured instance. * @return a new instance of {@link WebhookParametersProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public WebhookParametersProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link WebhookParametersProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements WebhookParametersProperty { private final java.lang.Object identity; private final java.lang.Object method; private final java.lang.Object protocol; private final java.lang.Object url; /** * 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.identity = software.amazon.jsii.Kernel.get(this, "identity", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.method = software.amazon.jsii.Kernel.get(this, "method", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.protocol = software.amazon.jsii.Kernel.get(this, "protocol", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.url = software.amazon.jsii.Kernel.get(this, "url", software.amazon.jsii.NativeType.forClass(java.lang.Object.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.identity = builder.identity; this.method = builder.method; this.protocol = builder.protocol; this.url = builder.url; } @Override public final java.lang.Object getIdentity() { return this.identity; } @Override public final java.lang.Object getMethod() { return this.method; } @Override public final java.lang.Object getProtocol() { return this.protocol; } @Override public final java.lang.Object getUrl() { return this.url; } @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(); if (this.getIdentity() != null) { data.set("identity", om.valueToTree(this.getIdentity())); } if (this.getMethod() != null) { data.set("method", om.valueToTree(this.getMethod())); } if (this.getProtocol() != null) { data.set("protocol", om.valueToTree(this.getProtocol())); } if (this.getUrl() != null) { data.set("url", om.valueToTree(this.getUrl())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-cms.RosEventRuleTargets.WebhookParametersProperty")); 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; WebhookParametersProperty.Jsii$Proxy that = (WebhookParametersProperty.Jsii$Proxy) o; if (this.identity != null ? !this.identity.equals(that.identity) : that.identity != null) return false; if (this.method != null ? !this.method.equals(that.method) : that.method != null) return false; if (this.protocol != null ? !this.protocol.equals(that.protocol) : that.protocol != null) return false; return this.url != null ? this.url.equals(that.url) : that.url == null; } @Override public final int hashCode() { int result = this.identity != null ? this.identity.hashCode() : 0; result = 31 * result + (this.method != null ? this.method.hashCode() : 0); result = 31 * result + (this.protocol != null ? this.protocol.hashCode() : 0); result = 31 * result + (this.url != null ? this.url.hashCode() : 0); return result; } } } /** * A fluent builder for {@link com.aliyun.ros.cdk.cms.RosEventRuleTargets}. */ public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope
  • scope in which this resource is defined.
This parameter is required. * @param id
  • scoped id of the resource.
This parameter is required. * @param enableResourcePropertyConstraint This parameter is required. */ public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) { return new Builder(scope, id, enableResourcePropertyConstraint); } private final com.aliyun.ros.cdk.core.Construct scope; private final java.lang.String id; private final java.lang.Boolean enableResourcePropertyConstraint; private final com.aliyun.ros.cdk.cms.RosEventRuleTargetsProps.Builder props; private Builder(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id, final java.lang.Boolean enableResourcePropertyConstraint) { this.scope = scope; this.id = id; this.enableResourcePropertyConstraint = enableResourcePropertyConstraint; this.props = new com.aliyun.ros.cdk.cms.RosEventRuleTargetsProps.Builder(); } /** * @return {@code this} * @param ruleName This parameter is required. */ public Builder ruleName(final java.lang.String ruleName) { this.props.ruleName(ruleName); return this; } /** * @return {@code this} * @param ruleName This parameter is required. */ public Builder ruleName(final com.aliyun.ros.cdk.core.IResolvable ruleName) { this.props.ruleName(ruleName); return this; } /** * @return {@code this} * @param contactParameters This parameter is required. */ public Builder contactParameters(final com.aliyun.ros.cdk.core.IResolvable contactParameters) { this.props.contactParameters(contactParameters); return this; } /** * @return {@code this} * @param contactParameters This parameter is required. */ public Builder contactParameters(final java.util.List contactParameters) { this.props.contactParameters(contactParameters); return this; } /** * @return {@code this} * @param fcParameters This parameter is required. */ public Builder fcParameters(final com.aliyun.ros.cdk.core.IResolvable fcParameters) { this.props.fcParameters(fcParameters); return this; } /** * @return {@code this} * @param fcParameters This parameter is required. */ public Builder fcParameters(final java.util.List fcParameters) { this.props.fcParameters(fcParameters); return this; } /** * @return {@code this} * @param mnsParameters This parameter is required. */ public Builder mnsParameters(final com.aliyun.ros.cdk.core.IResolvable mnsParameters) { this.props.mnsParameters(mnsParameters); return this; } /** * @return {@code this} * @param mnsParameters This parameter is required. */ public Builder mnsParameters(final java.util.List mnsParameters) { this.props.mnsParameters(mnsParameters); return this; } /** * @return {@code this} * @param slsParameters This parameter is required. */ public Builder slsParameters(final com.aliyun.ros.cdk.core.IResolvable slsParameters) { this.props.slsParameters(slsParameters); return this; } /** * @return {@code this} * @param slsParameters This parameter is required. */ public Builder slsParameters(final java.util.List slsParameters) { this.props.slsParameters(slsParameters); return this; } /** * @return {@code this} * @param webhookParameters This parameter is required. */ public Builder webhookParameters(final com.aliyun.ros.cdk.core.IResolvable webhookParameters) { this.props.webhookParameters(webhookParameters); return this; } /** * @return {@code this} * @param webhookParameters This parameter is required. */ public Builder webhookParameters(final java.util.List webhookParameters) { this.props.webhookParameters(webhookParameters); return this; } /** * @return a newly built instance of {@link com.aliyun.ros.cdk.cms.RosEventRuleTargets}. */ @Override public com.aliyun.ros.cdk.cms.RosEventRuleTargets build() { return new com.aliyun.ros.cdk.cms.RosEventRuleTargets( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy