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

com.aliyun.ros.cdk.apigateway.RosInstanceProps 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.apigateway;

/**
 * Properties for defining a RosInstance.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apigateway-instance */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:04.379Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.apigateway.$Module.class, fqn = "@alicloud/ros-cdk-apigateway.RosInstanceProps") @software.amazon.jsii.Jsii.Proxy(RosInstanceProps.Jsii$Proxy.class) public interface RosInstanceProps extends software.amazon.jsii.JsiiSerializable { /** */ @org.jetbrains.annotations.NotNull java.lang.Object getHttpsPolicy(); /** */ @org.jetbrains.annotations.NotNull java.lang.Object getInstanceName(); /** */ @org.jetbrains.annotations.NotNull java.lang.Object getInstanceSpec(); /** */ @org.jetbrains.annotations.NotNull java.lang.Object getZoneId(); /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getAutoPay() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getChargeType() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getDeletionForce() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getDuration() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getPricingCycle() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.util.List getTags() { return null; } /** * @return a {@link Builder} of {@link RosInstanceProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link RosInstanceProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object httpsPolicy; java.lang.Object instanceName; java.lang.Object instanceSpec; java.lang.Object zoneId; java.lang.Object autoPay; java.lang.Object chargeType; java.lang.Object deletionForce; java.lang.Object duration; java.lang.Object pricingCycle; java.util.List tags; /** * Sets the value of {@link RosInstanceProps#getHttpsPolicy} * @param httpsPolicy the value to be set. This parameter is required. * @return {@code this} */ public Builder httpsPolicy(java.lang.String httpsPolicy) { this.httpsPolicy = httpsPolicy; return this; } /** * Sets the value of {@link RosInstanceProps#getHttpsPolicy} * @param httpsPolicy the value to be set. This parameter is required. * @return {@code this} */ public Builder httpsPolicy(com.aliyun.ros.cdk.core.IResolvable httpsPolicy) { this.httpsPolicy = httpsPolicy; return this; } /** * Sets the value of {@link RosInstanceProps#getInstanceName} * @param instanceName the value to be set. This parameter is required. * @return {@code this} */ public Builder instanceName(java.lang.String instanceName) { this.instanceName = instanceName; return this; } /** * Sets the value of {@link RosInstanceProps#getInstanceName} * @param instanceName the value to be set. This parameter is required. * @return {@code this} */ public Builder instanceName(com.aliyun.ros.cdk.core.IResolvable instanceName) { this.instanceName = instanceName; return this; } /** * Sets the value of {@link RosInstanceProps#getInstanceSpec} * @param instanceSpec the value to be set. This parameter is required. * @return {@code this} */ public Builder instanceSpec(java.lang.String instanceSpec) { this.instanceSpec = instanceSpec; return this; } /** * Sets the value of {@link RosInstanceProps#getInstanceSpec} * @param instanceSpec the value to be set. This parameter is required. * @return {@code this} */ public Builder instanceSpec(com.aliyun.ros.cdk.core.IResolvable instanceSpec) { this.instanceSpec = instanceSpec; return this; } /** * Sets the value of {@link RosInstanceProps#getZoneId} * @param zoneId the value to be set. This parameter is required. * @return {@code this} */ public Builder zoneId(java.lang.String zoneId) { this.zoneId = zoneId; return this; } /** * Sets the value of {@link RosInstanceProps#getZoneId} * @param zoneId the value to be set. This parameter is required. * @return {@code this} */ public Builder zoneId(com.aliyun.ros.cdk.core.IResolvable zoneId) { this.zoneId = zoneId; return this; } /** * Sets the value of {@link RosInstanceProps#getAutoPay} * @param autoPay the value to be set. * @return {@code this} */ public Builder autoPay(java.lang.Boolean autoPay) { this.autoPay = autoPay; return this; } /** * Sets the value of {@link RosInstanceProps#getAutoPay} * @param autoPay the value to be set. * @return {@code this} */ public Builder autoPay(com.aliyun.ros.cdk.core.IResolvable autoPay) { this.autoPay = autoPay; return this; } /** * Sets the value of {@link RosInstanceProps#getChargeType} * @param chargeType the value to be set. * @return {@code this} */ public Builder chargeType(java.lang.String chargeType) { this.chargeType = chargeType; return this; } /** * Sets the value of {@link RosInstanceProps#getChargeType} * @param chargeType the value to be set. * @return {@code this} */ public Builder chargeType(com.aliyun.ros.cdk.core.IResolvable chargeType) { this.chargeType = chargeType; return this; } /** * Sets the value of {@link RosInstanceProps#getDeletionForce} * @param deletionForce the value to be set. * @return {@code this} */ public Builder deletionForce(java.lang.Boolean deletionForce) { this.deletionForce = deletionForce; return this; } /** * Sets the value of {@link RosInstanceProps#getDeletionForce} * @param deletionForce the value to be set. * @return {@code this} */ public Builder deletionForce(com.aliyun.ros.cdk.core.IResolvable deletionForce) { this.deletionForce = deletionForce; return this; } /** * Sets the value of {@link RosInstanceProps#getDuration} * @param duration the value to be set. * @return {@code this} */ public Builder duration(java.lang.Number duration) { this.duration = duration; return this; } /** * Sets the value of {@link RosInstanceProps#getDuration} * @param duration the value to be set. * @return {@code this} */ public Builder duration(com.aliyun.ros.cdk.core.IResolvable duration) { this.duration = duration; return this; } /** * Sets the value of {@link RosInstanceProps#getPricingCycle} * @param pricingCycle the value to be set. * @return {@code this} */ public Builder pricingCycle(java.lang.String pricingCycle) { this.pricingCycle = pricingCycle; return this; } /** * Sets the value of {@link RosInstanceProps#getPricingCycle} * @param pricingCycle the value to be set. * @return {@code this} */ public Builder pricingCycle(com.aliyun.ros.cdk.core.IResolvable pricingCycle) { this.pricingCycle = pricingCycle; return this; } /** * Sets the value of {@link RosInstanceProps#getTags} * @param tags the value to be set. * @return {@code this} */ @SuppressWarnings("unchecked") public Builder tags(java.util.List tags) { this.tags = (java.util.List)tags; return this; } /** * Builds the configured instance. * @return a new instance of {@link RosInstanceProps} * @throws NullPointerException if any required attribute was not provided */ @Override public RosInstanceProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link RosInstanceProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RosInstanceProps { private final java.lang.Object httpsPolicy; private final java.lang.Object instanceName; private final java.lang.Object instanceSpec; private final java.lang.Object zoneId; private final java.lang.Object autoPay; private final java.lang.Object chargeType; private final java.lang.Object deletionForce; private final java.lang.Object duration; private final java.lang.Object pricingCycle; private final java.util.List tags; /** * 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.httpsPolicy = software.amazon.jsii.Kernel.get(this, "httpsPolicy", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.instanceName = software.amazon.jsii.Kernel.get(this, "instanceName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.instanceSpec = software.amazon.jsii.Kernel.get(this, "instanceSpec", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.zoneId = software.amazon.jsii.Kernel.get(this, "zoneId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.autoPay = software.amazon.jsii.Kernel.get(this, "autoPay", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.chargeType = software.amazon.jsii.Kernel.get(this, "chargeType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.deletionForce = software.amazon.jsii.Kernel.get(this, "deletionForce", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.duration = software.amazon.jsii.Kernel.get(this, "duration", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.pricingCycle = software.amazon.jsii.Kernel.get(this, "pricingCycle", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.apigateway.RosInstance.TagsProperty.class))); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ @SuppressWarnings("unchecked") protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.httpsPolicy = java.util.Objects.requireNonNull(builder.httpsPolicy, "httpsPolicy is required"); this.instanceName = java.util.Objects.requireNonNull(builder.instanceName, "instanceName is required"); this.instanceSpec = java.util.Objects.requireNonNull(builder.instanceSpec, "instanceSpec is required"); this.zoneId = java.util.Objects.requireNonNull(builder.zoneId, "zoneId is required"); this.autoPay = builder.autoPay; this.chargeType = builder.chargeType; this.deletionForce = builder.deletionForce; this.duration = builder.duration; this.pricingCycle = builder.pricingCycle; this.tags = (java.util.List)builder.tags; } @Override public final java.lang.Object getHttpsPolicy() { return this.httpsPolicy; } @Override public final java.lang.Object getInstanceName() { return this.instanceName; } @Override public final java.lang.Object getInstanceSpec() { return this.instanceSpec; } @Override public final java.lang.Object getZoneId() { return this.zoneId; } @Override public final java.lang.Object getAutoPay() { return this.autoPay; } @Override public final java.lang.Object getChargeType() { return this.chargeType; } @Override public final java.lang.Object getDeletionForce() { return this.deletionForce; } @Override public final java.lang.Object getDuration() { return this.duration; } @Override public final java.lang.Object getPricingCycle() { return this.pricingCycle; } @Override public final java.util.List getTags() { return this.tags; } @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("httpsPolicy", om.valueToTree(this.getHttpsPolicy())); data.set("instanceName", om.valueToTree(this.getInstanceName())); data.set("instanceSpec", om.valueToTree(this.getInstanceSpec())); data.set("zoneId", om.valueToTree(this.getZoneId())); if (this.getAutoPay() != null) { data.set("autoPay", om.valueToTree(this.getAutoPay())); } if (this.getChargeType() != null) { data.set("chargeType", om.valueToTree(this.getChargeType())); } if (this.getDeletionForce() != null) { data.set("deletionForce", om.valueToTree(this.getDeletionForce())); } if (this.getDuration() != null) { data.set("duration", om.valueToTree(this.getDuration())); } if (this.getPricingCycle() != null) { data.set("pricingCycle", om.valueToTree(this.getPricingCycle())); } if (this.getTags() != null) { data.set("tags", om.valueToTree(this.getTags())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-apigateway.RosInstanceProps")); 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; RosInstanceProps.Jsii$Proxy that = (RosInstanceProps.Jsii$Proxy) o; if (!httpsPolicy.equals(that.httpsPolicy)) return false; if (!instanceName.equals(that.instanceName)) return false; if (!instanceSpec.equals(that.instanceSpec)) return false; if (!zoneId.equals(that.zoneId)) return false; if (this.autoPay != null ? !this.autoPay.equals(that.autoPay) : that.autoPay != null) return false; if (this.chargeType != null ? !this.chargeType.equals(that.chargeType) : that.chargeType != null) return false; if (this.deletionForce != null ? !this.deletionForce.equals(that.deletionForce) : that.deletionForce != null) return false; if (this.duration != null ? !this.duration.equals(that.duration) : that.duration != null) return false; if (this.pricingCycle != null ? !this.pricingCycle.equals(that.pricingCycle) : that.pricingCycle != null) return false; return this.tags != null ? this.tags.equals(that.tags) : that.tags == null; } @Override public final int hashCode() { int result = this.httpsPolicy.hashCode(); result = 31 * result + (this.instanceName.hashCode()); result = 31 * result + (this.instanceSpec.hashCode()); result = 31 * result + (this.zoneId.hashCode()); result = 31 * result + (this.autoPay != null ? this.autoPay.hashCode() : 0); result = 31 * result + (this.chargeType != null ? this.chargeType.hashCode() : 0); result = 31 * result + (this.deletionForce != null ? this.deletionForce.hashCode() : 0); result = 31 * result + (this.duration != null ? this.duration.hashCode() : 0); result = 31 * result + (this.pricingCycle != null ? this.pricingCycle.hashCode() : 0); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy