com.aliyun.ros.cdk.ecs.RosInstance Maven / Gradle / Ivy
package com.aliyun.ros.cdk.ecs;
/**
* This class is a base encapsulation around the ROS resource type ALIYUN::ECS::Instance
, which is used to create an Elastic Compute Service (ECS) instance.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-08-22T08:56:20.146Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ecs.$Module.class, fqn = "@alicloud/ros-cdk-ecs.RosInstance")
public class RosInstance extends com.aliyun.ros.cdk.core.RosResource {
protected RosInstance(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected RosInstance(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
ROS_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(com.aliyun.ros.cdk.ecs.RosInstance.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 RosInstance(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.RosInstanceProps 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 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.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "instanceType", java.util.Objects.requireNonNull(value, "instanceType is required"));
}
/**
*/
public void setInstanceType(final @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "instanceType", java.util.Objects.requireNonNull(value, "instanceType is required"));
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getAffinity() {
return software.amazon.jsii.Kernel.get(this, "affinity", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setAffinity(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "affinity", value);
}
/**
*/
public void setAffinity(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "affinity", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getAllocatePublicIp() {
return software.amazon.jsii.Kernel.get(this, "allocatePublicIp", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setAllocatePublicIp(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "allocatePublicIp", value);
}
/**
*/
public void setAllocatePublicIp(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "allocatePublicIp", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getAutoRenew() {
return software.amazon.jsii.Kernel.get(this, "autoRenew", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setAutoRenew(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "autoRenew", value);
}
/**
*/
public void setAutoRenew(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "autoRenew", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getAutoRenewPeriod() {
return software.amazon.jsii.Kernel.get(this, "autoRenewPeriod", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setAutoRenewPeriod(final @org.jetbrains.annotations.Nullable java.lang.Number value) {
software.amazon.jsii.Kernel.set(this, "autoRenewPeriod", value);
}
/**
*/
public void setAutoRenewPeriod(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "autoRenewPeriod", value);
}
/**
*/
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 getDedicatedHostId() {
return software.amazon.jsii.Kernel.get(this, "dedicatedHostId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setDedicatedHostId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "dedicatedHostId", value);
}
/**
*/
public void setDedicatedHostId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "dedicatedHostId", 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 getDeploymentSetGroupNo() {
return software.amazon.jsii.Kernel.get(this, "deploymentSetGroupNo", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setDeploymentSetGroupNo(final @org.jetbrains.annotations.Nullable java.lang.Number value) {
software.amazon.jsii.Kernel.set(this, "deploymentSetGroupNo", value);
}
/**
*/
public void setDeploymentSetGroupNo(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "deploymentSetGroupNo", 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 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.RosInstance.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.RosInstance.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 getHttpEndpoint() {
return software.amazon.jsii.Kernel.get(this, "httpEndpoint", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setHttpEndpoint(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "httpEndpoint", value);
}
/**
*/
public void setHttpEndpoint(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "httpEndpoint", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getHttpTokens() {
return software.amazon.jsii.Kernel.get(this, "httpTokens", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setHttpTokens(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "httpTokens", value);
}
/**
*/
public void setHttpTokens(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "httpTokens", 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 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 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 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 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 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 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 getPeriodUnit() {
return software.amazon.jsii.Kernel.get(this, "periodUnit", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setPeriodUnit(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "periodUnit", value);
}
/**
*/
public void setPeriodUnit(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "periodUnit", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getPrivateIpAddress() {
return software.amazon.jsii.Kernel.get(this, "privateIpAddress", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setPrivateIpAddress(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "privateIpAddress", value);
}
/**
*/
public void setPrivateIpAddress(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "privateIpAddress", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getPrivatePoolOptions() {
return software.amazon.jsii.Kernel.get(this, "privatePoolOptions", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setPrivatePoolOptions(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "privatePoolOptions", value);
}
/**
*/
public void setPrivatePoolOptions(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.ecs.RosInstance.PrivatePoolOptionsProperty value) {
software.amazon.jsii.Kernel.set(this, "privatePoolOptions", 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 getSecurityEnhancementStrategy() {
return software.amazon.jsii.Kernel.get(this, "securityEnhancementStrategy", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSecurityEnhancementStrategy(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "securityEnhancementStrategy", value);
}
/**
*/
public void setSecurityEnhancementStrategy(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "securityEnhancementStrategy", 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 getSecurityGroupIds() {
return software.amazon.jsii.Kernel.get(this, "securityGroupIds", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSecurityGroupIds(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "securityGroupIds", value);
}
/**
*/
public void setSecurityGroupIds(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 java.lang.String)
&& !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable)
&& !(__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: java.lang.String, com.aliyun.ros.cdk.core.IResolvable; received ")
.append(__val_ac66f0.getClass()).toString());
}
}
}
software.amazon.jsii.Kernel.set(this, "securityGroupIds", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getSpotDuration() {
return software.amazon.jsii.Kernel.get(this, "spotDuration", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSpotDuration(final @org.jetbrains.annotations.Nullable java.lang.Number value) {
software.amazon.jsii.Kernel.set(this, "spotDuration", value);
}
/**
*/
public void setSpotDuration(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "spotDuration", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getSpotInterruptionBehavior() {
return software.amazon.jsii.Kernel.get(this, "spotInterruptionBehavior", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSpotInterruptionBehavior(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "spotInterruptionBehavior", value);
}
/**
*/
public void setSpotInterruptionBehavior(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "spotInterruptionBehavior", 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.lang.Object getStorageSetId() {
return software.amazon.jsii.Kernel.get(this, "storageSetId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setStorageSetId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "storageSetId", value);
}
/**
*/
public void setStorageSetId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "storageSetId", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getStorageSetPartitionNumber() {
return software.amazon.jsii.Kernel.get(this, "storageSetPartitionNumber", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setStorageSetPartitionNumber(final @org.jetbrains.annotations.Nullable java.lang.Number value) {
software.amazon.jsii.Kernel.set(this, "storageSetPartitionNumber", value);
}
/**
*/
public void setStorageSetPartitionNumber(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "storageSetPartitionNumber", 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 getSystemDiskDescription() {
return software.amazon.jsii.Kernel.get(this, "systemDiskDescription", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSystemDiskDescription(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "systemDiskDescription", value);
}
/**
*/
public void setSystemDiskDescription(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "systemDiskDescription", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getSystemDiskDiskName() {
return software.amazon.jsii.Kernel.get(this, "systemDiskDiskName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setSystemDiskDiskName(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "systemDiskDiskName", value);
}
/**
*/
public void setSystemDiskDiskName(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "systemDiskDiskName", 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.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.RosInstance.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 getTenancy() {
return software.amazon.jsii.Kernel.get(this, "tenancy", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setTenancy(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "tenancy", value);
}
/**
*/
public void setTenancy(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "tenancy", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getUseAdditionalService() {
return software.amazon.jsii.Kernel.get(this, "useAdditionalService", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setUseAdditionalService(final @org.jetbrains.annotations.Nullable java.lang.Boolean value) {
software.amazon.jsii.Kernel.set(this, "useAdditionalService", value);
}
/**
*/
public void setUseAdditionalService(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "useAdditionalService", 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);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getVpcId() {
return software.amazon.jsii.Kernel.get(this, "vpcId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setVpcId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "vpcId", value);
}
/**
*/
public void setVpcId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "vpcId", value);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getVSwitchId() {
return software.amazon.jsii.Kernel.get(this, "vSwitchId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setVSwitchId(final @org.jetbrains.annotations.Nullable java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "vSwitchId", value);
}
/**
*/
public void setVSwitchId(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "vSwitchId", 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);
}
/**
*/
public @org.jetbrains.annotations.Nullable java.lang.Object getZoneIds() {
return software.amazon.jsii.Kernel.get(this, "zoneIds", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
*/
public void setZoneIds(final @org.jetbrains.annotations.Nullable com.aliyun.ros.cdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "zoneIds", value);
}
/**
*/
public void setZoneIds(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 java.lang.String)
&& !(__val_ac66f0 instanceof com.aliyun.ros.cdk.core.IResolvable)
&& !(__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: java.lang.String, com.aliyun.ros.cdk.core.IResolvable; received ")
.append(__val_ac66f0.getClass()).toString());
}
}
}
software.amazon.jsii.Kernel.set(this, "zoneIds", value);
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ecs.$Module.class, fqn = "@alicloud/ros-cdk-ecs.RosInstance.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.RosInstance.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.RosInstance.PrivatePoolOptionsProperty")
@software.amazon.jsii.Jsii.Proxy(PrivatePoolOptionsProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface PrivatePoolOptionsProperty extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getIdentity() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getMatchCriteria() {
return null;
}
/**
* @return a {@link Builder} of {@link PrivatePoolOptionsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link PrivatePoolOptionsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
java.lang.Object identity;
java.lang.Object matchCriteria;
/**
* Sets the value of {@link PrivatePoolOptionsProperty#getIdentity}
* @param identity the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder identity(java.lang.String identity) {
this.identity = identity;
return this;
}
/**
* Sets the value of {@link PrivatePoolOptionsProperty#getIdentity}
* @param identity the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder identity(com.aliyun.ros.cdk.core.IResolvable identity) {
this.identity = identity;
return this;
}
/**
* Sets the value of {@link PrivatePoolOptionsProperty#getMatchCriteria}
* @param matchCriteria the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder matchCriteria(java.lang.String matchCriteria) {
this.matchCriteria = matchCriteria;
return this;
}
/**
* Sets the value of {@link PrivatePoolOptionsProperty#getMatchCriteria}
* @param matchCriteria the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder matchCriteria(com.aliyun.ros.cdk.core.IResolvable matchCriteria) {
this.matchCriteria = matchCriteria;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link PrivatePoolOptionsProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public PrivatePoolOptionsProperty build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link PrivatePoolOptionsProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements PrivatePoolOptionsProperty {
private final java.lang.Object identity;
private final java.lang.Object matchCriteria;
/**
* 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.identity = software.amazon.jsii.Kernel.get(this, "identity", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.matchCriteria = software.amazon.jsii.Kernel.get(this, "matchCriteria", 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.identity = builder.identity;
this.matchCriteria = builder.matchCriteria;
}
@Override
public final java.lang.Object getIdentity() {
return this.identity;
}
@Override
public final java.lang.Object getMatchCriteria() {
return this.matchCriteria;
}
@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.getIdentity() != null) {
data.set("identity", om.valueToTree(this.getIdentity()));
}
if (this.getMatchCriteria() != null) {
data.set("matchCriteria", om.valueToTree(this.getMatchCriteria()));
}
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.RosInstance.PrivatePoolOptionsProperty"));
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;
PrivatePoolOptionsProperty.Jsii$Proxy that = (PrivatePoolOptionsProperty.Jsii$Proxy) o;
if (this.identity != null ? !this.identity.equals(that.identity) : that.identity != null) return false;
return this.matchCriteria != null ? this.matchCriteria.equals(that.matchCriteria) : that.matchCriteria == null;
}
@Override
public final int hashCode() {
int result = this.identity != null ? this.identity.hashCode() : 0;
result = 31 * result + (this.matchCriteria != null ? this.matchCriteria.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ecs.$Module.class, fqn = "@alicloud/ros-cdk-ecs.RosInstance.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.RosInstance.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.RosInstance}.
*/
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.RosInstanceProps.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.RosInstanceProps.Builder();
}
/**
* @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 affinity This parameter is required.
*/
public Builder affinity(final java.lang.String affinity) {
this.props.affinity(affinity);
return this;
}
/**
* @return {@code this}
* @param affinity This parameter is required.
*/
public Builder affinity(final com.aliyun.ros.cdk.core.IResolvable affinity) {
this.props.affinity(affinity);
return this;
}
/**
* @return {@code this}
* @param allocatePublicIp This parameter is required.
*/
public Builder allocatePublicIp(final java.lang.Boolean allocatePublicIp) {
this.props.allocatePublicIp(allocatePublicIp);
return this;
}
/**
* @return {@code this}
* @param allocatePublicIp This parameter is required.
*/
public Builder allocatePublicIp(final com.aliyun.ros.cdk.core.IResolvable allocatePublicIp) {
this.props.allocatePublicIp(allocatePublicIp);
return this;
}
/**
* @return {@code this}
* @param autoRenew This parameter is required.
*/
public Builder autoRenew(final java.lang.String autoRenew) {
this.props.autoRenew(autoRenew);
return this;
}
/**
* @return {@code this}
* @param autoRenew This parameter is required.
*/
public Builder autoRenew(final com.aliyun.ros.cdk.core.IResolvable autoRenew) {
this.props.autoRenew(autoRenew);
return this;
}
/**
* @return {@code this}
* @param autoRenewPeriod This parameter is required.
*/
public Builder autoRenewPeriod(final java.lang.Number autoRenewPeriod) {
this.props.autoRenewPeriod(autoRenewPeriod);
return this;
}
/**
* @return {@code this}
* @param autoRenewPeriod This parameter is required.
*/
public Builder autoRenewPeriod(final com.aliyun.ros.cdk.core.IResolvable autoRenewPeriod) {
this.props.autoRenewPeriod(autoRenewPeriod);
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 dedicatedHostId This parameter is required.
*/
public Builder dedicatedHostId(final java.lang.String dedicatedHostId) {
this.props.dedicatedHostId(dedicatedHostId);
return this;
}
/**
* @return {@code this}
* @param dedicatedHostId This parameter is required.
*/
public Builder dedicatedHostId(final com.aliyun.ros.cdk.core.IResolvable dedicatedHostId) {
this.props.dedicatedHostId(dedicatedHostId);
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 deploymentSetGroupNo This parameter is required.
*/
public Builder deploymentSetGroupNo(final java.lang.Number deploymentSetGroupNo) {
this.props.deploymentSetGroupNo(deploymentSetGroupNo);
return this;
}
/**
* @return {@code this}
* @param deploymentSetGroupNo This parameter is required.
*/
public Builder deploymentSetGroupNo(final com.aliyun.ros.cdk.core.IResolvable deploymentSetGroupNo) {
this.props.deploymentSetGroupNo(deploymentSetGroupNo);
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 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 extends java.lang.Object> 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 httpEndpoint This parameter is required.
*/
public Builder httpEndpoint(final java.lang.String httpEndpoint) {
this.props.httpEndpoint(httpEndpoint);
return this;
}
/**
* @return {@code this}
* @param httpEndpoint This parameter is required.
*/
public Builder httpEndpoint(final com.aliyun.ros.cdk.core.IResolvable httpEndpoint) {
this.props.httpEndpoint(httpEndpoint);
return this;
}
/**
* @return {@code this}
* @param httpTokens This parameter is required.
*/
public Builder httpTokens(final java.lang.String httpTokens) {
this.props.httpTokens(httpTokens);
return this;
}
/**
* @return {@code this}
* @param httpTokens This parameter is required.
*/
public Builder httpTokens(final com.aliyun.ros.cdk.core.IResolvable httpTokens) {
this.props.httpTokens(httpTokens);
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 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 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 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 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 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 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 periodUnit This parameter is required.
*/
public Builder periodUnit(final java.lang.String periodUnit) {
this.props.periodUnit(periodUnit);
return this;
}
/**
* @return {@code this}
* @param periodUnit This parameter is required.
*/
public Builder periodUnit(final com.aliyun.ros.cdk.core.IResolvable periodUnit) {
this.props.periodUnit(periodUnit);
return this;
}
/**
* @return {@code this}
* @param privateIpAddress This parameter is required.
*/
public Builder privateIpAddress(final java.lang.String privateIpAddress) {
this.props.privateIpAddress(privateIpAddress);
return this;
}
/**
* @return {@code this}
* @param privateIpAddress This parameter is required.
*/
public Builder privateIpAddress(final com.aliyun.ros.cdk.core.IResolvable privateIpAddress) {
this.props.privateIpAddress(privateIpAddress);
return this;
}
/**
* @return {@code this}
* @param privatePoolOptions This parameter is required.
*/
public Builder privatePoolOptions(final com.aliyun.ros.cdk.core.IResolvable privatePoolOptions) {
this.props.privatePoolOptions(privatePoolOptions);
return this;
}
/**
* @return {@code this}
* @param privatePoolOptions This parameter is required.
*/
public Builder privatePoolOptions(final com.aliyun.ros.cdk.ecs.RosInstance.PrivatePoolOptionsProperty privatePoolOptions) {
this.props.privatePoolOptions(privatePoolOptions);
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 securityEnhancementStrategy This parameter is required.
*/
public Builder securityEnhancementStrategy(final java.lang.String securityEnhancementStrategy) {
this.props.securityEnhancementStrategy(securityEnhancementStrategy);
return this;
}
/**
* @return {@code this}
* @param securityEnhancementStrategy This parameter is required.
*/
public Builder securityEnhancementStrategy(final com.aliyun.ros.cdk.core.IResolvable securityEnhancementStrategy) {
this.props.securityEnhancementStrategy(securityEnhancementStrategy);
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 securityGroupIds This parameter is required.
*/
public Builder securityGroupIds(final com.aliyun.ros.cdk.core.IResolvable securityGroupIds) {
this.props.securityGroupIds(securityGroupIds);
return this;
}
/**
* @return {@code this}
* @param securityGroupIds This parameter is required.
*/
public Builder securityGroupIds(final java.util.List extends java.lang.Object> securityGroupIds) {
this.props.securityGroupIds(securityGroupIds);
return this;
}
/**
* @return {@code this}
* @param spotDuration This parameter is required.
*/
public Builder spotDuration(final java.lang.Number spotDuration) {
this.props.spotDuration(spotDuration);
return this;
}
/**
* @return {@code this}
* @param spotDuration This parameter is required.
*/
public Builder spotDuration(final com.aliyun.ros.cdk.core.IResolvable spotDuration) {
this.props.spotDuration(spotDuration);
return this;
}
/**
* @return {@code this}
* @param spotInterruptionBehavior This parameter is required.
*/
public Builder spotInterruptionBehavior(final java.lang.String spotInterruptionBehavior) {
this.props.spotInterruptionBehavior(spotInterruptionBehavior);
return this;
}
/**
* @return {@code this}
* @param spotInterruptionBehavior This parameter is required.
*/
public Builder spotInterruptionBehavior(final com.aliyun.ros.cdk.core.IResolvable spotInterruptionBehavior) {
this.props.spotInterruptionBehavior(spotInterruptionBehavior);
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 storageSetId This parameter is required.
*/
public Builder storageSetId(final java.lang.String storageSetId) {
this.props.storageSetId(storageSetId);
return this;
}
/**
* @return {@code this}
* @param storageSetId This parameter is required.
*/
public Builder storageSetId(final com.aliyun.ros.cdk.core.IResolvable storageSetId) {
this.props.storageSetId(storageSetId);
return this;
}
/**
* @return {@code this}
* @param storageSetPartitionNumber This parameter is required.
*/
public Builder storageSetPartitionNumber(final java.lang.Number storageSetPartitionNumber) {
this.props.storageSetPartitionNumber(storageSetPartitionNumber);
return this;
}
/**
* @return {@code this}
* @param storageSetPartitionNumber This parameter is required.
*/
public Builder storageSetPartitionNumber(final com.aliyun.ros.cdk.core.IResolvable storageSetPartitionNumber) {
this.props.storageSetPartitionNumber(storageSetPartitionNumber);
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 systemDiskDescription This parameter is required.
*/
public Builder systemDiskDescription(final java.lang.String systemDiskDescription) {
this.props.systemDiskDescription(systemDiskDescription);
return this;
}
/**
* @return {@code this}
* @param systemDiskDescription This parameter is required.
*/
public Builder systemDiskDescription(final com.aliyun.ros.cdk.core.IResolvable systemDiskDescription) {
this.props.systemDiskDescription(systemDiskDescription);
return this;
}
/**
* @return {@code this}
* @param systemDiskDiskName This parameter is required.
*/
public Builder systemDiskDiskName(final java.lang.String systemDiskDiskName) {
this.props.systemDiskDiskName(systemDiskDiskName);
return this;
}
/**
* @return {@code this}
* @param systemDiskDiskName This parameter is required.
*/
public Builder systemDiskDiskName(final com.aliyun.ros.cdk.core.IResolvable systemDiskDiskName) {
this.props.systemDiskDiskName(systemDiskDiskName);
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 tags This parameter is required.
*/
public Builder tags(final java.util.List extends com.aliyun.ros.cdk.ecs.RosInstance.TagsProperty> tags) {
this.props.tags(tags);
return this;
}
/**
* @return {@code this}
* @param tenancy This parameter is required.
*/
public Builder tenancy(final java.lang.String tenancy) {
this.props.tenancy(tenancy);
return this;
}
/**
* @return {@code this}
* @param tenancy This parameter is required.
*/
public Builder tenancy(final com.aliyun.ros.cdk.core.IResolvable tenancy) {
this.props.tenancy(tenancy);
return this;
}
/**
* @return {@code this}
* @param useAdditionalService This parameter is required.
*/
public Builder useAdditionalService(final java.lang.Boolean useAdditionalService) {
this.props.useAdditionalService(useAdditionalService);
return this;
}
/**
* @return {@code this}
* @param useAdditionalService This parameter is required.
*/
public Builder useAdditionalService(final com.aliyun.ros.cdk.core.IResolvable useAdditionalService) {
this.props.useAdditionalService(useAdditionalService);
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 {@code this}
* @param vpcId This parameter is required.
*/
public Builder vpcId(final java.lang.String vpcId) {
this.props.vpcId(vpcId);
return this;
}
/**
* @return {@code this}
* @param vpcId This parameter is required.
*/
public Builder vpcId(final com.aliyun.ros.cdk.core.IResolvable vpcId) {
this.props.vpcId(vpcId);
return this;
}
/**
* @return {@code this}
* @param vSwitchId This parameter is required.
*/
public Builder vSwitchId(final java.lang.String vSwitchId) {
this.props.vSwitchId(vSwitchId);
return this;
}
/**
* @return {@code this}
* @param vSwitchId This parameter is required.
*/
public Builder vSwitchId(final com.aliyun.ros.cdk.core.IResolvable vSwitchId) {
this.props.vSwitchId(vSwitchId);
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 {@code this}
* @param zoneIds This parameter is required.
*/
public Builder zoneIds(final com.aliyun.ros.cdk.core.IResolvable zoneIds) {
this.props.zoneIds(zoneIds);
return this;
}
/**
* @return {@code this}
* @param zoneIds This parameter is required.
*/
public Builder zoneIds(final java.util.List extends java.lang.Object> zoneIds) {
this.props.zoneIds(zoneIds);
return this;
}
/**
* @return a newly built instance of {@link com.aliyun.ros.cdk.ecs.RosInstance}.
*/
@Override
public com.aliyun.ros.cdk.ecs.RosInstance build() {
return new com.aliyun.ros.cdk.ecs.RosInstance(
this.scope,
this.id,
this.props.build(),
this.enableResourcePropertyConstraint
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy