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

com.aliyun.ros.cdk.ess.RosScalingConfiguration 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.4.0
Show newest version
package com.aliyun.ros.cdk.ess;

/**
 * A ROS template type:  ALIYUN::ESS::ScalingConfiguration.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.84.0 (build 5404dcf)", date = "2023-06-19T08:52:10.010Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ess.$Module.class, fqn = "@alicloud/ros-cdk-ess.RosScalingConfiguration")
public class RosScalingConfiguration extends com.aliyun.ros.cdk.core.RosResource {

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

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

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

    /**
     * Create a new ALIYUN::ESS::ScalingConfiguration.
     * 

* @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 RosScalingConfiguration(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.ess.RosScalingConfigurationProps 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; /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrScalingConfigurationId() { return software.amazon.jsii.Kernel.get(this, "attrScalingConfigurationId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } @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 getScalingGroupId() { return software.amazon.jsii.Kernel.get(this, "scalingGroupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setScalingGroupId(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "scalingGroupId", java.util.Objects.requireNonNull(value, "scalingGroupId is required")); } /** */ public void setScalingGroupId(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "scalingGroupId", java.util.Objects.requireNonNull(value, "scalingGroupId is required")); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getCreditSpecification() { return software.amazon.jsii.Kernel.get(this, "creditSpecification", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setCreditSpecification(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "creditSpecification", value); } /** */ public void setCreditSpecification(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "creditSpecification", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getDeploymentSetId() { return software.amazon.jsii.Kernel.get(this, "deploymentSetId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setDeploymentSetId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "deploymentSetId", value); } /** */ public void setDeploymentSetId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "deploymentSetId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getDiskMappings() { return software.amazon.jsii.Kernel.get(this, "diskMappings", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setDiskMappings(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "diskMappings", value); } /** */ public void setDiskMappings(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.ess.RosScalingConfiguration.DiskMappingsProperty) && !(__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.ess.RosScalingConfiguration.DiskMappingsProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "diskMappings", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getHostName() { return software.amazon.jsii.Kernel.get(this, "hostName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setHostName(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "hostName", value); } /** */ public void setHostName(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "hostName", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getHpcClusterId() { return software.amazon.jsii.Kernel.get(this, "hpcClusterId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setHpcClusterId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "hpcClusterId", value); } /** */ public void setHpcClusterId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "hpcClusterId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getImageFamily() { return software.amazon.jsii.Kernel.get(this, "imageFamily", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setImageFamily(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "imageFamily", value); } /** */ public void setImageFamily(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "imageFamily", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getImageId() { return software.amazon.jsii.Kernel.get(this, "imageId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setImageId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "imageId", value); } /** */ public void setImageId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "imageId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceId() { return software.amazon.jsii.Kernel.get(this, "instanceId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceId", value); } /** */ public void setInstanceId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceName() { return software.amazon.jsii.Kernel.get(this, "instanceName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceName(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceName", value); } /** */ public void setInstanceName(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceName", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceType() { return software.amazon.jsii.Kernel.get(this, "instanceType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceType(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceType", value); } /** */ public void setInstanceType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceType", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInstanceTypes() { return software.amazon.jsii.Kernel.get(this, "instanceTypes", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceTypes(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); } } software.amazon.jsii.Kernel.set(this, "instanceTypes", value); } /** */ public void setInstanceTypes(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceTypes", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInternetChargeType() { return software.amazon.jsii.Kernel.get(this, "internetChargeType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInternetChargeType(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "internetChargeType", value); } /** */ public void setInternetChargeType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "internetChargeType", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInternetMaxBandwidthIn() { return software.amazon.jsii.Kernel.get(this, "internetMaxBandwidthIn", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInternetMaxBandwidthIn(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "internetMaxBandwidthIn", value); } /** */ public void setInternetMaxBandwidthIn(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "internetMaxBandwidthIn", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getInternetMaxBandwidthOut() { return software.amazon.jsii.Kernel.get(this, "internetMaxBandwidthOut", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInternetMaxBandwidthOut(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "internetMaxBandwidthOut", value); } /** */ public void setInternetMaxBandwidthOut(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "internetMaxBandwidthOut", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getIoOptimized() { return software.amazon.jsii.Kernel.get(this, "ioOptimized", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setIoOptimized(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "ioOptimized", value); } /** */ public void setIoOptimized(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "ioOptimized", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getIpv6AddressCount() { return software.amazon.jsii.Kernel.get(this, "ipv6AddressCount", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setIpv6AddressCount(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "ipv6AddressCount", value); } /** */ public void setIpv6AddressCount(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "ipv6AddressCount", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getKeyPairName() { return software.amazon.jsii.Kernel.get(this, "keyPairName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setKeyPairName(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "keyPairName", value); } /** */ public void setKeyPairName(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "keyPairName", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getLoadBalancerWeight() { return software.amazon.jsii.Kernel.get(this, "loadBalancerWeight", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setLoadBalancerWeight(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "loadBalancerWeight", value); } /** */ public void setLoadBalancerWeight(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "loadBalancerWeight", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getPassword() { return software.amazon.jsii.Kernel.get(this, "password", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setPassword(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "password", value); } /** */ public void setPassword(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "password", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getPasswordInherit() { return software.amazon.jsii.Kernel.get(this, "passwordInherit", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setPasswordInherit(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "passwordInherit", value); } /** */ public void setPasswordInherit(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "passwordInherit", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getRamRoleName() { return software.amazon.jsii.Kernel.get(this, "ramRoleName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setRamRoleName(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "ramRoleName", value); } /** */ public void setRamRoleName(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "ramRoleName", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getResourceGroupId() { return software.amazon.jsii.Kernel.get(this, "resourceGroupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setResourceGroupId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "resourceGroupId", value); } /** */ public void setResourceGroupId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "resourceGroupId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getScalingConfigurationName() { return software.amazon.jsii.Kernel.get(this, "scalingConfigurationName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setScalingConfigurationName(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "scalingConfigurationName", value); } /** */ public void setScalingConfigurationName(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "scalingConfigurationName", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSecurityGroupId() { return software.amazon.jsii.Kernel.get(this, "securityGroupId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSecurityGroupId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "securityGroupId", value); } /** */ public void setSecurityGroupId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "securityGroupId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSpotPriceLimit() { return software.amazon.jsii.Kernel.get(this, "spotPriceLimit", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSpotPriceLimit(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "spotPriceLimit", value); } /** */ public void setSpotPriceLimit(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "spotPriceLimit", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSpotPriceLimitForInstanceType() { return software.amazon.jsii.Kernel.get(this, "spotPriceLimitForInstanceType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSpotPriceLimitForInstanceType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "spotPriceLimitForInstanceType", value); } /** */ public void setSpotPriceLimitForInstanceType(final @org.jetbrains.annotations.Nullable java.util.Map value) { if (software.amazon.jsii.Configuration.getRuntimeTypeChecking()) { if (!(value.keySet().toArray()[0] instanceof String)) { throw new IllegalArgumentException( new java.lang.StringBuilder("Expected ") .append("value").append(".keySet()") .append(" to contain class String; received ") .append(value.keySet().toArray()[0].getClass()).toString()); } for (final java.util.Map.Entry __item_ac66f0: value.entrySet()) { final java.lang.Object __val_ac66f0 = __item_ac66f0.getValue(); } } software.amazon.jsii.Kernel.set(this, "spotPriceLimitForInstanceType", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSpotStrategy() { return software.amazon.jsii.Kernel.get(this, "spotStrategy", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSpotStrategy(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "spotStrategy", value); } /** */ public void setSpotStrategy(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "spotStrategy", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSystemDiskAutoSnapshotPolicyId() { return software.amazon.jsii.Kernel.get(this, "systemDiskAutoSnapshotPolicyId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSystemDiskAutoSnapshotPolicyId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "systemDiskAutoSnapshotPolicyId", value); } /** */ public void setSystemDiskAutoSnapshotPolicyId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "systemDiskAutoSnapshotPolicyId", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSystemDiskCategory() { return software.amazon.jsii.Kernel.get(this, "systemDiskCategory", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSystemDiskCategory(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "systemDiskCategory", value); } /** */ public void setSystemDiskCategory(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "systemDiskCategory", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSystemDiskPerformanceLevel() { return software.amazon.jsii.Kernel.get(this, "systemDiskPerformanceLevel", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSystemDiskPerformanceLevel(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "systemDiskPerformanceLevel", value); } /** */ public void setSystemDiskPerformanceLevel(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "systemDiskPerformanceLevel", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getSystemDiskSize() { return software.amazon.jsii.Kernel.get(this, "systemDiskSize", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSystemDiskSize(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "systemDiskSize", value); } /** */ public void setSystemDiskSize(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "systemDiskSize", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getTagList() { return software.amazon.jsii.Kernel.get(this, "tagList", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setTagList(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "tagList", value); } /** */ public void setTagList(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.ess.RosScalingConfiguration.TagListProperty) && !(__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.ess.RosScalingConfiguration.TagListProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "tagList", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getUserData() { return software.amazon.jsii.Kernel.get(this, "userData", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setUserData(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "userData", value); } /** */ public void setUserData(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "userData", value); } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ess.$Module.class, fqn = "@alicloud/ros-cdk-ess.RosScalingConfiguration.DiskMappingsProperty") @software.amazon.jsii.Jsii.Proxy(DiskMappingsProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface DiskMappingsProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getAutoSnapshotPolicyId() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getCategory() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getDescription() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getDevice() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getDiskName() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getEncrypted() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getKmsKeyId() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getPerformanceLevel() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getSize() { return null; } /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getSnapshotId() { return null; } /** * @return a {@link Builder} of {@link DiskMappingsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link DiskMappingsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object autoSnapshotPolicyId; java.lang.Object category; java.lang.Object description; java.lang.Object device; java.lang.Object diskName; java.lang.Object encrypted; java.lang.Object kmsKeyId; java.lang.Object performanceLevel; java.lang.Object size; java.lang.Object snapshotId; /** * Sets the value of {@link DiskMappingsProperty#getAutoSnapshotPolicyId} * @param autoSnapshotPolicyId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder autoSnapshotPolicyId(java.lang.String autoSnapshotPolicyId) { this.autoSnapshotPolicyId = autoSnapshotPolicyId; return this; } /** * Sets the value of {@link DiskMappingsProperty#getAutoSnapshotPolicyId} * @param autoSnapshotPolicyId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder autoSnapshotPolicyId(com.aliyun.ros.cdk.core.IResolvable autoSnapshotPolicyId) { this.autoSnapshotPolicyId = autoSnapshotPolicyId; return this; } /** * Sets the value of {@link DiskMappingsProperty#getCategory} * @param category the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder category(java.lang.String category) { this.category = category; return this; } /** * Sets the value of {@link DiskMappingsProperty#getCategory} * @param category the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder category(com.aliyun.ros.cdk.core.IResolvable category) { this.category = category; return this; } /** * Sets the value of {@link DiskMappingsProperty#getDescription} * @param description the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder description(java.lang.String description) { this.description = description; return this; } /** * Sets the value of {@link DiskMappingsProperty#getDescription} * @param description the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder description(com.aliyun.ros.cdk.core.IResolvable description) { this.description = description; return this; } /** * Sets the value of {@link DiskMappingsProperty#getDevice} * @param device the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder device(java.lang.String device) { this.device = device; return this; } /** * Sets the value of {@link DiskMappingsProperty#getDevice} * @param device the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder device(com.aliyun.ros.cdk.core.IResolvable device) { this.device = device; return this; } /** * Sets the value of {@link DiskMappingsProperty#getDiskName} * @param diskName the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder diskName(java.lang.String diskName) { this.diskName = diskName; return this; } /** * Sets the value of {@link DiskMappingsProperty#getDiskName} * @param diskName the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder diskName(com.aliyun.ros.cdk.core.IResolvable diskName) { this.diskName = diskName; return this; } /** * Sets the value of {@link DiskMappingsProperty#getEncrypted} * @param encrypted the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder encrypted(java.lang.String encrypted) { this.encrypted = encrypted; return this; } /** * Sets the value of {@link DiskMappingsProperty#getEncrypted} * @param encrypted the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder encrypted(com.aliyun.ros.cdk.core.IResolvable encrypted) { this.encrypted = encrypted; return this; } /** * Sets the value of {@link DiskMappingsProperty#getKmsKeyId} * @param kmsKeyId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder kmsKeyId(java.lang.String kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } /** * Sets the value of {@link DiskMappingsProperty#getKmsKeyId} * @param kmsKeyId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder kmsKeyId(com.aliyun.ros.cdk.core.IResolvable kmsKeyId) { this.kmsKeyId = kmsKeyId; return this; } /** * Sets the value of {@link DiskMappingsProperty#getPerformanceLevel} * @param performanceLevel the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder performanceLevel(java.lang.String performanceLevel) { this.performanceLevel = performanceLevel; return this; } /** * Sets the value of {@link DiskMappingsProperty#getPerformanceLevel} * @param performanceLevel the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder performanceLevel(com.aliyun.ros.cdk.core.IResolvable performanceLevel) { this.performanceLevel = performanceLevel; return this; } /** * Sets the value of {@link DiskMappingsProperty#getSize} * @param size the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder size(java.lang.String size) { this.size = size; return this; } /** * Sets the value of {@link DiskMappingsProperty#getSize} * @param size the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder size(com.aliyun.ros.cdk.core.IResolvable size) { this.size = size; return this; } /** * Sets the value of {@link DiskMappingsProperty#getSnapshotId} * @param snapshotId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder snapshotId(java.lang.String snapshotId) { this.snapshotId = snapshotId; return this; } /** * Sets the value of {@link DiskMappingsProperty#getSnapshotId} * @param snapshotId the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder snapshotId(com.aliyun.ros.cdk.core.IResolvable snapshotId) { this.snapshotId = snapshotId; return this; } /** * Builds the configured instance. * @return a new instance of {@link DiskMappingsProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public DiskMappingsProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link DiskMappingsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DiskMappingsProperty { private final java.lang.Object autoSnapshotPolicyId; private final java.lang.Object category; private final java.lang.Object description; private final java.lang.Object device; private final java.lang.Object diskName; private final java.lang.Object encrypted; private final java.lang.Object kmsKeyId; private final java.lang.Object performanceLevel; private final java.lang.Object size; private final java.lang.Object snapshotId; /** * 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.autoSnapshotPolicyId = software.amazon.jsii.Kernel.get(this, "autoSnapshotPolicyId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.category = software.amazon.jsii.Kernel.get(this, "category", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.description = software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.device = software.amazon.jsii.Kernel.get(this, "device", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.diskName = software.amazon.jsii.Kernel.get(this, "diskName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.encrypted = software.amazon.jsii.Kernel.get(this, "encrypted", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.kmsKeyId = software.amazon.jsii.Kernel.get(this, "kmsKeyId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.performanceLevel = software.amazon.jsii.Kernel.get(this, "performanceLevel", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.size = software.amazon.jsii.Kernel.get(this, "size", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.snapshotId = software.amazon.jsii.Kernel.get(this, "snapshotId", 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.autoSnapshotPolicyId = builder.autoSnapshotPolicyId; this.category = builder.category; this.description = builder.description; this.device = builder.device; this.diskName = builder.diskName; this.encrypted = builder.encrypted; this.kmsKeyId = builder.kmsKeyId; this.performanceLevel = builder.performanceLevel; this.size = builder.size; this.snapshotId = builder.snapshotId; } @Override public final java.lang.Object getAutoSnapshotPolicyId() { return this.autoSnapshotPolicyId; } @Override public final java.lang.Object getCategory() { return this.category; } @Override public final java.lang.Object getDescription() { return this.description; } @Override public final java.lang.Object getDevice() { return this.device; } @Override public final java.lang.Object getDiskName() { return this.diskName; } @Override public final java.lang.Object getEncrypted() { return this.encrypted; } @Override public final java.lang.Object getKmsKeyId() { return this.kmsKeyId; } @Override public final java.lang.Object getPerformanceLevel() { return this.performanceLevel; } @Override public final java.lang.Object getSize() { return this.size; } @Override public final java.lang.Object getSnapshotId() { return this.snapshotId; } @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.getAutoSnapshotPolicyId() != null) { data.set("autoSnapshotPolicyId", om.valueToTree(this.getAutoSnapshotPolicyId())); } if (this.getCategory() != null) { data.set("category", om.valueToTree(this.getCategory())); } if (this.getDescription() != null) { data.set("description", om.valueToTree(this.getDescription())); } if (this.getDevice() != null) { data.set("device", om.valueToTree(this.getDevice())); } if (this.getDiskName() != null) { data.set("diskName", om.valueToTree(this.getDiskName())); } if (this.getEncrypted() != null) { data.set("encrypted", om.valueToTree(this.getEncrypted())); } if (this.getKmsKeyId() != null) { data.set("kmsKeyId", om.valueToTree(this.getKmsKeyId())); } if (this.getPerformanceLevel() != null) { data.set("performanceLevel", om.valueToTree(this.getPerformanceLevel())); } if (this.getSize() != null) { data.set("size", om.valueToTree(this.getSize())); } if (this.getSnapshotId() != null) { data.set("snapshotId", om.valueToTree(this.getSnapshotId())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-ess.RosScalingConfiguration.DiskMappingsProperty")); 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; DiskMappingsProperty.Jsii$Proxy that = (DiskMappingsProperty.Jsii$Proxy) o; if (this.autoSnapshotPolicyId != null ? !this.autoSnapshotPolicyId.equals(that.autoSnapshotPolicyId) : that.autoSnapshotPolicyId != null) return false; if (this.category != null ? !this.category.equals(that.category) : that.category != null) return false; if (this.description != null ? !this.description.equals(that.description) : that.description != null) return false; if (this.device != null ? !this.device.equals(that.device) : that.device != null) return false; if (this.diskName != null ? !this.diskName.equals(that.diskName) : that.diskName != null) return false; if (this.encrypted != null ? !this.encrypted.equals(that.encrypted) : that.encrypted != null) return false; if (this.kmsKeyId != null ? !this.kmsKeyId.equals(that.kmsKeyId) : that.kmsKeyId != null) return false; if (this.performanceLevel != null ? !this.performanceLevel.equals(that.performanceLevel) : that.performanceLevel != null) return false; if (this.size != null ? !this.size.equals(that.size) : that.size != null) return false; return this.snapshotId != null ? this.snapshotId.equals(that.snapshotId) : that.snapshotId == null; } @Override public final int hashCode() { int result = this.autoSnapshotPolicyId != null ? this.autoSnapshotPolicyId.hashCode() : 0; result = 31 * result + (this.category != null ? this.category.hashCode() : 0); result = 31 * result + (this.description != null ? this.description.hashCode() : 0); result = 31 * result + (this.device != null ? this.device.hashCode() : 0); result = 31 * result + (this.diskName != null ? this.diskName.hashCode() : 0); result = 31 * result + (this.encrypted != null ? this.encrypted.hashCode() : 0); result = 31 * result + (this.kmsKeyId != null ? this.kmsKeyId.hashCode() : 0); result = 31 * result + (this.performanceLevel != null ? this.performanceLevel.hashCode() : 0); result = 31 * result + (this.size != null ? this.size.hashCode() : 0); result = 31 * result + (this.snapshotId != null ? this.snapshotId.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ess.$Module.class, fqn = "@alicloud/ros-cdk-ess.RosScalingConfiguration.TagListProperty") @software.amazon.jsii.Jsii.Proxy(TagListProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface TagListProperty extends software.amazon.jsii.JsiiSerializable { /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.Object getKey(); /** */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Object getValue() { return null; } /** * @return a {@link Builder} of {@link TagListProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link TagListProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object key; java.lang.Object value; /** * Sets the value of {@link TagListProperty#getKey} * @param key the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder key(java.lang.String key) { this.key = key; return this; } /** * Sets the value of {@link TagListProperty#getKey} * @param key the value to be set. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder key(com.aliyun.ros.cdk.core.IResolvable key) { this.key = key; return this; } /** * Sets the value of {@link TagListProperty#getValue} * @param value the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder value(java.lang.String value) { this.value = value; return this; } /** * Sets the value of {@link TagListProperty#getValue} * @param value the value to be set. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder value(com.aliyun.ros.cdk.core.IResolvable value) { this.value = value; return this; } /** * Builds the configured instance. * @return a new instance of {@link TagListProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public TagListProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link TagListProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TagListProperty { private final java.lang.Object key; private final java.lang.Object value; /** * 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.key = software.amazon.jsii.Kernel.get(this, "key", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.value = software.amazon.jsii.Kernel.get(this, "value", 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.key = java.util.Objects.requireNonNull(builder.key, "key is required"); this.value = builder.value; } @Override public final java.lang.Object getKey() { return this.key; } @Override public final java.lang.Object getValue() { return this.value; } @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("key", om.valueToTree(this.getKey())); if (this.getValue() != null) { data.set("value", om.valueToTree(this.getValue())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-ess.RosScalingConfiguration.TagListProperty")); 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; TagListProperty.Jsii$Proxy that = (TagListProperty.Jsii$Proxy) o; if (!key.equals(that.key)) return false; return this.value != null ? this.value.equals(that.value) : that.value == null; } @Override public final int hashCode() { int result = this.key.hashCode(); result = 31 * result + (this.value != null ? this.value.hashCode() : 0); return result; } } } /** * A fluent builder for {@link com.aliyun.ros.cdk.ess.RosScalingConfiguration}. */ 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.ess.RosScalingConfigurationProps.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.ess.RosScalingConfigurationProps.Builder(); } /** * @return {@code this} * @param scalingGroupId This parameter is required. */ public Builder scalingGroupId(final java.lang.String scalingGroupId) { this.props.scalingGroupId(scalingGroupId); return this; } /** * @return {@code this} * @param scalingGroupId This parameter is required. */ public Builder scalingGroupId(final com.aliyun.ros.cdk.core.IResolvable scalingGroupId) { this.props.scalingGroupId(scalingGroupId); return this; } /** * @return {@code this} * @param creditSpecification This parameter is required. */ public Builder creditSpecification(final java.lang.String creditSpecification) { this.props.creditSpecification(creditSpecification); return this; } /** * @return {@code this} * @param creditSpecification This parameter is required. */ public Builder creditSpecification(final com.aliyun.ros.cdk.core.IResolvable creditSpecification) { this.props.creditSpecification(creditSpecification); return this; } /** * @return {@code this} * @param deploymentSetId This parameter is required. */ public Builder deploymentSetId(final java.lang.String deploymentSetId) { this.props.deploymentSetId(deploymentSetId); return this; } /** * @return {@code this} * @param deploymentSetId This parameter is required. */ public Builder deploymentSetId(final com.aliyun.ros.cdk.core.IResolvable deploymentSetId) { this.props.deploymentSetId(deploymentSetId); return this; } /** * @return {@code this} * @param diskMappings This parameter is required. */ public Builder diskMappings(final com.aliyun.ros.cdk.core.IResolvable diskMappings) { this.props.diskMappings(diskMappings); return this; } /** * @return {@code this} * @param diskMappings This parameter is required. */ public Builder diskMappings(final java.util.List diskMappings) { this.props.diskMappings(diskMappings); return this; } /** * @return {@code this} * @param hostName This parameter is required. */ public Builder hostName(final java.lang.String hostName) { this.props.hostName(hostName); return this; } /** * @return {@code this} * @param hostName This parameter is required. */ public Builder hostName(final com.aliyun.ros.cdk.core.IResolvable hostName) { this.props.hostName(hostName); return this; } /** * @return {@code this} * @param hpcClusterId This parameter is required. */ public Builder hpcClusterId(final java.lang.String hpcClusterId) { this.props.hpcClusterId(hpcClusterId); return this; } /** * @return {@code this} * @param hpcClusterId This parameter is required. */ public Builder hpcClusterId(final com.aliyun.ros.cdk.core.IResolvable hpcClusterId) { this.props.hpcClusterId(hpcClusterId); return this; } /** * @return {@code this} * @param imageFamily This parameter is required. */ public Builder imageFamily(final java.lang.String imageFamily) { this.props.imageFamily(imageFamily); return this; } /** * @return {@code this} * @param imageFamily This parameter is required. */ public Builder imageFamily(final com.aliyun.ros.cdk.core.IResolvable imageFamily) { this.props.imageFamily(imageFamily); return this; } /** * @return {@code this} * @param imageId This parameter is required. */ public Builder imageId(final java.lang.String imageId) { this.props.imageId(imageId); return this; } /** * @return {@code this} * @param imageId This parameter is required. */ public Builder imageId(final com.aliyun.ros.cdk.core.IResolvable imageId) { this.props.imageId(imageId); return this; } /** * @return {@code this} * @param instanceId This parameter is required. */ public Builder instanceId(final java.lang.String instanceId) { this.props.instanceId(instanceId); return this; } /** * @return {@code this} * @param instanceId This parameter is required. */ public Builder instanceId(final com.aliyun.ros.cdk.core.IResolvable instanceId) { this.props.instanceId(instanceId); return this; } /** * @return {@code this} * @param instanceName This parameter is required. */ public Builder instanceName(final java.lang.String instanceName) { this.props.instanceName(instanceName); return this; } /** * @return {@code this} * @param instanceName This parameter is required. */ public Builder instanceName(final com.aliyun.ros.cdk.core.IResolvable instanceName) { this.props.instanceName(instanceName); return this; } /** * @return {@code this} * @param instanceType This parameter is required. */ public Builder instanceType(final java.lang.String instanceType) { this.props.instanceType(instanceType); return this; } /** * @return {@code this} * @param instanceType This parameter is required. */ public Builder instanceType(final com.aliyun.ros.cdk.core.IResolvable instanceType) { this.props.instanceType(instanceType); return this; } /** * @return {@code this} * @param instanceTypes This parameter is required. */ public Builder instanceTypes(final java.util.List instanceTypes) { this.props.instanceTypes(instanceTypes); return this; } /** * @return {@code this} * @param instanceTypes This parameter is required. */ public Builder instanceTypes(final com.aliyun.ros.cdk.core.IResolvable instanceTypes) { this.props.instanceTypes(instanceTypes); return this; } /** * @return {@code this} * @param internetChargeType This parameter is required. */ public Builder internetChargeType(final java.lang.String internetChargeType) { this.props.internetChargeType(internetChargeType); return this; } /** * @return {@code this} * @param internetChargeType This parameter is required. */ public Builder internetChargeType(final com.aliyun.ros.cdk.core.IResolvable internetChargeType) { this.props.internetChargeType(internetChargeType); return this; } /** * @return {@code this} * @param internetMaxBandwidthIn This parameter is required. */ public Builder internetMaxBandwidthIn(final java.lang.Number internetMaxBandwidthIn) { this.props.internetMaxBandwidthIn(internetMaxBandwidthIn); return this; } /** * @return {@code this} * @param internetMaxBandwidthIn This parameter is required. */ public Builder internetMaxBandwidthIn(final com.aliyun.ros.cdk.core.IResolvable internetMaxBandwidthIn) { this.props.internetMaxBandwidthIn(internetMaxBandwidthIn); return this; } /** * @return {@code this} * @param internetMaxBandwidthOut This parameter is required. */ public Builder internetMaxBandwidthOut(final java.lang.Number internetMaxBandwidthOut) { this.props.internetMaxBandwidthOut(internetMaxBandwidthOut); return this; } /** * @return {@code this} * @param internetMaxBandwidthOut This parameter is required. */ public Builder internetMaxBandwidthOut(final com.aliyun.ros.cdk.core.IResolvable internetMaxBandwidthOut) { this.props.internetMaxBandwidthOut(internetMaxBandwidthOut); return this; } /** * @return {@code this} * @param ioOptimized This parameter is required. */ public Builder ioOptimized(final java.lang.String ioOptimized) { this.props.ioOptimized(ioOptimized); return this; } /** * @return {@code this} * @param ioOptimized This parameter is required. */ public Builder ioOptimized(final com.aliyun.ros.cdk.core.IResolvable ioOptimized) { this.props.ioOptimized(ioOptimized); return this; } /** * @return {@code this} * @param ipv6AddressCount This parameter is required. */ public Builder ipv6AddressCount(final java.lang.Number ipv6AddressCount) { this.props.ipv6AddressCount(ipv6AddressCount); return this; } /** * @return {@code this} * @param ipv6AddressCount This parameter is required. */ public Builder ipv6AddressCount(final com.aliyun.ros.cdk.core.IResolvable ipv6AddressCount) { this.props.ipv6AddressCount(ipv6AddressCount); return this; } /** * @return {@code this} * @param keyPairName This parameter is required. */ public Builder keyPairName(final java.lang.String keyPairName) { this.props.keyPairName(keyPairName); return this; } /** * @return {@code this} * @param keyPairName This parameter is required. */ public Builder keyPairName(final com.aliyun.ros.cdk.core.IResolvable keyPairName) { this.props.keyPairName(keyPairName); return this; } /** * @return {@code this} * @param loadBalancerWeight This parameter is required. */ public Builder loadBalancerWeight(final java.lang.Number loadBalancerWeight) { this.props.loadBalancerWeight(loadBalancerWeight); return this; } /** * @return {@code this} * @param loadBalancerWeight This parameter is required. */ public Builder loadBalancerWeight(final com.aliyun.ros.cdk.core.IResolvable loadBalancerWeight) { this.props.loadBalancerWeight(loadBalancerWeight); return this; } /** * @return {@code this} * @param password This parameter is required. */ public Builder password(final java.lang.String password) { this.props.password(password); return this; } /** * @return {@code this} * @param password This parameter is required. */ public Builder password(final com.aliyun.ros.cdk.core.IResolvable password) { this.props.password(password); return this; } /** * @return {@code this} * @param passwordInherit This parameter is required. */ public Builder passwordInherit(final java.lang.Boolean passwordInherit) { this.props.passwordInherit(passwordInherit); return this; } /** * @return {@code this} * @param passwordInherit This parameter is required. */ public Builder passwordInherit(final com.aliyun.ros.cdk.core.IResolvable passwordInherit) { this.props.passwordInherit(passwordInherit); return this; } /** * @return {@code this} * @param ramRoleName This parameter is required. */ public Builder ramRoleName(final java.lang.String ramRoleName) { this.props.ramRoleName(ramRoleName); return this; } /** * @return {@code this} * @param ramRoleName This parameter is required. */ public Builder ramRoleName(final com.aliyun.ros.cdk.core.IResolvable ramRoleName) { this.props.ramRoleName(ramRoleName); return this; } /** * @return {@code this} * @param resourceGroupId This parameter is required. */ public Builder resourceGroupId(final java.lang.String resourceGroupId) { this.props.resourceGroupId(resourceGroupId); return this; } /** * @return {@code this} * @param resourceGroupId This parameter is required. */ public Builder resourceGroupId(final com.aliyun.ros.cdk.core.IResolvable resourceGroupId) { this.props.resourceGroupId(resourceGroupId); return this; } /** * @return {@code this} * @param scalingConfigurationName This parameter is required. */ public Builder scalingConfigurationName(final java.lang.String scalingConfigurationName) { this.props.scalingConfigurationName(scalingConfigurationName); return this; } /** * @return {@code this} * @param scalingConfigurationName This parameter is required. */ public Builder scalingConfigurationName(final com.aliyun.ros.cdk.core.IResolvable scalingConfigurationName) { this.props.scalingConfigurationName(scalingConfigurationName); return this; } /** * @return {@code this} * @param securityGroupId This parameter is required. */ public Builder securityGroupId(final java.lang.String securityGroupId) { this.props.securityGroupId(securityGroupId); return this; } /** * @return {@code this} * @param securityGroupId This parameter is required. */ public Builder securityGroupId(final com.aliyun.ros.cdk.core.IResolvable securityGroupId) { this.props.securityGroupId(securityGroupId); return this; } /** * @return {@code this} * @param spotPriceLimit This parameter is required. */ public Builder spotPriceLimit(final java.lang.Number spotPriceLimit) { this.props.spotPriceLimit(spotPriceLimit); return this; } /** * @return {@code this} * @param spotPriceLimit This parameter is required. */ public Builder spotPriceLimit(final com.aliyun.ros.cdk.core.IResolvable spotPriceLimit) { this.props.spotPriceLimit(spotPriceLimit); return this; } /** * @return {@code this} * @param spotPriceLimitForInstanceType This parameter is required. */ public Builder spotPriceLimitForInstanceType(final com.aliyun.ros.cdk.core.IResolvable spotPriceLimitForInstanceType) { this.props.spotPriceLimitForInstanceType(spotPriceLimitForInstanceType); return this; } /** * @return {@code this} * @param spotPriceLimitForInstanceType This parameter is required. */ public Builder spotPriceLimitForInstanceType(final java.util.Map spotPriceLimitForInstanceType) { this.props.spotPriceLimitForInstanceType(spotPriceLimitForInstanceType); return this; } /** * @return {@code this} * @param spotStrategy This parameter is required. */ public Builder spotStrategy(final java.lang.String spotStrategy) { this.props.spotStrategy(spotStrategy); return this; } /** * @return {@code this} * @param spotStrategy This parameter is required. */ public Builder spotStrategy(final com.aliyun.ros.cdk.core.IResolvable spotStrategy) { this.props.spotStrategy(spotStrategy); return this; } /** * @return {@code this} * @param systemDiskAutoSnapshotPolicyId This parameter is required. */ public Builder systemDiskAutoSnapshotPolicyId(final java.lang.String systemDiskAutoSnapshotPolicyId) { this.props.systemDiskAutoSnapshotPolicyId(systemDiskAutoSnapshotPolicyId); return this; } /** * @return {@code this} * @param systemDiskAutoSnapshotPolicyId This parameter is required. */ public Builder systemDiskAutoSnapshotPolicyId(final com.aliyun.ros.cdk.core.IResolvable systemDiskAutoSnapshotPolicyId) { this.props.systemDiskAutoSnapshotPolicyId(systemDiskAutoSnapshotPolicyId); return this; } /** * @return {@code this} * @param systemDiskCategory This parameter is required. */ public Builder systemDiskCategory(final java.lang.String systemDiskCategory) { this.props.systemDiskCategory(systemDiskCategory); return this; } /** * @return {@code this} * @param systemDiskCategory This parameter is required. */ public Builder systemDiskCategory(final com.aliyun.ros.cdk.core.IResolvable systemDiskCategory) { this.props.systemDiskCategory(systemDiskCategory); return this; } /** * @return {@code this} * @param systemDiskPerformanceLevel This parameter is required. */ public Builder systemDiskPerformanceLevel(final java.lang.String systemDiskPerformanceLevel) { this.props.systemDiskPerformanceLevel(systemDiskPerformanceLevel); return this; } /** * @return {@code this} * @param systemDiskPerformanceLevel This parameter is required. */ public Builder systemDiskPerformanceLevel(final com.aliyun.ros.cdk.core.IResolvable systemDiskPerformanceLevel) { this.props.systemDiskPerformanceLevel(systemDiskPerformanceLevel); return this; } /** * @return {@code this} * @param systemDiskSize This parameter is required. */ public Builder systemDiskSize(final java.lang.Number systemDiskSize) { this.props.systemDiskSize(systemDiskSize); return this; } /** * @return {@code this} * @param systemDiskSize This parameter is required. */ public Builder systemDiskSize(final com.aliyun.ros.cdk.core.IResolvable systemDiskSize) { this.props.systemDiskSize(systemDiskSize); return this; } /** * @return {@code this} * @param tagList This parameter is required. */ public Builder tagList(final com.aliyun.ros.cdk.core.IResolvable tagList) { this.props.tagList(tagList); return this; } /** * @return {@code this} * @param tagList This parameter is required. */ public Builder tagList(final java.util.List tagList) { this.props.tagList(tagList); return this; } /** * @return {@code this} * @param userData This parameter is required. */ public Builder userData(final java.lang.String userData) { this.props.userData(userData); return this; } /** * @return {@code this} * @param userData This parameter is required. */ public Builder userData(final com.aliyun.ros.cdk.core.IResolvable userData) { this.props.userData(userData); return this; } /** * @return a newly built instance of {@link com.aliyun.ros.cdk.ess.RosScalingConfiguration}. */ @Override public com.aliyun.ros.cdk.ess.RosScalingConfiguration build() { return new com.aliyun.ros.cdk.ess.RosScalingConfiguration( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy