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.0.1034
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{

    /**
    * Launch configuration ID.
    */
    @SerializedName("LaunchConfigurationId")
    @Expose
    private String LaunchConfigurationId;

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

  • You can obtain the available image IDs in the following ways:
  • For `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the image IDs; for `marketplace images`, query the image IDs through [Cloud Marketplace](https://market.cloud.tencent.com/list).
  • This value can be obtained from the `ImageId` field in the return value of the [DescribeImages API](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1).
  • */ @SerializedName("ImageId") @Expose private String ImageId; /** * List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported. */ @SerializedName("InstanceTypes") @Expose private String [] InstanceTypes; /** * Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. */ @SerializedName("LaunchConfigurationName") @Expose private String LaunchConfigurationName; /** * 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; /** * Enhanced service. This parameter is used to specify whether to enable Cloud Security, Cloud Monitoring and other services. If this parameter is not specified, Cloud Monitoring and Cloud Security will be enabled by default. */ @SerializedName("EnhancedService") @Expose private EnhancedService EnhancedService; /** * 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-related options of the instance, such as the parameters related to stop instances. If the billing method of instance is specified as bidding, this parameter must be passed in. */ @SerializedName("InstanceMarketOptions") @Expose private InstanceMarketOptionsRequest InstanceMarketOptions; /** * 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 and the corresponding cloud disk. If a model in InstanceTypes does not exist or has been deactivated, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. */ @SerializedName("InstanceTypesCheckPolicy") @Expose private String InstanceTypesCheckPolicy; /** * Configuration information of public network bandwidth. If this parameter is not specified, the default public network bandwidth is 0 Mbps. */ @SerializedName("InternetAccessible") @Expose private InternetAccessible InternetAccessible; /** * Login settings of the instance. This parameter is used to set the login password and key for the instance, or to keep the original login settings for the image. By default, a random password is generated and sent to the user via the internal message. */ @SerializedName("LoginSettings") @Expose private LoginSettings LoginSettings; /** * Project ID of the instance. This parameter can be obtained from the `projectId` field in the returned values of [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). If this is left empty, default project is used. */ @SerializedName("ProjectId") @Expose private Long ProjectId; /** * The security group of instance. 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; /** * System disk configuration of the instance. If this parameter is not specified, the default value will be assigned to it. */ @SerializedName("SystemDisk") @Expose private SystemDisk SystemDisk; /** * Base64-encoded custom data of up to 16 KB. */ @SerializedName("UserData") @Expose private String UserData; /** * List of tags. This parameter is used to bind up to 10 tags to newly added instances. */ @SerializedName("InstanceTags") @Expose private InstanceTag [] InstanceTags; /** * CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. */ @SerializedName("CamRoleName") @Expose private String CamRoleName; /** * CVM HostName settings. */ @SerializedName("HostNameSettings") @Expose private HostNameSettings HostNameSettings; /** * Settings of CVM instance names. */ @SerializedName("InstanceNameSettings") @Expose private InstanceNameSettings InstanceNameSettings; /** * Advance payment mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. */ @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; /** * Get Launch configuration ID. * @return LaunchConfigurationId Launch configuration ID. */ public String getLaunchConfigurationId() { return this.LaunchConfigurationId; } /** * Set Launch configuration ID. * @param LaunchConfigurationId Launch configuration ID. */ public void setLaunchConfigurationId(String LaunchConfigurationId) { this.LaunchConfigurationId = LaunchConfigurationId; } /** * Get Valid [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-8toqc6s3`. There are four types of images:
  • Public images
  • Custom images
  • Shared images
  • Marketplace images

  • You can obtain the available image IDs in the following ways:
  • For `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the image IDs; for `marketplace images`, query the image IDs through [Cloud Marketplace](https://market.cloud.tencent.com/list).
  • This value can be obtained from the `ImageId` field in the return value of the [DescribeImages API](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1).
  • * @return ImageId Valid [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-8toqc6s3`. There are four types of images:
  • Public images
  • Custom images
  • Shared images
  • Marketplace images

  • You can obtain the available image IDs in the following ways:
  • For `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the image IDs; for `marketplace images`, query the image IDs through [Cloud Marketplace](https://market.cloud.tencent.com/list).
  • This value can be obtained from the `ImageId` field in the return value of the [DescribeImages API](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1).
  • */ public String getImageId() { return this.ImageId; } /** * Set Valid [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-8toqc6s3`. There are four types of images:
  • Public images
  • Custom images
  • Shared images
  • Marketplace images

  • You can obtain the available image IDs in the following ways:
  • For `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the image IDs; for `marketplace images`, query the image IDs through [Cloud Marketplace](https://market.cloud.tencent.com/list).
  • This value can be obtained from the `ImageId` field in the return value of the [DescribeImages API](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1).
  • * @param ImageId Valid [image](https://intl.cloud.tencent.com/document/product/213/4940?from_cn_redirect=1) ID in the format of `img-8toqc6s3`. There are four types of images:
  • Public images
  • Custom images
  • Shared images
  • Marketplace images

  • You can obtain the available image IDs in the following ways:
  • For `public images`, `custom images`, and `shared images`, log in to the [console](https://console.cloud.tencent.com/cvm/image?rid=1&imageType=PUBLIC_IMAGE) to query the image IDs; for `marketplace images`, query the image IDs through [Cloud Marketplace](https://market.cloud.tencent.com/list).
  • This value can be obtained from the `ImageId` field in the return value of the [DescribeImages API](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1).
  • */ public void setImageId(String ImageId) { this.ImageId = ImageId; } /** * Get List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported. * @return InstanceTypes List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported. */ public String [] getInstanceTypes() { return this.InstanceTypes; } /** * Set List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported. * @param InstanceTypes List of instance models. Different instance models specify different resource specifications. Up to 5 instance models can be supported. */ public void setInstanceTypes(String [] InstanceTypes) { this.InstanceTypes = InstanceTypes; } /** * Get Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. * @return LaunchConfigurationName Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. */ public String getLaunchConfigurationName() { return this.LaunchConfigurationName; } /** * Set Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. * @param LaunchConfigurationName Display name of the launch configuration, which can contain Chinese characters, letters, numbers, underscores, separators ("-"), and decimal points with a maximum length of 60 bytes. */ public void setLaunchConfigurationName(String LaunchConfigurationName) { this.LaunchConfigurationName = LaunchConfigurationName; } /** * 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 Enhanced service. This parameter is used to specify whether to enable Cloud Security, Cloud Monitoring and other services. If this parameter is not specified, Cloud Monitoring and Cloud Security will be enabled by default. * @return EnhancedService Enhanced service. This parameter is used to specify whether to enable Cloud Security, Cloud Monitoring and other services. If this parameter is not specified, Cloud Monitoring and Cloud Security will be enabled by default. */ public EnhancedService getEnhancedService() { return this.EnhancedService; } /** * Set Enhanced service. This parameter is used to specify whether to enable Cloud Security, Cloud Monitoring and other services. If this parameter is not specified, Cloud Monitoring and Cloud Security will be enabled by default. * @param EnhancedService Enhanced service. This parameter is used to specify whether to enable Cloud Security, Cloud Monitoring and other services. If this parameter is not specified, Cloud Monitoring and Cloud Security will be enabled by default. */ public void setEnhancedService(EnhancedService EnhancedService) { this.EnhancedService = EnhancedService; } /** * 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-related options of the instance, such as the parameters related to stop instances. If the billing method of instance is specified as bidding, this parameter must be passed in. * @return InstanceMarketOptions Market-related options of the instance, such as the parameters related to stop instances. If the billing method of instance is specified as bidding, this parameter must be passed in. */ public InstanceMarketOptionsRequest getInstanceMarketOptions() { return this.InstanceMarketOptions; } /** * Set Market-related options of the instance, such as the parameters related to stop instances. If the billing method of instance is specified as bidding, this parameter must be passed in. * @param InstanceMarketOptions Market-related options of the instance, such as the parameters related to stop instances. If the billing method of instance is specified as bidding, this parameter must be passed in. */ public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions) { this.InstanceMarketOptions = InstanceMarketOptions; } /** * 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 and the corresponding cloud disk. If a model in InstanceTypes does not exist or has been deactivated, 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 and the corresponding cloud disk. If a model in InstanceTypes does not exist or has been deactivated, 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 and the corresponding cloud disk. If a model in InstanceTypes does not exist or has been deactivated, 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 and the corresponding cloud disk. If a model in InstanceTypes does not exist or has been deactivated, a verification error will be reported regardless of the value of InstanceTypesCheckPolicy. */ public void setInstanceTypesCheckPolicy(String InstanceTypesCheckPolicy) { this.InstanceTypesCheckPolicy = InstanceTypesCheckPolicy; } /** * Get Configuration information of public network bandwidth. If this parameter is not specified, the default public network bandwidth is 0 Mbps. * @return InternetAccessible Configuration information of public network bandwidth. If this parameter is not specified, the default public network bandwidth is 0 Mbps. */ public InternetAccessible getInternetAccessible() { return this.InternetAccessible; } /** * Set Configuration information of public network bandwidth. If this parameter is not specified, the default public network bandwidth is 0 Mbps. * @param InternetAccessible Configuration information of public network bandwidth. If this parameter is not specified, the default public network bandwidth is 0 Mbps. */ public void setInternetAccessible(InternetAccessible InternetAccessible) { this.InternetAccessible = InternetAccessible; } /** * Get Login settings of the instance. This parameter is used to set the login password and key for the instance, or to keep the original login settings for the image. By default, a random password is generated and sent to the user via the internal message. * @return LoginSettings Login settings of the instance. This parameter is used to set the login password and key for the instance, or to keep the original login settings for the image. By default, a random password is generated and sent to the user via the internal message. */ public LoginSettings getLoginSettings() { return this.LoginSettings; } /** * Set Login settings of the instance. This parameter is used to set the login password and key for the instance, or to keep the original login settings for the image. By default, a random password is generated and sent to the user via the internal message. * @param LoginSettings Login settings of the instance. This parameter is used to set the login password and key for the instance, or to keep the original login settings for the image. By default, a random password is generated and sent to the user via the internal message. */ public void setLoginSettings(LoginSettings LoginSettings) { this.LoginSettings = LoginSettings; } /** * Get Project ID of the instance. This parameter can be obtained from the `projectId` field in the returned values of [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). If this is left empty, default project is used. * @return ProjectId Project ID of the instance. This parameter can be obtained from the `projectId` field in the returned values of [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). If this is left empty, default project is used. */ public Long getProjectId() { return this.ProjectId; } /** * Set Project ID of the instance. This parameter can be obtained from the `projectId` field in the returned values of [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). If this is left empty, default project is used. * @param ProjectId Project ID of the instance. This parameter can be obtained from the `projectId` field in the returned values of [DescribeProject](https://intl.cloud.tencent.com/document/api/378/4400?from_cn_redirect=1). If this is left empty, default project is used. */ public void setProjectId(Long ProjectId) { this.ProjectId = ProjectId; } /** * Get The security group of instance. 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 of instance. 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 of instance. 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 of instance. 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 System disk configuration of the instance. If this parameter is not specified, the default value will be assigned to it. * @return SystemDisk System disk configuration of the instance. If this parameter is not specified, the default value will be assigned to it. */ public SystemDisk getSystemDisk() { return this.SystemDisk; } /** * Set System disk configuration of the instance. If this parameter is not specified, the default value will be assigned to it. * @param SystemDisk System disk configuration of the instance. If this parameter is not specified, the default value will be assigned to it. */ public void setSystemDisk(SystemDisk SystemDisk) { this.SystemDisk = SystemDisk; } /** * 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 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 CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. * @return CamRoleName CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. */ public String getCamRoleName() { return this.CamRoleName; } /** * Set CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. * @param CamRoleName CAM role name, which can be obtained from the roleName field in the return value of the DescribeRoleList API. */ public void setCamRoleName(String CamRoleName) { this.CamRoleName = CamRoleName; } /** * 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. * @return InstanceNameSettings Settings of CVM instance names. */ public InstanceNameSettings getInstanceNameSettings() { return this.InstanceNameSettings; } /** * Set Settings of CVM instance names. * @param InstanceNameSettings Settings of CVM instance names. */ public void setInstanceNameSettings(InstanceNameSettings InstanceNameSettings) { this.InstanceNameSettings = InstanceNameSettings; } /** * Get Advance payment mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. * @return InstanceChargePrepaid Advance payment mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. */ public InstanceChargePrepaid getInstanceChargePrepaid() { return this.InstanceChargePrepaid; } /** * Set Advance payment mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. * @param InstanceChargePrepaid Advance payment mode, also known as monthly subscription. This parameter can specify the purchase period and other attributes such as auto-renewal. This parameter is mandatory for prepaid instances. */ 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; } 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 - 2025 Weber Informatics LLC | Privacy Policy