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

com.tencentcloudapi.as.v20180419.models.CreateLaunchConfigurationRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.as.v20180419.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class CreateLaunchConfigurationRequest extends AbstractModel {

    /**
    * Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed..
    */
    @SerializedName("LaunchConfigurationName")
    @Expose
    private String LaunchConfigurationName;

    /**
    * [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images: 
  • Public images
  • Custom images
  • Shared images

  • You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).
  • You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
  • */ @SerializedName("ImageId") @Expose private String ImageId; /** * Project ID of the launch configuration. The default project is used if it’s left blank. Note that this project ID is not the same as the project ID of the scaling group. */ @SerializedName("ProjectId") @Expose private Long ProjectId; /** * Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. */ @SerializedName("InstanceType") @Expose private String InstanceType; /** * System disk configuration of the instance. If this parameter is not specified, the default value will be used. */ @SerializedName("SystemDisk") @Expose private SystemDisk SystemDisk; /** * Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. */ @SerializedName("DataDisks") @Expose private DataDisk [] DataDisks; /** * Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. */ @SerializedName("InternetAccessible") @Expose private InternetAccessible InternetAccessible; /** * Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. */ @SerializedName("LoginSettings") @Expose private LoginSettings LoginSettings; /** * The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. */ @SerializedName("SecurityGroupIds") @Expose private String [] SecurityGroupIds; /** * Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. */ @SerializedName("EnhancedService") @Expose private EnhancedService EnhancedService; /** * Base64-encoded custom data of up to 16 KB. */ @SerializedName("UserData") @Expose private String UserData; /** * Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance */ @SerializedName("InstanceChargeType") @Expose private String InstanceChargeType; /** * Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. */ @SerializedName("InstanceMarketOptions") @Expose private InstanceMarketOptionsRequest InstanceMarketOptions; /** * List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported. `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. */ @SerializedName("InstanceTypes") @Expose private String [] InstanceTypes; /** * CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. */ @SerializedName("CamRoleName") @Expose private String CamRoleName; /** * Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
  • ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
  • ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. */ @SerializedName("InstanceTypesCheckPolicy") @Expose private String InstanceTypesCheckPolicy; /** * List of tags. This parameter is used to bind up to 10 tags to newly added instances. */ @SerializedName("InstanceTags") @Expose private InstanceTag [] InstanceTags; /** * List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags. */ @SerializedName("Tags") @Expose private Tag [] Tags; /** * CVM hostname settings. */ @SerializedName("HostNameSettings") @Expose private HostNameSettings HostNameSettings; /** * Settings of CVM instance names If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. */ @SerializedName("InstanceNameSettings") @Expose private InstanceNameSettings InstanceNameSettings; /** * Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. */ @SerializedName("InstanceChargePrepaid") @Expose private InstanceChargePrepaid InstanceChargePrepaid; /** * Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type */ @SerializedName("DiskTypePolicy") @Expose private String DiskTypePolicy; /** * HPC ID
    Note: This field is default to empty */ @SerializedName("HpcClusterId") @Expose private String HpcClusterId; /** * IPv6 public network bandwidth configuration. If the IPv6 address is available in the new instance, public network bandwidth can be allocated to the IPv6 address. This parameter is invalid if `Ipv6AddressCount` of the scaling group associated with the launch configuration is 0. */ @SerializedName("IPv6InternetAccessible") @Expose private IPv6InternetAccessible IPv6InternetAccessible; /** * Placement group ID. Only one is allowed. */ @SerializedName("DisasterRecoverGroupIds") @Expose private String [] DisasterRecoverGroupIds; /** * Get Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed.. * @return LaunchConfigurationName Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed.. */ public String getLaunchConfigurationName() { return this.LaunchConfigurationName; } /** * Set Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed.. * @param LaunchConfigurationName Display name of the launch configuration, which can contain letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed.. */ public void setLaunchConfigurationName(String LaunchConfigurationName) { this.LaunchConfigurationName = LaunchConfigurationName; } /** * Get [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images:
  • Public images
  • Custom images
  • Shared images

  • You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).
  • You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
  • * @return ImageId [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images:
  • Public images
  • Custom images
  • Shared images

  • You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).
  • You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
  • */ public String getImageId() { return this.ImageId; } /** * Set [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images:
  • Public images
  • Custom images
  • Shared images

  • You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).
  • You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
  • * @param ImageId [Image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-xxx`. There are three types of images:
  • Public images
  • Custom images
  • Shared images

  • You can obtain the image IDs in the [CVM console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE).
  • You can also use the [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
  • */ public void setImageId(String ImageId) { this.ImageId = ImageId; } /** * Get Project ID of the launch configuration. The default project is used if it’s left blank. Note that this project ID is not the same as the project ID of the scaling group. * @return ProjectId Project ID of the launch configuration. The default project is used if it’s left blank. Note that this project ID is not the same as the project ID of the scaling group. */ public Long getProjectId() { return this.ProjectId; } /** * Set Project ID of the launch configuration. The default project is used if it’s left blank. Note that this project ID is not the same as the project ID of the scaling group. * @param ProjectId Project ID of the launch configuration. The default project is used if it’s left blank. Note that this project ID is not the same as the project ID of the scaling group. */ public void setProjectId(Long ProjectId) { this.ProjectId = ProjectId; } /** * Get Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. * @return InstanceType Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. */ public String getInstanceType() { return this.InstanceType; } /** * Set Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. * @param InstanceType Instance model. Different instance models specify different resource specifications. The specific value can be obtained by calling the [DescribeInstanceTypeConfigs](https://intl.cloud.tencent.com/document/api/213/15749?from_cn_redirect=1) API to get the latest specification table or referring to the descriptions in [Instance Types](https://intl.cloud.tencent.com/document/product/213/11518?from_cn_redirect=1). `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. */ public void setInstanceType(String InstanceType) { this.InstanceType = InstanceType; } /** * Get System disk configuration of the instance. If this parameter is not specified, the default value will be used. * @return SystemDisk System disk configuration of the instance. If this parameter is not specified, the default value will be used. */ public SystemDisk getSystemDisk() { return this.SystemDisk; } /** * Set System disk configuration of the instance. If this parameter is not specified, the default value will be used. * @param SystemDisk System disk configuration of the instance. If this parameter is not specified, the default value will be used. */ public void setSystemDisk(SystemDisk SystemDisk) { this.SystemDisk = SystemDisk; } /** * Get Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. * @return DataDisks Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. */ public DataDisk [] getDataDisks() { return this.DataDisks; } /** * Set Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. * @param DataDisks Information of the instance's data disk configuration. If this parameter is not specified, no data disk is purchased by default. Up to 11 data disks can be supported. */ public void setDataDisks(DataDisk [] DataDisks) { this.DataDisks = DataDisks; } /** * Get Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. * @return InternetAccessible Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. */ public InternetAccessible getInternetAccessible() { return this.InternetAccessible; } /** * Set Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. * @param InternetAccessible Configuration of public network bandwidth. If this parameter is not specified, 0 Mbps will be used by default. */ public void setInternetAccessible(InternetAccessible InternetAccessible) { this.InternetAccessible = InternetAccessible; } /** * Get Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. * @return LoginSettings Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. */ public LoginSettings getLoginSettings() { return this.LoginSettings; } /** * Set Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. * @param LoginSettings Login settings of the instance. You can use this parameter to set the login method, password, and key of the instance or keep the login settings of the original image. By default, a random password will be generated and sent to you via the Message Center. */ public void setLoginSettings(LoginSettings LoginSettings) { this.LoginSettings = LoginSettings; } /** * Get The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. * @return SecurityGroupIds The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. */ public String [] getSecurityGroupIds() { return this.SecurityGroupIds; } /** * Set The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. * @param SecurityGroupIds The security group to which the instance belongs. This parameter can be obtained by calling the `SecurityGroupId` field in the returned value of [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1). If this parameter is not specified, no security group will be bound by default. */ public void setSecurityGroupIds(String [] SecurityGroupIds) { this.SecurityGroupIds = SecurityGroupIds; } /** * Get Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. * @return EnhancedService Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. */ public EnhancedService getEnhancedService() { return this.EnhancedService; } /** * Set Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. * @param EnhancedService Enhanced services. You can use this parameter to specify whether to enable services such as Cloud Security and Cloud Monitor. If this parameter is not specified, Cloud Monitor and Cloud Security will be enabled by default. */ public void setEnhancedService(EnhancedService EnhancedService) { this.EnhancedService = EnhancedService; } /** * Get Base64-encoded custom data of up to 16 KB. * @return UserData Base64-encoded custom data of up to 16 KB. */ public String getUserData() { return this.UserData; } /** * Set Base64-encoded custom data of up to 16 KB. * @param UserData Base64-encoded custom data of up to 16 KB. */ public void setUserData(String UserData) { this.UserData = UserData; } /** * Get Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance * @return InstanceChargeType Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance */ public String getInstanceChargeType() { return this.InstanceChargeType; } /** * Set Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance * @param InstanceChargeType Instance billing mode. CVM instances take `POSTPAID_BY_HOUR` by default. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance */ public void setInstanceChargeType(String InstanceChargeType) { this.InstanceChargeType = InstanceChargeType; } /** * Get Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. * @return InstanceMarketOptions Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. */ public InstanceMarketOptionsRequest getInstanceMarketOptions() { return this.InstanceMarketOptions; } /** * Set Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. * @param InstanceMarketOptions Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. */ public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions) { this.InstanceMarketOptions = InstanceMarketOptions; } /** * Get List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported. `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. * @return InstanceTypes List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported. `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. */ public String [] getInstanceTypes() { return this.InstanceTypes; } /** * Set List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported. `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. * @param InstanceTypes List of instance models. Different instance models specify different resource specifications. Up to 10 instance models can be supported. `InstanceType` and `InstanceTypes` are mutually exclusive, and one and only one of them must be entered. */ public void setInstanceTypes(String [] InstanceTypes) { this.InstanceTypes = InstanceTypes; } /** * Get CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. * @return CamRoleName CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. */ public String getCamRoleName() { return this.CamRoleName; } /** * Set CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. * @param CamRoleName CAM role name. This parameter can be obtained from the `roleName` field returned by DescribeRoleList API. */ public void setCamRoleName(String CamRoleName) { this.CamRoleName = CamRoleName; } /** * Get Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
  • ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
  • ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. * @return InstanceTypesCheckPolicy Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
  • ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
  • ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. */ public String getInstanceTypesCheckPolicy() { return this.InstanceTypesCheckPolicy; } /** * Set Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
  • ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
  • ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. * @param InstanceTypesCheckPolicy Instance type verification policy. Value range: ALL, ANY. Default value: ANY.
  • ALL: The verification will success only if all instance types (InstanceType) are available; otherwise, an error will be reported.
  • ANY: The verification will success if any instance type (InstanceType) is available; otherwise, an error will be reported. Common reasons why an instance type is unavailable include stock-out of the instance type or the corresponding cloud disk. If a model in InstanceTypes does not exist or has been discontinued, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. */ public void setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy) { this.InstanceTypesCheckPolicy = InstanceTypesCheckPolicy; } /** * Get List of tags. This parameter is used to bind up to 10 tags to newly added instances. * @return InstanceTags List of tags. This parameter is used to bind up to 10 tags to newly added instances. */ public InstanceTag [] getInstanceTags() { return this.InstanceTags; } /** * Set List of tags. This parameter is used to bind up to 10 tags to newly added instances. * @param InstanceTags List of tags. This parameter is used to bind up to 10 tags to newly added instances. */ public void setInstanceTags(InstanceTag [] InstanceTags) { this.InstanceTags = InstanceTags; } /** * Get List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags. * @return Tags List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags. */ public Tag [] getTags() { return this.Tags; } /** * Set List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags. * @param Tags List of tags. You can specify tags that you want to bind to the launch configuration. Each launch configuration can have up to 30 tags. */ public void setTags(Tag [] Tags) { this.Tags = Tags; } /** * Get CVM hostname settings. * @return HostNameSettings CVM hostname settings. */ public HostNameSettings getHostNameSettings() { return this.HostNameSettings; } /** * Set CVM hostname settings. * @param HostNameSettings CVM hostname settings. */ public void setHostNameSettings(HostNameSettings HostNameSettings) { this.HostNameSettings = HostNameSettings; } /** * Get Settings of CVM instance names If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. * @return InstanceNameSettings Settings of CVM instance names If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. */ public InstanceNameSettings getInstanceNameSettings() { return this.InstanceNameSettings; } /** * Set Settings of CVM instance names If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. * @param InstanceNameSettings Settings of CVM instance names If this field is configured in a launch configuration, the `InstanceName` of a CVM created by the scaling group will be generated according to the configuration; otherwise, it will be in the `as-{{AutoScalingGroupName }}` format. */ public void setInstanceNameSettings(InstanceNameSettings InstanceNameSettings) { this.InstanceNameSettings = InstanceNameSettings; } /** * Get Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. * @return InstanceChargePrepaid Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. */ public InstanceChargePrepaid getInstanceChargePrepaid() { return this.InstanceChargePrepaid; } /** * Set Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. * @param InstanceChargePrepaid Details of the monthly subscription, including the purchase period, auto-renewal. It is required if the `InstanceChargeType` is `PREPAID`. */ public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid) { this.InstanceChargePrepaid = InstanceChargePrepaid; } /** * Get Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type * @return DiskTypePolicy Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type */ public String getDiskTypePolicy() { return this.DiskTypePolicy; } /** * Set Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type * @param DiskTypePolicy Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type */ public void setDiskTypePolicy(String DiskTypePolicy) { this.DiskTypePolicy = DiskTypePolicy; } /** * Get HPC ID
    Note: This field is default to empty * @return HpcClusterId HPC ID
    Note: This field is default to empty */ public String getHpcClusterId() { return this.HpcClusterId; } /** * Set HPC ID
    Note: This field is default to empty * @param HpcClusterId HPC ID
    Note: This field is default to empty */ public void setHpcClusterId(String HpcClusterId) { this.HpcClusterId = HpcClusterId; } /** * Get IPv6 public network bandwidth configuration. If the IPv6 address is available in the new instance, public network bandwidth can be allocated to the IPv6 address. This parameter is invalid if `Ipv6AddressCount` of the scaling group associated with the launch configuration is 0. * @return IPv6InternetAccessible IPv6 public network bandwidth configuration. If the IPv6 address is available in the new instance, public network bandwidth can be allocated to the IPv6 address. This parameter is invalid if `Ipv6AddressCount` of the scaling group associated with the launch configuration is 0. */ public IPv6InternetAccessible getIPv6InternetAccessible() { return this.IPv6InternetAccessible; } /** * Set IPv6 public network bandwidth configuration. If the IPv6 address is available in the new instance, public network bandwidth can be allocated to the IPv6 address. This parameter is invalid if `Ipv6AddressCount` of the scaling group associated with the launch configuration is 0. * @param IPv6InternetAccessible IPv6 public network bandwidth configuration. If the IPv6 address is available in the new instance, public network bandwidth can be allocated to the IPv6 address. This parameter is invalid if `Ipv6AddressCount` of the scaling group associated with the launch configuration is 0. */ public void setIPv6InternetAccessible(IPv6InternetAccessible IPv6InternetAccessible) { this.IPv6InternetAccessible = IPv6InternetAccessible; } /** * Get Placement group ID. Only one is allowed. * @return DisasterRecoverGroupIds Placement group ID. Only one is allowed. */ public String [] getDisasterRecoverGroupIds() { return this.DisasterRecoverGroupIds; } /** * Set Placement group ID. Only one is allowed. * @param DisasterRecoverGroupIds Placement group ID. Only one is allowed. */ public void setDisasterRecoverGroupIds(String [] DisasterRecoverGroupIds) { this.DisasterRecoverGroupIds = DisasterRecoverGroupIds; } public CreateLaunchConfigurationRequest() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public CreateLaunchConfigurationRequest(CreateLaunchConfigurationRequest source) { if (source.LaunchConfigurationName != null) { this.LaunchConfigurationName = new String(source.LaunchConfigurationName); } if (source.ImageId != null) { this.ImageId = new String(source.ImageId); } if (source.ProjectId != null) { this.ProjectId = new Long(source.ProjectId); } if (source.InstanceType != null) { this.InstanceType = new String(source.InstanceType); } if (source.SystemDisk != null) { this.SystemDisk = new SystemDisk(source.SystemDisk); } if (source.DataDisks != null) { this.DataDisks = new DataDisk[source.DataDisks.length]; for (int i = 0; i < source.DataDisks.length; i++) { this.DataDisks[i] = new DataDisk(source.DataDisks[i]); } } if (source.InternetAccessible != null) { this.InternetAccessible = new InternetAccessible(source.InternetAccessible); } if (source.LoginSettings != null) { this.LoginSettings = new LoginSettings(source.LoginSettings); } if (source.SecurityGroupIds != null) { this.SecurityGroupIds = new String[source.SecurityGroupIds.length]; for (int i = 0; i < source.SecurityGroupIds.length; i++) { this.SecurityGroupIds[i] = new String(source.SecurityGroupIds[i]); } } if (source.EnhancedService != null) { this.EnhancedService = new EnhancedService(source.EnhancedService); } if (source.UserData != null) { this.UserData = new String(source.UserData); } if (source.InstanceChargeType != null) { this.InstanceChargeType = new String(source.InstanceChargeType); } if (source.InstanceMarketOptions != null) { this.InstanceMarketOptions = new InstanceMarketOptionsRequest(source.InstanceMarketOptions); } if (source.InstanceTypes != null) { this.InstanceTypes = new String[source.InstanceTypes.length]; for (int i = 0; i < source.InstanceTypes.length; i++) { this.InstanceTypes[i] = new String(source.InstanceTypes[i]); } } if (source.CamRoleName != null) { this.CamRoleName = new String(source.CamRoleName); } if (source.InstanceTypesCheckPolicy != null) { this.InstanceTypesCheckPolicy = new String(source.InstanceTypesCheckPolicy); } if (source.InstanceTags != null) { this.InstanceTags = new InstanceTag[source.InstanceTags.length]; for (int i = 0; i < source.InstanceTags.length; i++) { this.InstanceTags[i] = new InstanceTag(source.InstanceTags[i]); } } if (source.Tags != null) { this.Tags = new Tag[source.Tags.length]; for (int i = 0; i < source.Tags.length; i++) { this.Tags[i] = new Tag(source.Tags[i]); } } if (source.HostNameSettings != null) { this.HostNameSettings = new HostNameSettings(source.HostNameSettings); } if (source.InstanceNameSettings != null) { this.InstanceNameSettings = new InstanceNameSettings(source.InstanceNameSettings); } if (source.InstanceChargePrepaid != null) { this.InstanceChargePrepaid = new InstanceChargePrepaid(source.InstanceChargePrepaid); } if (source.DiskTypePolicy != null) { this.DiskTypePolicy = new String(source.DiskTypePolicy); } if (source.HpcClusterId != null) { this.HpcClusterId = new String(source.HpcClusterId); } if (source.IPv6InternetAccessible != null) { this.IPv6InternetAccessible = new IPv6InternetAccessible(source.IPv6InternetAccessible); } if (source.DisasterRecoverGroupIds != null) { this.DisasterRecoverGroupIds = new String[source.DisasterRecoverGroupIds.length]; for (int i = 0; i < source.DisasterRecoverGroupIds.length; i++) { this.DisasterRecoverGroupIds[i] = new String(source.DisasterRecoverGroupIds[i]); } } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "LaunchConfigurationName", this.LaunchConfigurationName); this.setParamSimple(map, prefix + "ImageId", this.ImageId); this.setParamSimple(map, prefix + "ProjectId", this.ProjectId); this.setParamSimple(map, prefix + "InstanceType", this.InstanceType); this.setParamObj(map, prefix + "SystemDisk.", this.SystemDisk); this.setParamArrayObj(map, prefix + "DataDisks.", this.DataDisks); this.setParamObj(map, prefix + "InternetAccessible.", this.InternetAccessible); this.setParamObj(map, prefix + "LoginSettings.", this.LoginSettings); this.setParamArraySimple(map, prefix + "SecurityGroupIds.", this.SecurityGroupIds); this.setParamObj(map, prefix + "EnhancedService.", this.EnhancedService); this.setParamSimple(map, prefix + "UserData", this.UserData); this.setParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType); this.setParamObj(map, prefix + "InstanceMarketOptions.", this.InstanceMarketOptions); this.setParamArraySimple(map, prefix + "InstanceTypes.", this.InstanceTypes); this.setParamSimple(map, prefix + "CamRoleName", this.CamRoleName); this.setParamSimple(map, prefix + "InstanceTypesCheckPolicy", this.InstanceTypesCheckPolicy); this.setParamArrayObj(map, prefix + "InstanceTags.", this.InstanceTags); this.setParamArrayObj(map, prefix + "Tags.", this.Tags); this.setParamObj(map, prefix + "HostNameSettings.", this.HostNameSettings); this.setParamObj(map, prefix + "InstanceNameSettings.", this.InstanceNameSettings); this.setParamObj(map, prefix + "InstanceChargePrepaid.", this.InstanceChargePrepaid); this.setParamSimple(map, prefix + "DiskTypePolicy", this.DiskTypePolicy); this.setParamSimple(map, prefix + "HpcClusterId", this.HpcClusterId); this.setParamObj(map, prefix + "IPv6InternetAccessible.", this.IPv6InternetAccessible); this.setParamArraySimple(map, prefix + "DisasterRecoverGroupIds.", this.DisasterRecoverGroupIds); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy