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

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

/**
 * Properties for defining a RosInstance.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-mongodb-instance */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-09-12T02:20:28.447Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.mongodb.$Module.class, fqn = "@alicloud/ros-cdk-mongodb.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 getDbInstanceClass(); /** */ @org.jetbrains.annotations.NotNull java.lang.Object getDbInstanceStorage(); /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getAccountPassword() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getAutoRenew() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getBackupId() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getBusinessInfo() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getChargeType() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getCouponNo() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getDatabaseNames() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getDbInstanceDescription() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getEngineVersion() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getHiddenZoneId() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getNetworkType() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getPeriod() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getReadonlyReplicas() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getReplicationFactor() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getResourceGroupId() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getRestoreTime() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getSecondaryZoneId() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getSecurityGroupId() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getSecurityIpArray() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getSrcDbInstanceId() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getStorageEngine() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getStorageType() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.util.List getTags() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getTdeStatus() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getVpcId() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getVpcPasswordFree() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getVSwitchId() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getZoneId() { 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 dbInstanceClass; java.lang.Object dbInstanceStorage; java.lang.Object accountPassword; java.lang.Object autoRenew; java.lang.Object backupId; java.lang.Object businessInfo; java.lang.Object chargeType; java.lang.Object couponNo; java.lang.Object databaseNames; java.lang.Object dbInstanceDescription; java.lang.Object engineVersion; java.lang.Object hiddenZoneId; java.lang.Object networkType; java.lang.Object period; java.lang.Object readonlyReplicas; java.lang.Object replicationFactor; java.lang.Object resourceGroupId; java.lang.Object restoreTime; java.lang.Object secondaryZoneId; java.lang.Object securityGroupId; java.lang.Object securityIpArray; java.lang.Object srcDbInstanceId; java.lang.Object storageEngine; java.lang.Object storageType; java.util.List tags; java.lang.Object tdeStatus; java.lang.Object vpcId; java.lang.Object vpcPasswordFree; java.lang.Object vSwitchId; java.lang.Object zoneId; /** * Sets the value of {@link RosInstanceProps#getDbInstanceClass} * @param dbInstanceClass the value to be set. This parameter is required. * @return {@code this} */ public Builder dbInstanceClass(java.lang.String dbInstanceClass) { this.dbInstanceClass = dbInstanceClass; return this; } /** * Sets the value of {@link RosInstanceProps#getDbInstanceClass} * @param dbInstanceClass the value to be set. This parameter is required. * @return {@code this} */ public Builder dbInstanceClass(com.aliyun.ros.cdk.core.IResolvable dbInstanceClass) { this.dbInstanceClass = dbInstanceClass; return this; } /** * Sets the value of {@link RosInstanceProps#getDbInstanceStorage} * @param dbInstanceStorage the value to be set. This parameter is required. * @return {@code this} */ public Builder dbInstanceStorage(java.lang.Number dbInstanceStorage) { this.dbInstanceStorage = dbInstanceStorage; return this; } /** * Sets the value of {@link RosInstanceProps#getDbInstanceStorage} * @param dbInstanceStorage the value to be set. This parameter is required. * @return {@code this} */ public Builder dbInstanceStorage(com.aliyun.ros.cdk.core.IResolvable dbInstanceStorage) { this.dbInstanceStorage = dbInstanceStorage; return this; } /** * Sets the value of {@link RosInstanceProps#getAccountPassword} * @param accountPassword the value to be set. * @return {@code this} */ public Builder accountPassword(java.lang.String accountPassword) { this.accountPassword = accountPassword; return this; } /** * Sets the value of {@link RosInstanceProps#getAccountPassword} * @param accountPassword the value to be set. * @return {@code this} */ public Builder accountPassword(com.aliyun.ros.cdk.core.IResolvable accountPassword) { this.accountPassword = accountPassword; return this; } /** * Sets the value of {@link RosInstanceProps#getAutoRenew} * @param autoRenew the value to be set. * @return {@code this} */ public Builder autoRenew(java.lang.Boolean autoRenew) { this.autoRenew = autoRenew; return this; } /** * Sets the value of {@link RosInstanceProps#getAutoRenew} * @param autoRenew the value to be set. * @return {@code this} */ public Builder autoRenew(com.aliyun.ros.cdk.core.IResolvable autoRenew) { this.autoRenew = autoRenew; return this; } /** * Sets the value of {@link RosInstanceProps#getBackupId} * @param backupId the value to be set. * @return {@code this} */ public Builder backupId(java.lang.String backupId) { this.backupId = backupId; return this; } /** * Sets the value of {@link RosInstanceProps#getBackupId} * @param backupId the value to be set. * @return {@code this} */ public Builder backupId(com.aliyun.ros.cdk.core.IResolvable backupId) { this.backupId = backupId; return this; } /** * Sets the value of {@link RosInstanceProps#getBusinessInfo} * @param businessInfo the value to be set. * @return {@code this} */ public Builder businessInfo(java.lang.String businessInfo) { this.businessInfo = businessInfo; return this; } /** * Sets the value of {@link RosInstanceProps#getBusinessInfo} * @param businessInfo the value to be set. * @return {@code this} */ public Builder businessInfo(com.aliyun.ros.cdk.core.IResolvable businessInfo) { this.businessInfo = businessInfo; 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#getCouponNo} * @param couponNo the value to be set. * @return {@code this} */ public Builder couponNo(java.lang.String couponNo) { this.couponNo = couponNo; return this; } /** * Sets the value of {@link RosInstanceProps#getCouponNo} * @param couponNo the value to be set. * @return {@code this} */ public Builder couponNo(com.aliyun.ros.cdk.core.IResolvable couponNo) { this.couponNo = couponNo; return this; } /** * Sets the value of {@link RosInstanceProps#getDatabaseNames} * @param databaseNames the value to be set. * @return {@code this} */ public Builder databaseNames(java.lang.String databaseNames) { this.databaseNames = databaseNames; return this; } /** * Sets the value of {@link RosInstanceProps#getDatabaseNames} * @param databaseNames the value to be set. * @return {@code this} */ public Builder databaseNames(com.aliyun.ros.cdk.core.IResolvable databaseNames) { this.databaseNames = databaseNames; return this; } /** * Sets the value of {@link RosInstanceProps#getDbInstanceDescription} * @param dbInstanceDescription the value to be set. * @return {@code this} */ public Builder dbInstanceDescription(java.lang.String dbInstanceDescription) { this.dbInstanceDescription = dbInstanceDescription; return this; } /** * Sets the value of {@link RosInstanceProps#getDbInstanceDescription} * @param dbInstanceDescription the value to be set. * @return {@code this} */ public Builder dbInstanceDescription(com.aliyun.ros.cdk.core.IResolvable dbInstanceDescription) { this.dbInstanceDescription = dbInstanceDescription; return this; } /** * Sets the value of {@link RosInstanceProps#getEngineVersion} * @param engineVersion the value to be set. * @return {@code this} */ public Builder engineVersion(java.lang.String engineVersion) { this.engineVersion = engineVersion; return this; } /** * Sets the value of {@link RosInstanceProps#getEngineVersion} * @param engineVersion the value to be set. * @return {@code this} */ public Builder engineVersion(com.aliyun.ros.cdk.core.IResolvable engineVersion) { this.engineVersion = engineVersion; return this; } /** * Sets the value of {@link RosInstanceProps#getHiddenZoneId} * @param hiddenZoneId the value to be set. * @return {@code this} */ public Builder hiddenZoneId(java.lang.String hiddenZoneId) { this.hiddenZoneId = hiddenZoneId; return this; } /** * Sets the value of {@link RosInstanceProps#getHiddenZoneId} * @param hiddenZoneId the value to be set. * @return {@code this} */ public Builder hiddenZoneId(com.aliyun.ros.cdk.core.IResolvable hiddenZoneId) { this.hiddenZoneId = hiddenZoneId; return this; } /** * Sets the value of {@link RosInstanceProps#getNetworkType} * @param networkType the value to be set. * @return {@code this} */ public Builder networkType(java.lang.String networkType) { this.networkType = networkType; return this; } /** * Sets the value of {@link RosInstanceProps#getNetworkType} * @param networkType the value to be set. * @return {@code this} */ public Builder networkType(com.aliyun.ros.cdk.core.IResolvable networkType) { this.networkType = networkType; return this; } /** * Sets the value of {@link RosInstanceProps#getPeriod} * @param period the value to be set. * @return {@code this} */ public Builder period(java.lang.Number period) { this.period = period; return this; } /** * Sets the value of {@link RosInstanceProps#getPeriod} * @param period the value to be set. * @return {@code this} */ public Builder period(com.aliyun.ros.cdk.core.IResolvable period) { this.period = period; return this; } /** * Sets the value of {@link RosInstanceProps#getReadonlyReplicas} * @param readonlyReplicas the value to be set. * @return {@code this} */ public Builder readonlyReplicas(java.lang.Number readonlyReplicas) { this.readonlyReplicas = readonlyReplicas; return this; } /** * Sets the value of {@link RosInstanceProps#getReadonlyReplicas} * @param readonlyReplicas the value to be set. * @return {@code this} */ public Builder readonlyReplicas(com.aliyun.ros.cdk.core.IResolvable readonlyReplicas) { this.readonlyReplicas = readonlyReplicas; return this; } /** * Sets the value of {@link RosInstanceProps#getReplicationFactor} * @param replicationFactor the value to be set. * @return {@code this} */ public Builder replicationFactor(java.lang.Number replicationFactor) { this.replicationFactor = replicationFactor; return this; } /** * Sets the value of {@link RosInstanceProps#getReplicationFactor} * @param replicationFactor the value to be set. * @return {@code this} */ public Builder replicationFactor(com.aliyun.ros.cdk.core.IResolvable replicationFactor) { this.replicationFactor = replicationFactor; return this; } /** * Sets the value of {@link RosInstanceProps#getResourceGroupId} * @param resourceGroupId the value to be set. * @return {@code this} */ public Builder resourceGroupId(java.lang.String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * Sets the value of {@link RosInstanceProps#getResourceGroupId} * @param resourceGroupId the value to be set. * @return {@code this} */ public Builder resourceGroupId(com.aliyun.ros.cdk.core.IResolvable resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } /** * Sets the value of {@link RosInstanceProps#getRestoreTime} * @param restoreTime the value to be set. * @return {@code this} */ public Builder restoreTime(java.lang.String restoreTime) { this.restoreTime = restoreTime; return this; } /** * Sets the value of {@link RosInstanceProps#getRestoreTime} * @param restoreTime the value to be set. * @return {@code this} */ public Builder restoreTime(com.aliyun.ros.cdk.core.IResolvable restoreTime) { this.restoreTime = restoreTime; return this; } /** * Sets the value of {@link RosInstanceProps#getSecondaryZoneId} * @param secondaryZoneId the value to be set. * @return {@code this} */ public Builder secondaryZoneId(java.lang.String secondaryZoneId) { this.secondaryZoneId = secondaryZoneId; return this; } /** * Sets the value of {@link RosInstanceProps#getSecondaryZoneId} * @param secondaryZoneId the value to be set. * @return {@code this} */ public Builder secondaryZoneId(com.aliyun.ros.cdk.core.IResolvable secondaryZoneId) { this.secondaryZoneId = secondaryZoneId; return this; } /** * Sets the value of {@link RosInstanceProps#getSecurityGroupId} * @param securityGroupId the value to be set. * @return {@code this} */ public Builder securityGroupId(java.lang.String securityGroupId) { this.securityGroupId = securityGroupId; return this; } /** * Sets the value of {@link RosInstanceProps#getSecurityGroupId} * @param securityGroupId the value to be set. * @return {@code this} */ public Builder securityGroupId(com.aliyun.ros.cdk.core.IResolvable securityGroupId) { this.securityGroupId = securityGroupId; return this; } /** * Sets the value of {@link RosInstanceProps#getSecurityIpArray} * @param securityIpArray the value to be set. * @return {@code this} */ public Builder securityIpArray(java.lang.String securityIpArray) { this.securityIpArray = securityIpArray; return this; } /** * Sets the value of {@link RosInstanceProps#getSecurityIpArray} * @param securityIpArray the value to be set. * @return {@code this} */ public Builder securityIpArray(com.aliyun.ros.cdk.core.IResolvable securityIpArray) { this.securityIpArray = securityIpArray; return this; } /** * Sets the value of {@link RosInstanceProps#getSrcDbInstanceId} * @param srcDbInstanceId the value to be set. * @return {@code this} */ public Builder srcDbInstanceId(java.lang.String srcDbInstanceId) { this.srcDbInstanceId = srcDbInstanceId; return this; } /** * Sets the value of {@link RosInstanceProps#getSrcDbInstanceId} * @param srcDbInstanceId the value to be set. * @return {@code this} */ public Builder srcDbInstanceId(com.aliyun.ros.cdk.core.IResolvable srcDbInstanceId) { this.srcDbInstanceId = srcDbInstanceId; return this; } /** * Sets the value of {@link RosInstanceProps#getStorageEngine} * @param storageEngine the value to be set. * @return {@code this} */ public Builder storageEngine(java.lang.String storageEngine) { this.storageEngine = storageEngine; return this; } /** * Sets the value of {@link RosInstanceProps#getStorageEngine} * @param storageEngine the value to be set. * @return {@code this} */ public Builder storageEngine(com.aliyun.ros.cdk.core.IResolvable storageEngine) { this.storageEngine = storageEngine; return this; } /** * Sets the value of {@link RosInstanceProps#getStorageType} * @param storageType the value to be set. * @return {@code this} */ public Builder storageType(java.lang.String storageType) { this.storageType = storageType; return this; } /** * Sets the value of {@link RosInstanceProps#getStorageType} * @param storageType the value to be set. * @return {@code this} */ public Builder storageType(com.aliyun.ros.cdk.core.IResolvable storageType) { this.storageType = storageType; 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; } /** * Sets the value of {@link RosInstanceProps#getTdeStatus} * @param tdeStatus the value to be set. * @return {@code this} */ public Builder tdeStatus(java.lang.Boolean tdeStatus) { this.tdeStatus = tdeStatus; return this; } /** * Sets the value of {@link RosInstanceProps#getTdeStatus} * @param tdeStatus the value to be set. * @return {@code this} */ public Builder tdeStatus(com.aliyun.ros.cdk.core.IResolvable tdeStatus) { this.tdeStatus = tdeStatus; return this; } /** * Sets the value of {@link RosInstanceProps#getVpcId} * @param vpcId the value to be set. * @return {@code this} */ public Builder vpcId(java.lang.String vpcId) { this.vpcId = vpcId; return this; } /** * Sets the value of {@link RosInstanceProps#getVpcId} * @param vpcId the value to be set. * @return {@code this} */ public Builder vpcId(com.aliyun.ros.cdk.core.IResolvable vpcId) { this.vpcId = vpcId; return this; } /** * Sets the value of {@link RosInstanceProps#getVpcPasswordFree} * @param vpcPasswordFree the value to be set. * @return {@code this} */ public Builder vpcPasswordFree(java.lang.Boolean vpcPasswordFree) { this.vpcPasswordFree = vpcPasswordFree; return this; } /** * Sets the value of {@link RosInstanceProps#getVpcPasswordFree} * @param vpcPasswordFree the value to be set. * @return {@code this} */ public Builder vpcPasswordFree(com.aliyun.ros.cdk.core.IResolvable vpcPasswordFree) { this.vpcPasswordFree = vpcPasswordFree; return this; } /** * Sets the value of {@link RosInstanceProps#getVSwitchId} * @param vSwitchId the value to be set. * @return {@code this} */ public Builder vSwitchId(java.lang.String vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * Sets the value of {@link RosInstanceProps#getVSwitchId} * @param vSwitchId the value to be set. * @return {@code this} */ public Builder vSwitchId(com.aliyun.ros.cdk.core.IResolvable vSwitchId) { this.vSwitchId = vSwitchId; return this; } /** * Sets the value of {@link RosInstanceProps#getZoneId} * @param zoneId the value to be set. * @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. * @return {@code this} */ public Builder zoneId(com.aliyun.ros.cdk.core.IResolvable zoneId) { this.zoneId = zoneId; 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 dbInstanceClass; private final java.lang.Object dbInstanceStorage; private final java.lang.Object accountPassword; private final java.lang.Object autoRenew; private final java.lang.Object backupId; private final java.lang.Object businessInfo; private final java.lang.Object chargeType; private final java.lang.Object couponNo; private final java.lang.Object databaseNames; private final java.lang.Object dbInstanceDescription; private final java.lang.Object engineVersion; private final java.lang.Object hiddenZoneId; private final java.lang.Object networkType; private final java.lang.Object period; private final java.lang.Object readonlyReplicas; private final java.lang.Object replicationFactor; private final java.lang.Object resourceGroupId; private final java.lang.Object restoreTime; private final java.lang.Object secondaryZoneId; private final java.lang.Object securityGroupId; private final java.lang.Object securityIpArray; private final java.lang.Object srcDbInstanceId; private final java.lang.Object storageEngine; private final java.lang.Object storageType; private final java.util.List tags; private final java.lang.Object tdeStatus; private final java.lang.Object vpcId; private final java.lang.Object vpcPasswordFree; private final java.lang.Object vSwitchId; private final java.lang.Object zoneId; /** * 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.dbInstanceClass = software.amazon.jsii.Kernel.get(this, "dbInstanceClass", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.dbInstanceStorage = software.amazon.jsii.Kernel.get(this, "dbInstanceStorage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.accountPassword = software.amazon.jsii.Kernel.get(this, "accountPassword", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.autoRenew = software.amazon.jsii.Kernel.get(this, "autoRenew", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.backupId = software.amazon.jsii.Kernel.get(this, "backupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.businessInfo = software.amazon.jsii.Kernel.get(this, "businessInfo", 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.couponNo = software.amazon.jsii.Kernel.get(this, "couponNo", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.databaseNames = software.amazon.jsii.Kernel.get(this, "databaseNames", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.dbInstanceDescription = software.amazon.jsii.Kernel.get(this, "dbInstanceDescription", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.engineVersion = software.amazon.jsii.Kernel.get(this, "engineVersion", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.hiddenZoneId = software.amazon.jsii.Kernel.get(this, "hiddenZoneId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.networkType = software.amazon.jsii.Kernel.get(this, "networkType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.period = software.amazon.jsii.Kernel.get(this, "period", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.readonlyReplicas = software.amazon.jsii.Kernel.get(this, "readonlyReplicas", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.replicationFactor = software.amazon.jsii.Kernel.get(this, "replicationFactor", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.resourceGroupId = software.amazon.jsii.Kernel.get(this, "resourceGroupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.restoreTime = software.amazon.jsii.Kernel.get(this, "restoreTime", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.secondaryZoneId = software.amazon.jsii.Kernel.get(this, "secondaryZoneId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.securityGroupId = software.amazon.jsii.Kernel.get(this, "securityGroupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.securityIpArray = software.amazon.jsii.Kernel.get(this, "securityIpArray", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.srcDbInstanceId = software.amazon.jsii.Kernel.get(this, "srcDbInstanceId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.storageEngine = software.amazon.jsii.Kernel.get(this, "storageEngine", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.storageType = software.amazon.jsii.Kernel.get(this, "storageType", 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.mongodb.RosInstance.TagsProperty.class))); this.tdeStatus = software.amazon.jsii.Kernel.get(this, "tdeStatus", 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.vpcPasswordFree = software.amazon.jsii.Kernel.get(this, "vpcPasswordFree", 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)); } /** * 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.dbInstanceClass = java.util.Objects.requireNonNull(builder.dbInstanceClass, "dbInstanceClass is required"); this.dbInstanceStorage = java.util.Objects.requireNonNull(builder.dbInstanceStorage, "dbInstanceStorage is required"); this.accountPassword = builder.accountPassword; this.autoRenew = builder.autoRenew; this.backupId = builder.backupId; this.businessInfo = builder.businessInfo; this.chargeType = builder.chargeType; this.couponNo = builder.couponNo; this.databaseNames = builder.databaseNames; this.dbInstanceDescription = builder.dbInstanceDescription; this.engineVersion = builder.engineVersion; this.hiddenZoneId = builder.hiddenZoneId; this.networkType = builder.networkType; this.period = builder.period; this.readonlyReplicas = builder.readonlyReplicas; this.replicationFactor = builder.replicationFactor; this.resourceGroupId = builder.resourceGroupId; this.restoreTime = builder.restoreTime; this.secondaryZoneId = builder.secondaryZoneId; this.securityGroupId = builder.securityGroupId; this.securityIpArray = builder.securityIpArray; this.srcDbInstanceId = builder.srcDbInstanceId; this.storageEngine = builder.storageEngine; this.storageType = builder.storageType; this.tags = (java.util.List)builder.tags; this.tdeStatus = builder.tdeStatus; this.vpcId = builder.vpcId; this.vpcPasswordFree = builder.vpcPasswordFree; this.vSwitchId = builder.vSwitchId; this.zoneId = builder.zoneId; } @Override public final java.lang.Object getDbInstanceClass() { return this.dbInstanceClass; } @Override public final java.lang.Object getDbInstanceStorage() { return this.dbInstanceStorage; } @Override public final java.lang.Object getAccountPassword() { return this.accountPassword; } @Override public final java.lang.Object getAutoRenew() { return this.autoRenew; } @Override public final java.lang.Object getBackupId() { return this.backupId; } @Override public final java.lang.Object getBusinessInfo() { return this.businessInfo; } @Override public final java.lang.Object getChargeType() { return this.chargeType; } @Override public final java.lang.Object getCouponNo() { return this.couponNo; } @Override public final java.lang.Object getDatabaseNames() { return this.databaseNames; } @Override public final java.lang.Object getDbInstanceDescription() { return this.dbInstanceDescription; } @Override public final java.lang.Object getEngineVersion() { return this.engineVersion; } @Override public final java.lang.Object getHiddenZoneId() { return this.hiddenZoneId; } @Override public final java.lang.Object getNetworkType() { return this.networkType; } @Override public final java.lang.Object getPeriod() { return this.period; } @Override public final java.lang.Object getReadonlyReplicas() { return this.readonlyReplicas; } @Override public final java.lang.Object getReplicationFactor() { return this.replicationFactor; } @Override public final java.lang.Object getResourceGroupId() { return this.resourceGroupId; } @Override public final java.lang.Object getRestoreTime() { return this.restoreTime; } @Override public final java.lang.Object getSecondaryZoneId() { return this.secondaryZoneId; } @Override public final java.lang.Object getSecurityGroupId() { return this.securityGroupId; } @Override public final java.lang.Object getSecurityIpArray() { return this.securityIpArray; } @Override public final java.lang.Object getSrcDbInstanceId() { return this.srcDbInstanceId; } @Override public final java.lang.Object getStorageEngine() { return this.storageEngine; } @Override public final java.lang.Object getStorageType() { return this.storageType; } @Override public final java.util.List getTags() { return this.tags; } @Override public final java.lang.Object getTdeStatus() { return this.tdeStatus; } @Override public final java.lang.Object getVpcId() { return this.vpcId; } @Override public final java.lang.Object getVpcPasswordFree() { return this.vpcPasswordFree; } @Override public final java.lang.Object getVSwitchId() { return this.vSwitchId; } @Override public final java.lang.Object getZoneId() { return this.zoneId; } @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("dbInstanceClass", om.valueToTree(this.getDbInstanceClass())); data.set("dbInstanceStorage", om.valueToTree(this.getDbInstanceStorage())); if (this.getAccountPassword() != null) { data.set("accountPassword", om.valueToTree(this.getAccountPassword())); } if (this.getAutoRenew() != null) { data.set("autoRenew", om.valueToTree(this.getAutoRenew())); } if (this.getBackupId() != null) { data.set("backupId", om.valueToTree(this.getBackupId())); } if (this.getBusinessInfo() != null) { data.set("businessInfo", om.valueToTree(this.getBusinessInfo())); } if (this.getChargeType() != null) { data.set("chargeType", om.valueToTree(this.getChargeType())); } if (this.getCouponNo() != null) { data.set("couponNo", om.valueToTree(this.getCouponNo())); } if (this.getDatabaseNames() != null) { data.set("databaseNames", om.valueToTree(this.getDatabaseNames())); } if (this.getDbInstanceDescription() != null) { data.set("dbInstanceDescription", om.valueToTree(this.getDbInstanceDescription())); } if (this.getEngineVersion() != null) { data.set("engineVersion", om.valueToTree(this.getEngineVersion())); } if (this.getHiddenZoneId() != null) { data.set("hiddenZoneId", om.valueToTree(this.getHiddenZoneId())); } if (this.getNetworkType() != null) { data.set("networkType", om.valueToTree(this.getNetworkType())); } if (this.getPeriod() != null) { data.set("period", om.valueToTree(this.getPeriod())); } if (this.getReadonlyReplicas() != null) { data.set("readonlyReplicas", om.valueToTree(this.getReadonlyReplicas())); } if (this.getReplicationFactor() != null) { data.set("replicationFactor", om.valueToTree(this.getReplicationFactor())); } if (this.getResourceGroupId() != null) { data.set("resourceGroupId", om.valueToTree(this.getResourceGroupId())); } if (this.getRestoreTime() != null) { data.set("restoreTime", om.valueToTree(this.getRestoreTime())); } if (this.getSecondaryZoneId() != null) { data.set("secondaryZoneId", om.valueToTree(this.getSecondaryZoneId())); } if (this.getSecurityGroupId() != null) { data.set("securityGroupId", om.valueToTree(this.getSecurityGroupId())); } if (this.getSecurityIpArray() != null) { data.set("securityIpArray", om.valueToTree(this.getSecurityIpArray())); } if (this.getSrcDbInstanceId() != null) { data.set("srcDbInstanceId", om.valueToTree(this.getSrcDbInstanceId())); } if (this.getStorageEngine() != null) { data.set("storageEngine", om.valueToTree(this.getStorageEngine())); } if (this.getStorageType() != null) { data.set("storageType", om.valueToTree(this.getStorageType())); } if (this.getTags() != null) { data.set("tags", om.valueToTree(this.getTags())); } if (this.getTdeStatus() != null) { data.set("tdeStatus", om.valueToTree(this.getTdeStatus())); } if (this.getVpcId() != null) { data.set("vpcId", om.valueToTree(this.getVpcId())); } if (this.getVpcPasswordFree() != null) { data.set("vpcPasswordFree", om.valueToTree(this.getVpcPasswordFree())); } if (this.getVSwitchId() != null) { data.set("vSwitchId", om.valueToTree(this.getVSwitchId())); } if (this.getZoneId() != null) { data.set("zoneId", om.valueToTree(this.getZoneId())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-mongodb.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 (!dbInstanceClass.equals(that.dbInstanceClass)) return false; if (!dbInstanceStorage.equals(that.dbInstanceStorage)) return false; if (this.accountPassword != null ? !this.accountPassword.equals(that.accountPassword) : that.accountPassword != null) return false; if (this.autoRenew != null ? !this.autoRenew.equals(that.autoRenew) : that.autoRenew != null) return false; if (this.backupId != null ? !this.backupId.equals(that.backupId) : that.backupId != null) return false; if (this.businessInfo != null ? !this.businessInfo.equals(that.businessInfo) : that.businessInfo != null) return false; if (this.chargeType != null ? !this.chargeType.equals(that.chargeType) : that.chargeType != null) return false; if (this.couponNo != null ? !this.couponNo.equals(that.couponNo) : that.couponNo != null) return false; if (this.databaseNames != null ? !this.databaseNames.equals(that.databaseNames) : that.databaseNames != null) return false; if (this.dbInstanceDescription != null ? !this.dbInstanceDescription.equals(that.dbInstanceDescription) : that.dbInstanceDescription != null) return false; if (this.engineVersion != null ? !this.engineVersion.equals(that.engineVersion) : that.engineVersion != null) return false; if (this.hiddenZoneId != null ? !this.hiddenZoneId.equals(that.hiddenZoneId) : that.hiddenZoneId != null) return false; if (this.networkType != null ? !this.networkType.equals(that.networkType) : that.networkType != null) return false; if (this.period != null ? !this.period.equals(that.period) : that.period != null) return false; if (this.readonlyReplicas != null ? !this.readonlyReplicas.equals(that.readonlyReplicas) : that.readonlyReplicas != null) return false; if (this.replicationFactor != null ? !this.replicationFactor.equals(that.replicationFactor) : that.replicationFactor != null) return false; if (this.resourceGroupId != null ? !this.resourceGroupId.equals(that.resourceGroupId) : that.resourceGroupId != null) return false; if (this.restoreTime != null ? !this.restoreTime.equals(that.restoreTime) : that.restoreTime != null) return false; if (this.secondaryZoneId != null ? !this.secondaryZoneId.equals(that.secondaryZoneId) : that.secondaryZoneId != null) return false; if (this.securityGroupId != null ? !this.securityGroupId.equals(that.securityGroupId) : that.securityGroupId != null) return false; if (this.securityIpArray != null ? !this.securityIpArray.equals(that.securityIpArray) : that.securityIpArray != null) return false; if (this.srcDbInstanceId != null ? !this.srcDbInstanceId.equals(that.srcDbInstanceId) : that.srcDbInstanceId != null) return false; if (this.storageEngine != null ? !this.storageEngine.equals(that.storageEngine) : that.storageEngine != null) return false; if (this.storageType != null ? !this.storageType.equals(that.storageType) : that.storageType != null) return false; if (this.tags != null ? !this.tags.equals(that.tags) : that.tags != null) return false; if (this.tdeStatus != null ? !this.tdeStatus.equals(that.tdeStatus) : that.tdeStatus != null) return false; if (this.vpcId != null ? !this.vpcId.equals(that.vpcId) : that.vpcId != null) return false; if (this.vpcPasswordFree != null ? !this.vpcPasswordFree.equals(that.vpcPasswordFree) : that.vpcPasswordFree != null) return false; if (this.vSwitchId != null ? !this.vSwitchId.equals(that.vSwitchId) : that.vSwitchId != null) return false; return this.zoneId != null ? this.zoneId.equals(that.zoneId) : that.zoneId == null; } @Override public final int hashCode() { int result = this.dbInstanceClass.hashCode(); result = 31 * result + (this.dbInstanceStorage.hashCode()); result = 31 * result + (this.accountPassword != null ? this.accountPassword.hashCode() : 0); result = 31 * result + (this.autoRenew != null ? this.autoRenew.hashCode() : 0); result = 31 * result + (this.backupId != null ? this.backupId.hashCode() : 0); result = 31 * result + (this.businessInfo != null ? this.businessInfo.hashCode() : 0); result = 31 * result + (this.chargeType != null ? this.chargeType.hashCode() : 0); result = 31 * result + (this.couponNo != null ? this.couponNo.hashCode() : 0); result = 31 * result + (this.databaseNames != null ? this.databaseNames.hashCode() : 0); result = 31 * result + (this.dbInstanceDescription != null ? this.dbInstanceDescription.hashCode() : 0); result = 31 * result + (this.engineVersion != null ? this.engineVersion.hashCode() : 0); result = 31 * result + (this.hiddenZoneId != null ? this.hiddenZoneId.hashCode() : 0); result = 31 * result + (this.networkType != null ? this.networkType.hashCode() : 0); result = 31 * result + (this.period != null ? this.period.hashCode() : 0); result = 31 * result + (this.readonlyReplicas != null ? this.readonlyReplicas.hashCode() : 0); result = 31 * result + (this.replicationFactor != null ? this.replicationFactor.hashCode() : 0); result = 31 * result + (this.resourceGroupId != null ? this.resourceGroupId.hashCode() : 0); result = 31 * result + (this.restoreTime != null ? this.restoreTime.hashCode() : 0); result = 31 * result + (this.secondaryZoneId != null ? this.secondaryZoneId.hashCode() : 0); result = 31 * result + (this.securityGroupId != null ? this.securityGroupId.hashCode() : 0); result = 31 * result + (this.securityIpArray != null ? this.securityIpArray.hashCode() : 0); result = 31 * result + (this.srcDbInstanceId != null ? this.srcDbInstanceId.hashCode() : 0); result = 31 * result + (this.storageEngine != null ? this.storageEngine.hashCode() : 0); result = 31 * result + (this.storageType != null ? this.storageType.hashCode() : 0); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); result = 31 * result + (this.tdeStatus != null ? this.tdeStatus.hashCode() : 0); result = 31 * result + (this.vpcId != null ? this.vpcId.hashCode() : 0); result = 31 * result + (this.vpcPasswordFree != null ? this.vpcPasswordFree.hashCode() : 0); result = 31 * result + (this.vSwitchId != null ? this.vSwitchId.hashCode() : 0); result = 31 * result + (this.zoneId != null ? this.zoneId.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy