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

com.aliyun.ros.cdk.ens.Instance Maven / Gradle / Ivy

package com.aliyun.ros.cdk.ens;

/**
 * A ROS resource type:  `ALIYUN::ENS::Instance`.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-21T09:47:43.358Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ens.$Module.class, fqn = "@alicloud/ros-cdk-ens.Instance")
public class Instance extends com.aliyun.ros.cdk.core.Resource {

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

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

    /**
     * Create a new `ALIYUN::ENS::Instance`.
     * 

* Param scope - scope in which this resource is defined * Param id - scoped id of the resource * Param props - resource properties *

* @param scope This parameter is required. * @param id This parameter is required. * @param props This parameter is required. * @param enableResourcePropertyConstraint */ public Instance(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.ens.InstanceProps props, final @org.jetbrains.annotations.Nullable 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"), enableResourcePropertyConstraint }); } /** * Create a new `ALIYUN::ENS::Instance`. *

* Param scope - scope in which this resource is defined * Param id - scoped id of the resource * Param props - resource properties *

* @param scope This parameter is required. * @param id This parameter is required. * @param props This parameter is required. */ public Instance(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.ens.InstanceProps props) { 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") }); } /** * Attribute AutoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrAutoRenew() { return software.amazon.jsii.Kernel.get(this, "attrAutoRenew", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute AutoRenewPeriod: The time period of auto renew. *

* it will take effect.It could be 1, 2, 3, 6, 12. Default value is 1. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrAutoRenewPeriod() { return software.amazon.jsii.Kernel.get(this, "attrAutoRenewPeriod", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute DataDiskSize: Disk size of the system disk, range from 20 to 500 GB. *

* If you specify with your own image, make sure the system disk size bigger than image size. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrDataDiskSize() { return software.amazon.jsii.Kernel.get(this, "attrDataDiskSize", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute EnsRegionId: ENS Region Id. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrEnsRegionId() { return software.amazon.jsii.Kernel.get(this, "attrEnsRegionId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute HostName: The hostname of the instance. */ 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)); } /** * Attribute ImageId: Image ID to create ens instance. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrImageId() { return software.amazon.jsii.Kernel.get(this, "attrImageId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute InstanceId: InstanceId. */ 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)); } /** * Attribute InstanceName: Instance name. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstanceName() { return software.amazon.jsii.Kernel.get(this, "attrInstanceName", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute InstanceType: ENS instance supported instance type, make sure it should be correct. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInstanceType() { return software.amazon.jsii.Kernel.get(this, "attrInstanceType", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute InternetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrInternetChargeType() { return software.amazon.jsii.Kernel.get(this, "attrInternetChargeType", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute IpType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrIpType() { return software.amazon.jsii.Kernel.get(this, "attrIpType", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute KeyPairName: SSH key pair name. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrKeyPairName() { return software.amazon.jsii.Kernel.get(this, "attrKeyPairName", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute PaymentType: Payment Type.only support value Subscription. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPaymentType() { return software.amazon.jsii.Kernel.get(this, "attrPaymentType", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute Period: Prepaid time period. *

* Unit is month, it could be from 1 to 9 or 12. Default value is 1. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPeriod() { return software.amazon.jsii.Kernel.get(this, "attrPeriod", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute PrivateIpAddress: Private IP for the instance created. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPrivateIpAddress() { return software.amazon.jsii.Kernel.get(this, "attrPrivateIpAddress", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute PrivateIps: Private IP. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPrivateIps() { return software.amazon.jsii.Kernel.get(this, "attrPrivateIps", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute PublicIps: Public IP. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrPublicIps() { return software.amazon.jsii.Kernel.get(this, "attrPublicIps", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute Quantity: number of instances to create. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrQuantity() { return software.amazon.jsii.Kernel.get(this, "attrQuantity", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute SystemDiskSize: Disk size of the system disk. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrSystemDiskSize() { return software.amazon.jsii.Kernel.get(this, "attrSystemDiskSize", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute UniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time. *

* The sequential suffix ranges from 001 to 999. Valid values: true false Default value: false. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrUniqueSuffix() { return software.amazon.jsii.Kernel.get(this, "attrUniqueSuffix", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute UserData: User data to pass to instance. *

* [1, 16KB] characters.User data should not be base64 encoded. If you want to pass base64 encoded string to the property, use function Fn::Base64Decode to decode the base64 string first. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrUserData() { return software.amazon.jsii.Kernel.get(this, "attrUserData", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * Attribute VSwitchId: The vSwitch Id to create ens instance. */ public @org.jetbrains.annotations.NotNull com.aliyun.ros.cdk.core.IResolvable getAttrVSwitchId() { return software.amazon.jsii.Kernel.get(this, "attrVSwitchId", software.amazon.jsii.NativeType.forClass(com.aliyun.ros.cdk.core.IResolvable.class)); } /** * A fluent builder for {@link com.aliyun.ros.cdk.ens.Instance}. */ public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. * @param enableResourcePropertyConstraint */ 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); } /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. */ public static Builder create(final com.aliyun.ros.cdk.core.Construct scope, final java.lang.String id) { return new Builder(scope, id, null); } 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.ens.InstanceProps.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.ens.InstanceProps.Builder(); } /** * Property dataDiskSize: Disk size of the system disk, range from 20 to 500 GB. *

* If you specify with your own image, make sure the system disk size bigger than image size. *

* @return {@code this} * @param dataDiskSize Property dataDiskSize: Disk size of the system disk, range from 20 to 500 GB. This parameter is required. */ public Builder dataDiskSize(final java.lang.Number dataDiskSize) { this.props.dataDiskSize(dataDiskSize); return this; } /** * Property dataDiskSize: Disk size of the system disk, range from 20 to 500 GB. *

* If you specify with your own image, make sure the system disk size bigger than image size. *

* @return {@code this} * @param dataDiskSize Property dataDiskSize: Disk size of the system disk, range from 20 to 500 GB. This parameter is required. */ public Builder dataDiskSize(final com.aliyun.ros.cdk.core.IResolvable dataDiskSize) { this.props.dataDiskSize(dataDiskSize); return this; } /** * Property ensRegionId: ENS Region Id. *

* @return {@code this} * @param ensRegionId Property ensRegionId: ENS Region Id. This parameter is required. */ public Builder ensRegionId(final java.lang.String ensRegionId) { this.props.ensRegionId(ensRegionId); return this; } /** * Property ensRegionId: ENS Region Id. *

* @return {@code this} * @param ensRegionId Property ensRegionId: ENS Region Id. This parameter is required. */ public Builder ensRegionId(final com.aliyun.ros.cdk.core.IResolvable ensRegionId) { this.props.ensRegionId(ensRegionId); return this; } /** * Property imageId: Image ID to create ens instance. *

* @return {@code this} * @param imageId Property imageId: Image ID to create ens instance. This parameter is required. */ public Builder imageId(final java.lang.String imageId) { this.props.imageId(imageId); return this; } /** * Property imageId: Image ID to create ens instance. *

* @return {@code this} * @param imageId Property imageId: Image ID to create ens instance. This parameter is required. */ public Builder imageId(final com.aliyun.ros.cdk.core.IResolvable imageId) { this.props.imageId(imageId); return this; } /** * Property instanceType: ENS instance supported instance type, make sure it should be correct. *

* @return {@code this} * @param instanceType Property instanceType: ENS instance supported instance type, make sure it should be correct. This parameter is required. */ public Builder instanceType(final java.lang.String instanceType) { this.props.instanceType(instanceType); return this; } /** * Property instanceType: ENS instance supported instance type, make sure it should be correct. *

* @return {@code this} * @param instanceType Property instanceType: ENS instance supported instance type, make sure it should be correct. This parameter is required. */ public Builder instanceType(final com.aliyun.ros.cdk.core.IResolvable instanceType) { this.props.instanceType(instanceType); return this; } /** * Property period: Prepaid time period. *

* Unit is month, it could be from 1 to 9 or 12. Default value is 1. *

* @return {@code this} * @param period Property period: Prepaid time period. This parameter is required. */ public Builder period(final java.lang.Number period) { this.props.period(period); return this; } /** * Property period: Prepaid time period. *

* Unit is month, it could be from 1 to 9 or 12. Default value is 1. *

* @return {@code this} * @param period Property period: Prepaid time period. This parameter is required. */ public Builder period(final com.aliyun.ros.cdk.core.IResolvable period) { this.props.period(period); return this; } /** * Property quantity: number of instances to create. *

* @return {@code this} * @param quantity Property quantity: number of instances to create. This parameter is required. */ public Builder quantity(final java.lang.Number quantity) { this.props.quantity(quantity); return this; } /** * Property quantity: number of instances to create. *

* @return {@code this} * @param quantity Property quantity: number of instances to create. This parameter is required. */ public Builder quantity(final com.aliyun.ros.cdk.core.IResolvable quantity) { this.props.quantity(quantity); return this; } /** * Property systemDiskSize: Disk size of the system disk. *

* @return {@code this} * @param systemDiskSize Property systemDiskSize: Disk size of the system disk. This parameter is required. */ public Builder systemDiskSize(final java.lang.Number systemDiskSize) { this.props.systemDiskSize(systemDiskSize); return this; } /** * Property systemDiskSize: Disk size of the system disk. *

* @return {@code this} * @param systemDiskSize Property systemDiskSize: Disk size of the system disk. This parameter is required. */ public Builder systemDiskSize(final com.aliyun.ros.cdk.core.IResolvable systemDiskSize) { this.props.systemDiskSize(systemDiskSize); return this; } /** * Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. *

* @return {@code this} * @param autoRenew Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. This parameter is required. */ public Builder autoRenew(final java.lang.String autoRenew) { this.props.autoRenew(autoRenew); return this; } /** * Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. *

* @return {@code this} * @param autoRenew Property autoRenew: Whether renew the fee automatically?it could be True,FalseDefault value is False. This parameter is required. */ public Builder autoRenew(final com.aliyun.ros.cdk.core.IResolvable autoRenew) { this.props.autoRenew(autoRenew); return this; } /** * Property autoRenewPeriod: The time period of auto renew. *

* it will take effect.It could be 1, 2, 3, 6, 12. Default value is 1. *

* @return {@code this} * @param autoRenewPeriod Property autoRenewPeriod: The time period of auto renew. This parameter is required. */ public Builder autoRenewPeriod(final java.lang.Number autoRenewPeriod) { this.props.autoRenewPeriod(autoRenewPeriod); return this; } /** * Property autoRenewPeriod: The time period of auto renew. *

* it will take effect.It could be 1, 2, 3, 6, 12. Default value is 1. *

* @return {@code this} * @param autoRenewPeriod Property autoRenewPeriod: The time period of auto renew. This parameter is required. */ public Builder autoRenewPeriod(final com.aliyun.ros.cdk.core.IResolvable autoRenewPeriod) { this.props.autoRenewPeriod(autoRenewPeriod); return this; } /** * Property hostName: The hostname of the instance. *

* @return {@code this} * @param hostName Property hostName: The hostname of the instance. This parameter is required. */ public Builder hostName(final java.lang.String hostName) { this.props.hostName(hostName); return this; } /** * Property hostName: The hostname of the instance. *

* @return {@code this} * @param hostName Property hostName: The hostname of the instance. This parameter is required. */ public Builder hostName(final com.aliyun.ros.cdk.core.IResolvable hostName) { this.props.hostName(hostName); return this; } /** * Property instanceName: Instance name. *

* @return {@code this} * @param instanceName Property instanceName: Instance name. This parameter is required. */ public Builder instanceName(final java.lang.String instanceName) { this.props.instanceName(instanceName); return this; } /** * Property instanceName: Instance name. *

* @return {@code this} * @param instanceName Property instanceName: Instance name. This parameter is required. */ public Builder instanceName(final com.aliyun.ros.cdk.core.IResolvable instanceName) { this.props.instanceName(instanceName); return this; } /** * Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. *

* @return {@code this} * @param internetChargeType Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. This parameter is required. */ public Builder internetChargeType(final java.lang.String internetChargeType) { this.props.internetChargeType(internetChargeType); return this; } /** * Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. *

* @return {@code this} * @param internetChargeType Property internetChargeType: Instance Charge type.it could be 95BandwidthByMonth, PayByBandwidth4thMonth. This parameter is required. */ public Builder internetChargeType(final com.aliyun.ros.cdk.core.IResolvable internetChargeType) { this.props.internetChargeType(internetChargeType); return this; } /** * Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. *

* @return {@code this} * @param ipType Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. This parameter is required. */ public Builder ipType(final java.lang.String ipType) { this.props.ipType(ipType); return this; } /** * Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. *

* @return {@code this} * @param ipType Property ipType: ip type, It could be ipv4Andipv6,ipv4,ipv6.default value isi pv4. This parameter is required. */ public Builder ipType(final com.aliyun.ros.cdk.core.IResolvable ipType) { this.props.ipType(ipType); return this; } /** * Property keyPairName: SSH key pair name. *

* @return {@code this} * @param keyPairName Property keyPairName: SSH key pair name. This parameter is required. */ public Builder keyPairName(final java.lang.String keyPairName) { this.props.keyPairName(keyPairName); return this; } /** * Property keyPairName: SSH key pair name. *

* @return {@code this} * @param keyPairName Property keyPairName: SSH key pair name. This parameter is required. */ public Builder keyPairName(final com.aliyun.ros.cdk.core.IResolvable keyPairName) { this.props.keyPairName(keyPairName); return this; } /** * Property password: Password of created ens instance. *

* Must contain at least 3 types of special character, lower character, upper character, number. *

* @return {@code this} * @param password Property password: Password of created ens instance. This parameter is required. */ public Builder password(final java.lang.String password) { this.props.password(password); return this; } /** * Property password: Password of created ens instance. *

* Must contain at least 3 types of special character, lower character, upper character, number. *

* @return {@code this} * @param password Property password: Password of created ens instance. This parameter is required. */ public Builder password(final com.aliyun.ros.cdk.core.IResolvable password) { this.props.password(password); return this; } /** * Property paymentType: Payment Type.only support value Subscription. *

* @return {@code this} * @param paymentType Property paymentType: Payment Type.only support value Subscription. This parameter is required. */ public Builder paymentType(final java.lang.String paymentType) { this.props.paymentType(paymentType); return this; } /** * Property paymentType: Payment Type.only support value Subscription. *

* @return {@code this} * @param paymentType Property paymentType: Payment Type.only support value Subscription. This parameter is required. */ public Builder paymentType(final com.aliyun.ros.cdk.core.IResolvable paymentType) { this.props.paymentType(paymentType); return this; } /** * Property privateIpAddress: Private IP for the instance created. *

* @return {@code this} * @param privateIpAddress Property privateIpAddress: Private IP for the instance created. This parameter is required. */ public Builder privateIpAddress(final java.lang.String privateIpAddress) { this.props.privateIpAddress(privateIpAddress); return this; } /** * Property privateIpAddress: Private IP for the instance created. *

* @return {@code this} * @param privateIpAddress Property privateIpAddress: Private IP for the instance created. This parameter is required. */ public Builder privateIpAddress(final com.aliyun.ros.cdk.core.IResolvable privateIpAddress) { this.props.privateIpAddress(privateIpAddress); return this; } /** * Property uniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time. *

* The sequential suffix ranges from 001 to 999. Valid values: true false Default value: false. *

* @return {@code this} * @param uniqueSuffix Property uniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time. This parameter is required. */ public Builder uniqueSuffix(final java.lang.Boolean uniqueSuffix) { this.props.uniqueSuffix(uniqueSuffix); return this; } /** * Property uniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time. *

* The sequential suffix ranges from 001 to 999. Valid values: true false Default value: false. *

* @return {@code this} * @param uniqueSuffix Property uniqueSuffix: Specifies whether to automatically append sequential suffixes to the hostnames specified by the HostName parameter and instance names specified by the InstanceName parameter when you create multiple instances at a time. This parameter is required. */ public Builder uniqueSuffix(final com.aliyun.ros.cdk.core.IResolvable uniqueSuffix) { this.props.uniqueSuffix(uniqueSuffix); return this; } /** * Property userData: User data to pass to instance. *

* [1, 16KB] characters.User data should not be base64 encoded. If you want to pass base64 encoded string to the property, use function Fn::Base64Decode to decode the base64 string first. *

* @return {@code this} * @param userData Property userData: User data to pass to instance. This parameter is required. */ public Builder userData(final java.lang.String userData) { this.props.userData(userData); return this; } /** * Property userData: User data to pass to instance. *

* [1, 16KB] characters.User data should not be base64 encoded. If you want to pass base64 encoded string to the property, use function Fn::Base64Decode to decode the base64 string first. *

* @return {@code this} * @param userData Property userData: User data to pass to instance. This parameter is required. */ public Builder userData(final com.aliyun.ros.cdk.core.IResolvable userData) { this.props.userData(userData); return this; } /** * Property vSwitchId: The vSwitch Id to create ens instance. *

* @return {@code this} * @param vSwitchId Property vSwitchId: The vSwitch Id to create ens instance. This parameter is required. */ public Builder vSwitchId(final java.lang.String vSwitchId) { this.props.vSwitchId(vSwitchId); return this; } /** * Property vSwitchId: The vSwitch Id to create ens instance. *

* @return {@code this} * @param vSwitchId Property vSwitchId: The vSwitch Id to create ens instance. This parameter is required. */ public Builder vSwitchId(final com.aliyun.ros.cdk.core.IResolvable vSwitchId) { this.props.vSwitchId(vSwitchId); return this; } /** * @returns a newly built instance of {@link com.aliyun.ros.cdk.ens.Instance}. */ @Override public com.aliyun.ros.cdk.ens.Instance build() { return new com.aliyun.ros.cdk.ens.Instance( this.scope, this.id, this.props.build(), this.enableResourcePropertyConstraint ); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy