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

com.aliyun.ros.cdk.alb.AScriptProps Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.2.0
Show newest version
package com.aliyun.ros.cdk.alb;

/**
 * Properties for defining a AScript.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-alb-ascript */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-08-22T08:56:17.402Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.alb.$Module.class, fqn = "@alicloud/ros-cdk-alb.AScriptProps") @software.amazon.jsii.Jsii.Proxy(AScriptProps.Jsii$Proxy.class) public interface AScriptProps extends software.amazon.jsii.JsiiSerializable { /** * Property aScriptName: The name of the AScript rule. *

* The name must be 2 to 128 character in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. */ @org.jetbrains.annotations.NotNull java.lang.Object getAScriptName(); /** * Property listenerId: The listener ID. */ @org.jetbrains.annotations.NotNull java.lang.Object getListenerId(); /** * Property scriptContent: The content of the AScript rule. */ @org.jetbrains.annotations.NotNull java.lang.Object getScriptContent(); /** * Property enabled: Specifies whether to enable the AScript rule. *

* Valid values: * true * false (default) */ default @org.jetbrains.annotations.Nullable java.lang.Object getEnabled() { return null; } /** * Property extAttributeEnabled: Specifies whether to enable the extended attributes of the AScript rule. *

* Valid values: * true * false (default) */ default @org.jetbrains.annotations.Nullable java.lang.Object getExtAttributeEnabled() { return null; } /** * Property extAttributes: The extended attributes. */ default @org.jetbrains.annotations.Nullable java.lang.Object getExtAttributes() { return null; } /** * @return a {@link Builder} of {@link AScriptProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link AScriptProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object aScriptName; java.lang.Object listenerId; java.lang.Object scriptContent; java.lang.Object enabled; java.lang.Object extAttributeEnabled; java.lang.Object extAttributes; /** * Sets the value of {@link AScriptProps#getAScriptName} * @param aScriptName Property aScriptName: The name of the AScript rule. This parameter is required. * The name must be 2 to 128 character in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. * @return {@code this} */ public Builder aScriptName(java.lang.String aScriptName) { this.aScriptName = aScriptName; return this; } /** * Sets the value of {@link AScriptProps#getAScriptName} * @param aScriptName Property aScriptName: The name of the AScript rule. This parameter is required. * The name must be 2 to 128 character in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-). It must start with a letter. * @return {@code this} */ public Builder aScriptName(com.aliyun.ros.cdk.core.IResolvable aScriptName) { this.aScriptName = aScriptName; return this; } /** * Sets the value of {@link AScriptProps#getListenerId} * @param listenerId Property listenerId: The listener ID. This parameter is required. * @return {@code this} */ public Builder listenerId(java.lang.String listenerId) { this.listenerId = listenerId; return this; } /** * Sets the value of {@link AScriptProps#getListenerId} * @param listenerId Property listenerId: The listener ID. This parameter is required. * @return {@code this} */ public Builder listenerId(com.aliyun.ros.cdk.core.IResolvable listenerId) { this.listenerId = listenerId; return this; } /** * Sets the value of {@link AScriptProps#getScriptContent} * @param scriptContent Property scriptContent: The content of the AScript rule. This parameter is required. * @return {@code this} */ public Builder scriptContent(java.lang.String scriptContent) { this.scriptContent = scriptContent; return this; } /** * Sets the value of {@link AScriptProps#getScriptContent} * @param scriptContent Property scriptContent: The content of the AScript rule. This parameter is required. * @return {@code this} */ public Builder scriptContent(com.aliyun.ros.cdk.core.IResolvable scriptContent) { this.scriptContent = scriptContent; return this; } /** * Sets the value of {@link AScriptProps#getEnabled} * @param enabled Property enabled: Specifies whether to enable the AScript rule. * Valid values: * true * false (default) * @return {@code this} */ public Builder enabled(java.lang.Boolean enabled) { this.enabled = enabled; return this; } /** * Sets the value of {@link AScriptProps#getEnabled} * @param enabled Property enabled: Specifies whether to enable the AScript rule. * Valid values: * true * false (default) * @return {@code this} */ public Builder enabled(com.aliyun.ros.cdk.core.IResolvable enabled) { this.enabled = enabled; return this; } /** * Sets the value of {@link AScriptProps#getExtAttributeEnabled} * @param extAttributeEnabled Property extAttributeEnabled: Specifies whether to enable the extended attributes of the AScript rule. * Valid values: * true * false (default) * @return {@code this} */ public Builder extAttributeEnabled(java.lang.Boolean extAttributeEnabled) { this.extAttributeEnabled = extAttributeEnabled; return this; } /** * Sets the value of {@link AScriptProps#getExtAttributeEnabled} * @param extAttributeEnabled Property extAttributeEnabled: Specifies whether to enable the extended attributes of the AScript rule. * Valid values: * true * false (default) * @return {@code this} */ public Builder extAttributeEnabled(com.aliyun.ros.cdk.core.IResolvable extAttributeEnabled) { this.extAttributeEnabled = extAttributeEnabled; return this; } /** * Sets the value of {@link AScriptProps#getExtAttributes} * @param extAttributes Property extAttributes: The extended attributes. * @return {@code this} */ public Builder extAttributes(com.aliyun.ros.cdk.core.IResolvable extAttributes) { this.extAttributes = extAttributes; return this; } /** * Sets the value of {@link AScriptProps#getExtAttributes} * @param extAttributes Property extAttributes: The extended attributes. * @return {@code this} */ public Builder extAttributes(java.util.List extAttributes) { this.extAttributes = extAttributes; return this; } /** * Builds the configured instance. * @return a new instance of {@link AScriptProps} * @throws NullPointerException if any required attribute was not provided */ @Override public AScriptProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link AScriptProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AScriptProps { private final java.lang.Object aScriptName; private final java.lang.Object listenerId; private final java.lang.Object scriptContent; private final java.lang.Object enabled; private final java.lang.Object extAttributeEnabled; private final java.lang.Object extAttributes; /** * 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.aScriptName = software.amazon.jsii.Kernel.get(this, "aScriptName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.listenerId = software.amazon.jsii.Kernel.get(this, "listenerId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.scriptContent = software.amazon.jsii.Kernel.get(this, "scriptContent", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.enabled = software.amazon.jsii.Kernel.get(this, "enabled", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.extAttributeEnabled = software.amazon.jsii.Kernel.get(this, "extAttributeEnabled", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.extAttributes = software.amazon.jsii.Kernel.get(this, "extAttributes", 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.aScriptName = java.util.Objects.requireNonNull(builder.aScriptName, "aScriptName is required"); this.listenerId = java.util.Objects.requireNonNull(builder.listenerId, "listenerId is required"); this.scriptContent = java.util.Objects.requireNonNull(builder.scriptContent, "scriptContent is required"); this.enabled = builder.enabled; this.extAttributeEnabled = builder.extAttributeEnabled; this.extAttributes = builder.extAttributes; } @Override public final java.lang.Object getAScriptName() { return this.aScriptName; } @Override public final java.lang.Object getListenerId() { return this.listenerId; } @Override public final java.lang.Object getScriptContent() { return this.scriptContent; } @Override public final java.lang.Object getEnabled() { return this.enabled; } @Override public final java.lang.Object getExtAttributeEnabled() { return this.extAttributeEnabled; } @Override public final java.lang.Object getExtAttributes() { return this.extAttributes; } @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("aScriptName", om.valueToTree(this.getAScriptName())); data.set("listenerId", om.valueToTree(this.getListenerId())); data.set("scriptContent", om.valueToTree(this.getScriptContent())); if (this.getEnabled() != null) { data.set("enabled", om.valueToTree(this.getEnabled())); } if (this.getExtAttributeEnabled() != null) { data.set("extAttributeEnabled", om.valueToTree(this.getExtAttributeEnabled())); } if (this.getExtAttributes() != null) { data.set("extAttributes", om.valueToTree(this.getExtAttributes())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-alb.AScriptProps")); 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; AScriptProps.Jsii$Proxy that = (AScriptProps.Jsii$Proxy) o; if (!aScriptName.equals(that.aScriptName)) return false; if (!listenerId.equals(that.listenerId)) return false; if (!scriptContent.equals(that.scriptContent)) return false; if (this.enabled != null ? !this.enabled.equals(that.enabled) : that.enabled != null) return false; if (this.extAttributeEnabled != null ? !this.extAttributeEnabled.equals(that.extAttributeEnabled) : that.extAttributeEnabled != null) return false; return this.extAttributes != null ? this.extAttributes.equals(that.extAttributes) : that.extAttributes == null; } @Override public final int hashCode() { int result = this.aScriptName.hashCode(); result = 31 * result + (this.listenerId.hashCode()); result = 31 * result + (this.scriptContent.hashCode()); result = 31 * result + (this.enabled != null ? this.enabled.hashCode() : 0); result = 31 * result + (this.extAttributeEnabled != null ? this.extAttributeEnabled.hashCode() : 0); result = 31 * result + (this.extAttributes != null ? this.extAttributes.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy