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

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

There is a newer version: 3.1.1077
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.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class UpgradeLaunchConfigurationRequest extends AbstractModel{

    /**
    * 启动配置ID。
    */
    @SerializedName("LaunchConfigurationId")
    @Expose
    private String LaunchConfigurationId;

    /**
    * 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-8toqc6s3`。镜像类型分为四种:
  • 公共镜像
  • 自定义镜像
  • 共享镜像
  • 服务市场镜像

  • 可通过以下方式获取可用的镜像ID:
  • `公共镜像`、`自定义镜像`、`共享镜像`的镜像ID可通过登录[控制台](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE)查询;`服务镜像市场`的镜像ID可通过[云市场](https://market.cloud.tencent.com/list)查询。
  • 通过调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) ,取返回信息中的`ImageId`字段。
  • */ @SerializedName("ImageId") @Expose private String ImageId; /** * 实例机型列表,不同实例机型指定了不同的资源规格,最多支持5种实例机型。 */ @SerializedName("InstanceTypes") @Expose private String [] InstanceTypes; /** * 启动配置显示名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。 */ @SerializedName("LaunchConfigurationName") @Expose private String LaunchConfigurationName; /** * 实例数据盘配置信息。若不指定该参数,则默认不购买数据盘,最多支持指定11块数据盘。 */ @SerializedName("DataDisks") @Expose private DataDisk [] DataDisks; /** * 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。 */ @SerializedName("EnhancedService") @Expose private EnhancedService EnhancedService; /** * 实例计费类型,CVM默认值按照POSTPAID_BY_HOUR处理。
  • POSTPAID_BY_HOUR:按小时后付费
  • SPOTPAID:竞价付费
  • PREPAID:预付费,即包年包月 */ @SerializedName("InstanceChargeType") @Expose private String InstanceChargeType; /** * 实例的市场相关选项,如竞价实例相关参数,若指定实例的付费模式为竞价付费则该参数必传。 */ @SerializedName("InstanceMarketOptions") @Expose private InstanceMarketOptionsRequest InstanceMarketOptions; /** * 实例类型校验策略,取值包括 ALL 和 ANY,默认取值为ANY。
  • ALL,所有实例类型(InstanceType)都可用则通过校验,否则校验报错。
  • ANY,存在任何一个实例类型(InstanceType)可用则通过校验,否则校验报错。 实例类型不可用的常见原因包括该实例类型售罄、对应云盘售罄等。 如果 InstanceTypes 中一款机型不存在或者已下线,则无论 InstanceTypesCheckPolicy 采用何种取值,都会校验报错。 */ @SerializedName("InstanceTypesCheckPolicy") @Expose private String InstanceTypesCheckPolicy; /** * 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 */ @SerializedName("InternetAccessible") @Expose private InternetAccessible InternetAccessible; /** * 实例登录设置。通过该参数可以设置实例的登录方式密码、密钥或保持镜像的原始登录设置。默认情况下会随机生成密码,并以站内信方式知会到用户。 */ @SerializedName("LoginSettings") @Expose private LoginSettings LoginSettings; /** * 实例所属项目ID。不填为默认项目。 */ @SerializedName("ProjectId") @Expose private Long ProjectId; /** * 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的`SecurityGroupId`字段来获取。若不指定该参数,则默认不绑定安全组。 */ @SerializedName("SecurityGroupIds") @Expose private String [] SecurityGroupIds; /** * 实例系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 */ @SerializedName("SystemDisk") @Expose private SystemDisk SystemDisk; /** * 经过 Base64 编码后的自定义数据,最大长度不超过16KB。 */ @SerializedName("UserData") @Expose private String UserData; /** * 标签列表。通过指定该参数,可以为扩容的实例绑定标签。最多支持指定10个标签。 */ @SerializedName("InstanceTags") @Expose private InstanceTag [] InstanceTags; /** * CAM角色名称。可通过DescribeRoleList接口返回值中的roleName获取。 */ @SerializedName("CamRoleName") @Expose private String CamRoleName; /** * 云服务器主机名(HostName)的相关设置。 */ @SerializedName("HostNameSettings") @Expose private HostNameSettings HostNameSettings; /** * 云服务器实例名(InstanceName)的相关设置。 */ @SerializedName("InstanceNameSettings") @Expose private InstanceNameSettings InstanceNameSettings; /** * 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 */ @SerializedName("InstanceChargePrepaid") @Expose private InstanceChargePrepaid InstanceChargePrepaid; /** * 云盘类型选择策略,取值范围:
  • ORIGINAL:使用设置的云盘类型
  • AUTOMATIC:自动选择当前可用的云盘类型 */ @SerializedName("DiskTypePolicy") @Expose private String DiskTypePolicy; /** * Get 启动配置ID。 * @return LaunchConfigurationId 启动配置ID。 */ public String getLaunchConfigurationId() { return this.LaunchConfigurationId; } /** * Set 启动配置ID。 * @param LaunchConfigurationId 启动配置ID。 */ public void setLaunchConfigurationId(String LaunchConfigurationId) { this.LaunchConfigurationId = LaunchConfigurationId; } /** * Get 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-8toqc6s3`。镜像类型分为四种:
  • 公共镜像
  • 自定义镜像
  • 共享镜像
  • 服务市场镜像

  • 可通过以下方式获取可用的镜像ID:
  • `公共镜像`、`自定义镜像`、`共享镜像`的镜像ID可通过登录[控制台](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE)查询;`服务镜像市场`的镜像ID可通过[云市场](https://market.cloud.tencent.com/list)查询。
  • 通过调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) ,取返回信息中的`ImageId`字段。
  • * @return ImageId 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-8toqc6s3`。镜像类型分为四种:
  • 公共镜像
  • 自定义镜像
  • 共享镜像
  • 服务市场镜像

  • 可通过以下方式获取可用的镜像ID:
  • `公共镜像`、`自定义镜像`、`共享镜像`的镜像ID可通过登录[控制台](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE)查询;`服务镜像市场`的镜像ID可通过[云市场](https://market.cloud.tencent.com/list)查询。
  • 通过调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) ,取返回信息中的`ImageId`字段。
  • */ public String getImageId() { return this.ImageId; } /** * Set 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-8toqc6s3`。镜像类型分为四种:
  • 公共镜像
  • 自定义镜像
  • 共享镜像
  • 服务市场镜像

  • 可通过以下方式获取可用的镜像ID:
  • `公共镜像`、`自定义镜像`、`共享镜像`的镜像ID可通过登录[控制台](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE)查询;`服务镜像市场`的镜像ID可通过[云市场](https://market.cloud.tencent.com/list)查询。
  • 通过调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) ,取返回信息中的`ImageId`字段。
  • * @param ImageId 指定有效的[镜像](https://cloud.tencent.com/document/product/213/4940)ID,格式形如`img-8toqc6s3`。镜像类型分为四种:
  • 公共镜像
  • 自定义镜像
  • 共享镜像
  • 服务市场镜像

  • 可通过以下方式获取可用的镜像ID:
  • `公共镜像`、`自定义镜像`、`共享镜像`的镜像ID可通过登录[控制台](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE)查询;`服务镜像市场`的镜像ID可通过[云市场](https://market.cloud.tencent.com/list)查询。
  • 通过调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715) ,取返回信息中的`ImageId`字段。
  • */ public void setImageId(String ImageId) { this.ImageId = ImageId; } /** * Get 实例机型列表,不同实例机型指定了不同的资源规格,最多支持5种实例机型。 * @return InstanceTypes 实例机型列表,不同实例机型指定了不同的资源规格,最多支持5种实例机型。 */ public String [] getInstanceTypes() { return this.InstanceTypes; } /** * Set 实例机型列表,不同实例机型指定了不同的资源规格,最多支持5种实例机型。 * @param InstanceTypes 实例机型列表,不同实例机型指定了不同的资源规格,最多支持5种实例机型。 */ public void setInstanceTypes(String [] InstanceTypes) { this.InstanceTypes = InstanceTypes; } /** * Get 启动配置显示名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。 * @return LaunchConfigurationName 启动配置显示名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。 */ public String getLaunchConfigurationName() { return this.LaunchConfigurationName; } /** * Set 启动配置显示名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。 * @param LaunchConfigurationName 启动配置显示名称。名称仅支持中文、英文、数字、下划线、分隔符"-"、小数点,最大长度不能超60个字节。 */ public void setLaunchConfigurationName(String LaunchConfigurationName) { this.LaunchConfigurationName = LaunchConfigurationName; } /** * Get 实例数据盘配置信息。若不指定该参数,则默认不购买数据盘,最多支持指定11块数据盘。 * @return DataDisks 实例数据盘配置信息。若不指定该参数,则默认不购买数据盘,最多支持指定11块数据盘。 */ public DataDisk [] getDataDisks() { return this.DataDisks; } /** * Set 实例数据盘配置信息。若不指定该参数,则默认不购买数据盘,最多支持指定11块数据盘。 * @param DataDisks 实例数据盘配置信息。若不指定该参数,则默认不购买数据盘,最多支持指定11块数据盘。 */ public void setDataDisks(DataDisk [] DataDisks) { this.DataDisks = DataDisks; } /** * Get 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。 * @return EnhancedService 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。 */ public EnhancedService getEnhancedService() { return this.EnhancedService; } /** * Set 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。 * @param EnhancedService 增强服务。通过该参数可以指定是否开启云安全、云监控等服务。若不指定该参数,则默认开启云监控、云安全服务。 */ public void setEnhancedService(EnhancedService EnhancedService) { this.EnhancedService = EnhancedService; } /** * Get 实例计费类型,CVM默认值按照POSTPAID_BY_HOUR处理。
  • POSTPAID_BY_HOUR:按小时后付费
  • SPOTPAID:竞价付费
  • PREPAID:预付费,即包年包月 * @return InstanceChargeType 实例计费类型,CVM默认值按照POSTPAID_BY_HOUR处理。
  • POSTPAID_BY_HOUR:按小时后付费
  • SPOTPAID:竞价付费
  • PREPAID:预付费,即包年包月 */ public String getInstanceChargeType() { return this.InstanceChargeType; } /** * Set 实例计费类型,CVM默认值按照POSTPAID_BY_HOUR处理。
  • POSTPAID_BY_HOUR:按小时后付费
  • SPOTPAID:竞价付费
  • PREPAID:预付费,即包年包月 * @param InstanceChargeType 实例计费类型,CVM默认值按照POSTPAID_BY_HOUR处理。
  • POSTPAID_BY_HOUR:按小时后付费
  • SPOTPAID:竞价付费
  • PREPAID:预付费,即包年包月 */ public void setInstanceChargeType(String InstanceChargeType) { this.InstanceChargeType = InstanceChargeType; } /** * Get 实例的市场相关选项,如竞价实例相关参数,若指定实例的付费模式为竞价付费则该参数必传。 * @return InstanceMarketOptions 实例的市场相关选项,如竞价实例相关参数,若指定实例的付费模式为竞价付费则该参数必传。 */ public InstanceMarketOptionsRequest getInstanceMarketOptions() { return this.InstanceMarketOptions; } /** * Set 实例的市场相关选项,如竞价实例相关参数,若指定实例的付费模式为竞价付费则该参数必传。 * @param InstanceMarketOptions 实例的市场相关选项,如竞价实例相关参数,若指定实例的付费模式为竞价付费则该参数必传。 */ public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions) { this.InstanceMarketOptions = InstanceMarketOptions; } /** * Get 实例类型校验策略,取值包括 ALL 和 ANY,默认取值为ANY。
  • ALL,所有实例类型(InstanceType)都可用则通过校验,否则校验报错。
  • ANY,存在任何一个实例类型(InstanceType)可用则通过校验,否则校验报错。 实例类型不可用的常见原因包括该实例类型售罄、对应云盘售罄等。 如果 InstanceTypes 中一款机型不存在或者已下线,则无论 InstanceTypesCheckPolicy 采用何种取值,都会校验报错。 * @return InstanceTypesCheckPolicy 实例类型校验策略,取值包括 ALL 和 ANY,默认取值为ANY。
  • ALL,所有实例类型(InstanceType)都可用则通过校验,否则校验报错。
  • ANY,存在任何一个实例类型(InstanceType)可用则通过校验,否则校验报错。 实例类型不可用的常见原因包括该实例类型售罄、对应云盘售罄等。 如果 InstanceTypes 中一款机型不存在或者已下线,则无论 InstanceTypesCheckPolicy 采用何种取值,都会校验报错。 */ public String getInstanceTypesCheckPolicy() { return this.InstanceTypesCheckPolicy; } /** * Set 实例类型校验策略,取值包括 ALL 和 ANY,默认取值为ANY。
  • ALL,所有实例类型(InstanceType)都可用则通过校验,否则校验报错。
  • ANY,存在任何一个实例类型(InstanceType)可用则通过校验,否则校验报错。 实例类型不可用的常见原因包括该实例类型售罄、对应云盘售罄等。 如果 InstanceTypes 中一款机型不存在或者已下线,则无论 InstanceTypesCheckPolicy 采用何种取值,都会校验报错。 * @param InstanceTypesCheckPolicy 实例类型校验策略,取值包括 ALL 和 ANY,默认取值为ANY。
  • ALL,所有实例类型(InstanceType)都可用则通过校验,否则校验报错。
  • ANY,存在任何一个实例类型(InstanceType)可用则通过校验,否则校验报错。 实例类型不可用的常见原因包括该实例类型售罄、对应云盘售罄等。 如果 InstanceTypes 中一款机型不存在或者已下线,则无论 InstanceTypesCheckPolicy 采用何种取值,都会校验报错。 */ public void setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy) { this.InstanceTypesCheckPolicy = InstanceTypesCheckPolicy; } /** * Get 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 * @return InternetAccessible 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 */ public InternetAccessible getInternetAccessible() { return this.InternetAccessible; } /** * Set 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 * @param InternetAccessible 公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。 */ public void setInternetAccessible(InternetAccessible InternetAccessible) { this.InternetAccessible = InternetAccessible; } /** * Get 实例登录设置。通过该参数可以设置实例的登录方式密码、密钥或保持镜像的原始登录设置。默认情况下会随机生成密码,并以站内信方式知会到用户。 * @return LoginSettings 实例登录设置。通过该参数可以设置实例的登录方式密码、密钥或保持镜像的原始登录设置。默认情况下会随机生成密码,并以站内信方式知会到用户。 */ public LoginSettings getLoginSettings() { return this.LoginSettings; } /** * Set 实例登录设置。通过该参数可以设置实例的登录方式密码、密钥或保持镜像的原始登录设置。默认情况下会随机生成密码,并以站内信方式知会到用户。 * @param LoginSettings 实例登录设置。通过该参数可以设置实例的登录方式密码、密钥或保持镜像的原始登录设置。默认情况下会随机生成密码,并以站内信方式知会到用户。 */ public void setLoginSettings(LoginSettings LoginSettings) { this.LoginSettings = LoginSettings; } /** * Get 实例所属项目ID。不填为默认项目。 * @return ProjectId 实例所属项目ID。不填为默认项目。 */ public Long getProjectId() { return this.ProjectId; } /** * Set 实例所属项目ID。不填为默认项目。 * @param ProjectId 实例所属项目ID。不填为默认项目。 */ public void setProjectId(Long ProjectId) { this.ProjectId = ProjectId; } /** * Get 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的`SecurityGroupId`字段来获取。若不指定该参数,则默认不绑定安全组。 * @return SecurityGroupIds 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的`SecurityGroupId`字段来获取。若不指定该参数,则默认不绑定安全组。 */ public String [] getSecurityGroupIds() { return this.SecurityGroupIds; } /** * Set 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的`SecurityGroupId`字段来获取。若不指定该参数,则默认不绑定安全组。 * @param SecurityGroupIds 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的`SecurityGroupId`字段来获取。若不指定该参数,则默认不绑定安全组。 */ public void setSecurityGroupIds(String [] SecurityGroupIds) { this.SecurityGroupIds = SecurityGroupIds; } /** * Get 实例系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 * @return SystemDisk 实例系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 */ public SystemDisk getSystemDisk() { return this.SystemDisk; } /** * Set 实例系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 * @param SystemDisk 实例系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。 */ public void setSystemDisk(SystemDisk SystemDisk) { this.SystemDisk = SystemDisk; } /** * Get 经过 Base64 编码后的自定义数据,最大长度不超过16KB。 * @return UserData 经过 Base64 编码后的自定义数据,最大长度不超过16KB。 */ public String getUserData() { return this.UserData; } /** * Set 经过 Base64 编码后的自定义数据,最大长度不超过16KB。 * @param UserData 经过 Base64 编码后的自定义数据,最大长度不超过16KB。 */ public void setUserData(String UserData) { this.UserData = UserData; } /** * Get 标签列表。通过指定该参数,可以为扩容的实例绑定标签。最多支持指定10个标签。 * @return InstanceTags 标签列表。通过指定该参数,可以为扩容的实例绑定标签。最多支持指定10个标签。 */ public InstanceTag [] getInstanceTags() { return this.InstanceTags; } /** * Set 标签列表。通过指定该参数,可以为扩容的实例绑定标签。最多支持指定10个标签。 * @param InstanceTags 标签列表。通过指定该参数,可以为扩容的实例绑定标签。最多支持指定10个标签。 */ public void setInstanceTags(InstanceTag [] InstanceTags) { this.InstanceTags = InstanceTags; } /** * Get CAM角色名称。可通过DescribeRoleList接口返回值中的roleName获取。 * @return CamRoleName CAM角色名称。可通过DescribeRoleList接口返回值中的roleName获取。 */ public String getCamRoleName() { return this.CamRoleName; } /** * Set CAM角色名称。可通过DescribeRoleList接口返回值中的roleName获取。 * @param CamRoleName CAM角色名称。可通过DescribeRoleList接口返回值中的roleName获取。 */ public void setCamRoleName(String CamRoleName) { this.CamRoleName = CamRoleName; } /** * Get 云服务器主机名(HostName)的相关设置。 * @return HostNameSettings 云服务器主机名(HostName)的相关设置。 */ public HostNameSettings getHostNameSettings() { return this.HostNameSettings; } /** * Set 云服务器主机名(HostName)的相关设置。 * @param HostNameSettings 云服务器主机名(HostName)的相关设置。 */ public void setHostNameSettings(HostNameSettings HostNameSettings) { this.HostNameSettings = HostNameSettings; } /** * Get 云服务器实例名(InstanceName)的相关设置。 * @return InstanceNameSettings 云服务器实例名(InstanceName)的相关设置。 */ public InstanceNameSettings getInstanceNameSettings() { return this.InstanceNameSettings; } /** * Set 云服务器实例名(InstanceName)的相关设置。 * @param InstanceNameSettings 云服务器实例名(InstanceName)的相关设置。 */ public void setInstanceNameSettings(InstanceNameSettings InstanceNameSettings) { this.InstanceNameSettings = InstanceNameSettings; } /** * Get 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 * @return InstanceChargePrepaid 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 */ public InstanceChargePrepaid getInstanceChargePrepaid() { return this.InstanceChargePrepaid; } /** * Set 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 * @param InstanceChargePrepaid 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的购买时长、是否设置自动续费等属性。若指定实例的付费模式为预付费则该参数必传。 */ public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid) { this.InstanceChargePrepaid = InstanceChargePrepaid; } /** * Get 云盘类型选择策略,取值范围:
  • ORIGINAL:使用设置的云盘类型
  • AUTOMATIC:自动选择当前可用的云盘类型 * @return DiskTypePolicy 云盘类型选择策略,取值范围:
  • ORIGINAL:使用设置的云盘类型
  • AUTOMATIC:自动选择当前可用的云盘类型 */ public String getDiskTypePolicy() { return this.DiskTypePolicy; } /** * Set 云盘类型选择策略,取值范围:
  • ORIGINAL:使用设置的云盘类型
  • AUTOMATIC:自动选择当前可用的云盘类型 * @param DiskTypePolicy 云盘类型选择策略,取值范围:
  • ORIGINAL:使用设置的云盘类型
  • AUTOMATIC:自动选择当前可用的云盘类型 */ public void setDiskTypePolicy(String DiskTypePolicy) { this.DiskTypePolicy = DiskTypePolicy; } public UpgradeLaunchConfigurationRequest() { } /** * 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 UpgradeLaunchConfigurationRequest(UpgradeLaunchConfigurationRequest source) { if (source.LaunchConfigurationId != null) { this.LaunchConfigurationId = new String(source.LaunchConfigurationId); } if (source.ImageId != null) { this.ImageId = new String(source.ImageId); } 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.LaunchConfigurationName != null) { this.LaunchConfigurationName = new String(source.LaunchConfigurationName); } 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.EnhancedService != null) { this.EnhancedService = new EnhancedService(source.EnhancedService); } if (source.InstanceChargeType != null) { this.InstanceChargeType = new String(source.InstanceChargeType); } if (source.InstanceMarketOptions != null) { this.InstanceMarketOptions = new InstanceMarketOptionsRequest(source.InstanceMarketOptions); } if (source.InstanceTypesCheckPolicy != null) { this.InstanceTypesCheckPolicy = new String(source.InstanceTypesCheckPolicy); } if (source.InternetAccessible != null) { this.InternetAccessible = new InternetAccessible(source.InternetAccessible); } if (source.LoginSettings != null) { this.LoginSettings = new LoginSettings(source.LoginSettings); } if (source.ProjectId != null) { this.ProjectId = new Long(source.ProjectId); } 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.SystemDisk != null) { this.SystemDisk = new SystemDisk(source.SystemDisk); } if (source.UserData != null) { this.UserData = new String(source.UserData); } 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.CamRoleName != null) { this.CamRoleName = new String(source.CamRoleName); } 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); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "LaunchConfigurationId", this.LaunchConfigurationId); this.setParamSimple(map, prefix + "ImageId", this.ImageId); this.setParamArraySimple(map, prefix + "InstanceTypes.", this.InstanceTypes); this.setParamSimple(map, prefix + "LaunchConfigurationName", this.LaunchConfigurationName); this.setParamArrayObj(map, prefix + "DataDisks.", this.DataDisks); this.setParamObj(map, prefix + "EnhancedService.", this.EnhancedService); this.setParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType); this.setParamObj(map, prefix + "InstanceMarketOptions.", this.InstanceMarketOptions); this.setParamSimple(map, prefix + "InstanceTypesCheckPolicy", this.InstanceTypesCheckPolicy); this.setParamObj(map, prefix + "InternetAccessible.", this.InternetAccessible); this.setParamObj(map, prefix + "LoginSettings.", this.LoginSettings); this.setParamSimple(map, prefix + "ProjectId", this.ProjectId); this.setParamArraySimple(map, prefix + "SecurityGroupIds.", this.SecurityGroupIds); this.setParamObj(map, prefix + "SystemDisk.", this.SystemDisk); this.setParamSimple(map, prefix + "UserData", this.UserData); this.setParamArrayObj(map, prefix + "InstanceTags.", this.InstanceTags); this.setParamSimple(map, prefix + "CamRoleName", this.CamRoleName); 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); } }




  • © 2015 - 2024 Weber Informatics LLC | Privacy Policy