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

com.aliyun.ros.cdk.ecs.RosInstanceClone Maven / Gradle / Ivy

package com.aliyun.ros.cdk.ecs;

/**
 * This class is a base encapsulation around the ROS resource type ALIYUN::ECS::InstanceClone, which is used to clone an Elastic Compute Service (ECS) instance.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-08-22T08:56:20.153Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ecs.$Module.class, fqn = "@alicloud/ros-cdk-ecs.RosInstanceClone")
public class RosInstanceClone extends com.aliyun.ros.cdk.core.RosResource {

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

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

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

    /**
     * @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 RosInstanceClone(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.ecs.RosInstanceCloneProps 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 getAttrHostName() { return software.amazon.jsii.Kernel.get(this, "attrHostName", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInnerIp() { return software.amazon.jsii.Kernel.get(this, "attrInnerIp", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstanceId() { return software.amazon.jsii.Kernel.get(this, "attrInstanceId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPrimaryNetworkInterfaceId() { return software.amazon.jsii.Kernel.get(this, "attrPrimaryNetworkInterfaceId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPrivateIp() { return software.amazon.jsii.Kernel.get(this, "attrPrivateIp", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPublicIp() { return software.amazon.jsii.Kernel.get(this, "attrPublicIp", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrSecurityGroupIds() { return software.amazon.jsii.Kernel.get(this, "attrSecurityGroupIds", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrZoneId() { return software.amazon.jsii.Kernel.get(this, "attrZoneId", 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 getSourceInstanceId() { return software.amazon.jsii.Kernel.get(this, "sourceInstanceId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setSourceInstanceId(final @org.jetbrains.annotations.NotNull java.lang.String value) { software.amazon.jsii.Kernel.set(this, "sourceInstanceId", java.util.Objects.requireNonNull(value, "sourceInstanceId is required")); } /** */ public void setSourceInstanceId(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "sourceInstanceId", java.util.Objects.requireNonNull(value, "sourceInstanceId is required")); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getBackendServerWeight() { return software.amazon.jsii.Kernel.get(this, "backendServerWeight", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setBackendServerWeight(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "backendServerWeight", value); } /** */ public void setBackendServerWeight(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "backendServerWeight", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getDeletionProtection() { return software.amazon.jsii.Kernel.get(this, "deletionProtection", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setDeletionProtection(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) { software.amazon.jsii.Kernel.set(this, "deletionProtection", value); } /** */ public void setDeletionProtection(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "deletionProtection", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getDescription() { return software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setDescription(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "description", value); } /** */ public void setDescription(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "description", 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.ecs.RosInstanceClone.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.ecs.RosInstanceClone.DiskMappingsProperty; received ") .append(__val_ac66f0.getClass()).toString()); } } } software.amazon.jsii.Kernel.set(this, "diskMappings", 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 getInstanceChargeType() { return software.amazon.jsii.Kernel.get(this, "instanceChargeType", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setInstanceChargeType(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "instanceChargeType", value); } /** */ public void setInstanceChargeType(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "instanceChargeType", 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 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 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 getLoadBalancerIdToAttach() { return software.amazon.jsii.Kernel.get(this, "loadBalancerIdToAttach", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setLoadBalancerIdToAttach(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "loadBalancerIdToAttach", value); } /** */ public void setLoadBalancerIdToAttach(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "loadBalancerIdToAttach", 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 getPeriod() { return software.amazon.jsii.Kernel.get(this, "period", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setPeriod(final @org.jetbrains.annotations.Nullable java.lang.Number value) { software.amazon.jsii.Kernel.set(this, "period", value); } /** */ public void setPeriod(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "period", 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 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.String 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 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.util.List getTags() { return java.util.Optional.ofNullable((java.util.List)(software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.ecs.RosInstanceClone.TagsProperty.class))))).map(java.util.Collections::unmodifiableList).orElse(null); } /** */ public void setTags(final @org.jetbrains.annotations.Nullable java.util.List value) { software.amazon.jsii.Kernel.set(this, "tags", value); } /** */ public @org.jetbrains.annotations.Nullable java.lang.Object getZoneId() { return software.amazon.jsii.Kernel.get(this, "zoneId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** */ public void setZoneId(final @org.jetbrains.annotations.Nullable java.lang.String value) { software.amazon.jsii.Kernel.set(this, "zoneId", value); } /** */ public void setZoneId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) { software.amazon.jsii.Kernel.set(this, "zoneId", value); } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ecs.$Module.class, fqn = "@alicloud/ros-cdk-ecs.RosInstanceClone.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) @org.jetbrains.annotations.NotNull java.lang.Object getSize(); /** */ @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 getPerformanceLevel() { 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 size; java.lang.Object category; java.lang.Object description; java.lang.Object device; java.lang.Object diskName; java.lang.Object performanceLevel; java.lang.Object snapshotId; /** * Sets the value of {@link DiskMappingsProperty#getSize} * @param size the value to be set. This parameter is required. * @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. This parameter is required. * @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#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#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#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 size; 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 performanceLevel; 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.size = software.amazon.jsii.Kernel.get(this, "size", 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.performanceLevel = software.amazon.jsii.Kernel.get(this, "performanceLevel", 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.size = java.util.Objects.requireNonNull(builder.size, "size is required"); this.category = builder.category; this.description = builder.description; this.device = builder.device; this.diskName = builder.diskName; this.performanceLevel = builder.performanceLevel; this.snapshotId = builder.snapshotId; } @Override public final java.lang.Object getSize() { return this.size; } @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 getPerformanceLevel() { return this.performanceLevel; } @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(); data.set("size", om.valueToTree(this.getSize())); 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.getPerformanceLevel() != null) { data.set("performanceLevel", om.valueToTree(this.getPerformanceLevel())); } 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-ecs.RosInstanceClone.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 (!size.equals(that.size)) 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.performanceLevel != null ? !this.performanceLevel.equals(that.performanceLevel) : that.performanceLevel != null) return false; return this.snapshotId != null ? this.snapshotId.equals(that.snapshotId) : that.snapshotId == null; } @Override public final int hashCode() { int result = this.size.hashCode(); 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.performanceLevel != null ? this.performanceLevel.hashCode() : 0); result = 31 * result + (this.snapshotId != null ? this.snapshotId.hashCode() : 0); return result; } } } /** */ @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ecs.$Module.class, fqn = "@alicloud/ros-cdk-ecs.RosInstanceClone.TagsProperty") @software.amazon.jsii.Jsii.Proxy(TagsProperty.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static interface TagsProperty 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 TagsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link TagsProperty} */ @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 TagsProperty#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 TagsProperty#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 TagsProperty#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 TagsProperty#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 TagsProperty} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public TagsProperty build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link TagsProperty} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TagsProperty { 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-ecs.RosInstanceClone.TagsProperty")); 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; TagsProperty.Jsii$Proxy that = (TagsProperty.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.ecs.RosInstanceClone}. */ 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.ecs.RosInstanceCloneProps.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.ecs.RosInstanceCloneProps.Builder(); } /** * @return {@code this} * @param sourceInstanceId This parameter is required. */ public Builder sourceInstanceId(final java.lang.String sourceInstanceId) { this.props.sourceInstanceId(sourceInstanceId); return this; } /** * @return {@code this} * @param sourceInstanceId This parameter is required. */ public Builder sourceInstanceId(final com.aliyun.ros.cdk.core.IResolvable sourceInstanceId) { this.props.sourceInstanceId(sourceInstanceId); return this; } /** * @return {@code this} * @param backendServerWeight This parameter is required. */ public Builder backendServerWeight(final java.lang.Number backendServerWeight) { this.props.backendServerWeight(backendServerWeight); return this; } /** * @return {@code this} * @param backendServerWeight This parameter is required. */ public Builder backendServerWeight(final com.aliyun.ros.cdk.core.IResolvable backendServerWeight) { this.props.backendServerWeight(backendServerWeight); return this; } /** * @return {@code this} * @param deletionProtection This parameter is required. */ public Builder deletionProtection(final java.lang.Boolean deletionProtection) { this.props.deletionProtection(deletionProtection); return this; } /** * @return {@code this} * @param deletionProtection This parameter is required. */ public Builder deletionProtection(final com.aliyun.ros.cdk.core.IResolvable deletionProtection) { this.props.deletionProtection(deletionProtection); return this; } /** * @return {@code this} * @param description This parameter is required. */ public Builder description(final java.lang.String description) { this.props.description(description); return this; } /** * @return {@code this} * @param description This parameter is required. */ public Builder description(final com.aliyun.ros.cdk.core.IResolvable description) { this.props.description(description); 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 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 instanceChargeType This parameter is required. */ public Builder instanceChargeType(final java.lang.String instanceChargeType) { this.props.instanceChargeType(instanceChargeType); return this; } /** * @return {@code this} * @param instanceChargeType This parameter is required. */ public Builder instanceChargeType(final com.aliyun.ros.cdk.core.IResolvable instanceChargeType) { this.props.instanceChargeType(instanceChargeType); 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 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 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 loadBalancerIdToAttach This parameter is required. */ public Builder loadBalancerIdToAttach(final java.lang.String loadBalancerIdToAttach) { this.props.loadBalancerIdToAttach(loadBalancerIdToAttach); return this; } /** * @return {@code this} * @param loadBalancerIdToAttach This parameter is required. */ public Builder loadBalancerIdToAttach(final com.aliyun.ros.cdk.core.IResolvable loadBalancerIdToAttach) { this.props.loadBalancerIdToAttach(loadBalancerIdToAttach); 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 period This parameter is required. */ public Builder period(final java.lang.Number period) { this.props.period(period); return this; } /** * @return {@code this} * @param period This parameter is required. */ public Builder period(final com.aliyun.ros.cdk.core.IResolvable period) { this.props.period(period); 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 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.String 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 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 tags This parameter is required. */ public Builder tags(final java.util.List tags) { this.props.tags(tags); return this; } /** * @return {@code this} * @param zoneId This parameter is required. */ public Builder zoneId(final java.lang.String zoneId) { this.props.zoneId(zoneId); return this; } /** * @return {@code this} * @param zoneId This parameter is required. */ public Builder zoneId(final com.aliyun.ros.cdk.core.IResolvable zoneId) { this.props.zoneId(zoneId); return this; } /** * @return a newly built instance of {@link com.aliyun.ros.cdk.ecs.RosInstanceClone}. */ @Override public com.aliyun.ros.cdk.ecs.RosInstanceClone build() { return new com.aliyun.ros.cdk.ecs.RosInstanceClone( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy