com.aliyun.ros.cdk.tsdb.RosHiTSDBInstanceProps Maven / Gradle / Ivy
Show all versions of ros-cdk-tsdb Show documentation
package com.aliyun.ros.cdk.tsdb;
/**
* Properties for defining a RosHiTSDBInstance
.
*
* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-tsdb-hitsdbinstance
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:12.651Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.tsdb.$Module.class, fqn = "@alicloud/ros-cdk-tsdb.RosHiTSDBInstanceProps")
@software.amazon.jsii.Jsii.Proxy(RosHiTSDBInstanceProps.Jsii$Proxy.class)
public interface RosHiTSDBInstanceProps extends software.amazon.jsii.JsiiSerializable {
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getInstanceClass();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getInstanceStorage();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getVpcId();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getVSwitchId();
/**
*/
@org.jetbrains.annotations.NotNull java.lang.Object getZoneId();
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getDiskCategory() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getDuration() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getInstanceAlias() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getPayType() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getPricingCycle() {
return null;
}
/**
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getSecurityIpList() {
return null;
}
/**
* @return a {@link Builder} of {@link RosHiTSDBInstanceProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link RosHiTSDBInstanceProps}
*/
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object instanceClass;
java.lang.Object instanceStorage;
java.lang.Object vpcId;
java.lang.Object vSwitchId;
java.lang.Object zoneId;
java.lang.Object diskCategory;
java.lang.Object duration;
java.lang.Object instanceAlias;
java.lang.Object payType;
java.lang.Object pricingCycle;
java.lang.Object securityIpList;
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getInstanceClass}
* @param instanceClass the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder instanceClass(java.lang.String instanceClass) {
this.instanceClass = instanceClass;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getInstanceClass}
* @param instanceClass the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder instanceClass(com.aliyun.ros.cdk.core.IResolvable instanceClass) {
this.instanceClass = instanceClass;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getInstanceStorage}
* @param instanceStorage the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder instanceStorage(java.lang.Number instanceStorage) {
this.instanceStorage = instanceStorage;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getInstanceStorage}
* @param instanceStorage the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder instanceStorage(com.aliyun.ros.cdk.core.IResolvable instanceStorage) {
this.instanceStorage = instanceStorage;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getVpcId}
* @param vpcId the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder vpcId(java.lang.String vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getVpcId}
* @param vpcId the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder vpcId(com.aliyun.ros.cdk.core.IResolvable vpcId) {
this.vpcId = vpcId;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getVSwitchId}
* @param vSwitchId the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder vSwitchId(java.lang.String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getVSwitchId}
* @param vSwitchId the value to be set. This parameter is required.
* @return {@code this}
*/
public Builder vSwitchId(com.aliyun.ros.cdk.core.IResolvable vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#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 RosHiTSDBInstanceProps#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 RosHiTSDBInstanceProps#getDiskCategory}
* @param diskCategory the value to be set.
* @return {@code this}
*/
public Builder diskCategory(java.lang.String diskCategory) {
this.diskCategory = diskCategory;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getDiskCategory}
* @param diskCategory the value to be set.
* @return {@code this}
*/
public Builder diskCategory(com.aliyun.ros.cdk.core.IResolvable diskCategory) {
this.diskCategory = diskCategory;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#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 RosHiTSDBInstanceProps#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 RosHiTSDBInstanceProps#getInstanceAlias}
* @param instanceAlias the value to be set.
* @return {@code this}
*/
public Builder instanceAlias(java.lang.String instanceAlias) {
this.instanceAlias = instanceAlias;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getInstanceAlias}
* @param instanceAlias the value to be set.
* @return {@code this}
*/
public Builder instanceAlias(com.aliyun.ros.cdk.core.IResolvable instanceAlias) {
this.instanceAlias = instanceAlias;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getPayType}
* @param payType the value to be set.
* @return {@code this}
*/
public Builder payType(java.lang.String payType) {
this.payType = payType;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getPayType}
* @param payType the value to be set.
* @return {@code this}
*/
public Builder payType(com.aliyun.ros.cdk.core.IResolvable payType) {
this.payType = payType;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#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 RosHiTSDBInstanceProps#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 RosHiTSDBInstanceProps#getSecurityIpList}
* @param securityIpList the value to be set.
* @return {@code this}
*/
public Builder securityIpList(com.aliyun.ros.cdk.core.IResolvable securityIpList) {
this.securityIpList = securityIpList;
return this;
}
/**
* Sets the value of {@link RosHiTSDBInstanceProps#getSecurityIpList}
* @param securityIpList the value to be set.
* @return {@code this}
*/
public Builder securityIpList(java.util.List extends java.lang.Object> securityIpList) {
this.securityIpList = securityIpList;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link RosHiTSDBInstanceProps}
* @throws NullPointerException if any required attribute was not provided
*/
@Override
public RosHiTSDBInstanceProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link RosHiTSDBInstanceProps}
*/
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RosHiTSDBInstanceProps {
private final java.lang.Object instanceClass;
private final java.lang.Object instanceStorage;
private final java.lang.Object vpcId;
private final java.lang.Object vSwitchId;
private final java.lang.Object zoneId;
private final java.lang.Object diskCategory;
private final java.lang.Object duration;
private final java.lang.Object instanceAlias;
private final java.lang.Object payType;
private final java.lang.Object pricingCycle;
private final java.lang.Object securityIpList;
/**
* 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.instanceClass = software.amazon.jsii.Kernel.get(this, "instanceClass", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.instanceStorage = software.amazon.jsii.Kernel.get(this, "instanceStorage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.vpcId = software.amazon.jsii.Kernel.get(this, "vpcId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.vSwitchId = software.amazon.jsii.Kernel.get(this, "vSwitchId", 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.diskCategory = software.amazon.jsii.Kernel.get(this, "diskCategory", 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.instanceAlias = software.amazon.jsii.Kernel.get(this, "instanceAlias", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.payType = software.amazon.jsii.Kernel.get(this, "payType", 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.securityIpList = software.amazon.jsii.Kernel.get(this, "securityIpList", 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.instanceClass = java.util.Objects.requireNonNull(builder.instanceClass, "instanceClass is required");
this.instanceStorage = java.util.Objects.requireNonNull(builder.instanceStorage, "instanceStorage is required");
this.vpcId = java.util.Objects.requireNonNull(builder.vpcId, "vpcId is required");
this.vSwitchId = java.util.Objects.requireNonNull(builder.vSwitchId, "vSwitchId is required");
this.zoneId = java.util.Objects.requireNonNull(builder.zoneId, "zoneId is required");
this.diskCategory = builder.diskCategory;
this.duration = builder.duration;
this.instanceAlias = builder.instanceAlias;
this.payType = builder.payType;
this.pricingCycle = builder.pricingCycle;
this.securityIpList = builder.securityIpList;
}
@Override
public final java.lang.Object getInstanceClass() {
return this.instanceClass;
}
@Override
public final java.lang.Object getInstanceStorage() {
return this.instanceStorage;
}
@Override
public final java.lang.Object getVpcId() {
return this.vpcId;
}
@Override
public final java.lang.Object getVSwitchId() {
return this.vSwitchId;
}
@Override
public final java.lang.Object getZoneId() {
return this.zoneId;
}
@Override
public final java.lang.Object getDiskCategory() {
return this.diskCategory;
}
@Override
public final java.lang.Object getDuration() {
return this.duration;
}
@Override
public final java.lang.Object getInstanceAlias() {
return this.instanceAlias;
}
@Override
public final java.lang.Object getPayType() {
return this.payType;
}
@Override
public final java.lang.Object getPricingCycle() {
return this.pricingCycle;
}
@Override
public final java.lang.Object getSecurityIpList() {
return this.securityIpList;
}
@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("instanceClass", om.valueToTree(this.getInstanceClass()));
data.set("instanceStorage", om.valueToTree(this.getInstanceStorage()));
data.set("vpcId", om.valueToTree(this.getVpcId()));
data.set("vSwitchId", om.valueToTree(this.getVSwitchId()));
data.set("zoneId", om.valueToTree(this.getZoneId()));
if (this.getDiskCategory() != null) {
data.set("diskCategory", om.valueToTree(this.getDiskCategory()));
}
if (this.getDuration() != null) {
data.set("duration", om.valueToTree(this.getDuration()));
}
if (this.getInstanceAlias() != null) {
data.set("instanceAlias", om.valueToTree(this.getInstanceAlias()));
}
if (this.getPayType() != null) {
data.set("payType", om.valueToTree(this.getPayType()));
}
if (this.getPricingCycle() != null) {
data.set("pricingCycle", om.valueToTree(this.getPricingCycle()));
}
if (this.getSecurityIpList() != null) {
data.set("securityIpList", om.valueToTree(this.getSecurityIpList()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-tsdb.RosHiTSDBInstanceProps"));
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;
RosHiTSDBInstanceProps.Jsii$Proxy that = (RosHiTSDBInstanceProps.Jsii$Proxy) o;
if (!instanceClass.equals(that.instanceClass)) return false;
if (!instanceStorage.equals(that.instanceStorage)) return false;
if (!vpcId.equals(that.vpcId)) return false;
if (!vSwitchId.equals(that.vSwitchId)) return false;
if (!zoneId.equals(that.zoneId)) return false;
if (this.diskCategory != null ? !this.diskCategory.equals(that.diskCategory) : that.diskCategory != null) return false;
if (this.duration != null ? !this.duration.equals(that.duration) : that.duration != null) return false;
if (this.instanceAlias != null ? !this.instanceAlias.equals(that.instanceAlias) : that.instanceAlias != null) return false;
if (this.payType != null ? !this.payType.equals(that.payType) : that.payType != null) return false;
if (this.pricingCycle != null ? !this.pricingCycle.equals(that.pricingCycle) : that.pricingCycle != null) return false;
return this.securityIpList != null ? this.securityIpList.equals(that.securityIpList) : that.securityIpList == null;
}
@Override
public final int hashCode() {
int result = this.instanceClass.hashCode();
result = 31 * result + (this.instanceStorage.hashCode());
result = 31 * result + (this.vpcId.hashCode());
result = 31 * result + (this.vSwitchId.hashCode());
result = 31 * result + (this.zoneId.hashCode());
result = 31 * result + (this.diskCategory != null ? this.diskCategory.hashCode() : 0);
result = 31 * result + (this.duration != null ? this.duration.hashCode() : 0);
result = 31 * result + (this.instanceAlias != null ? this.instanceAlias.hashCode() : 0);
result = 31 * result + (this.payType != null ? this.payType.hashCode() : 0);
result = 31 * result + (this.pricingCycle != null ? this.pricingCycle.hashCode() : 0);
result = 31 * result + (this.securityIpList != null ? this.securityIpList.hashCode() : 0);
return result;
}
}
}