
com.tencentcloudapi.as.v20180419.models.UpgradeLaunchConfigurationRequest Maven / Gradle / Ivy
/*
* 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;
/**
* [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;
/**
* 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 letters, digits, underscores and hyphens (-), and dots. Up to of 60 bytes allowed..
*/
@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 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;
/**
* Instance billing type. CVM instances are POSTPAID_BY_HOUR by default.
POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis
SPOTPAID: Bidding
*/
@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;
/**
* 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;
/**
* 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;
/**
* Project ID of the instance. Leave it blank as the default.
*/
@SerializedName("ProjectId")
@Expose
private Long ProjectId;
/**
* 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;
/**
* System disk configuration of the instance. If this parameter is not specified, the default value will be used.
*/
@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;
/**
* 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;
/**
* 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 [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 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 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 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 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 Instance billing type. CVM instances are POSTPAID_BY_HOUR by default.
POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis
SPOTPAID: Bidding
* @return InstanceChargeType Instance billing type. CVM instances are POSTPAID_BY_HOUR by default.
POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis
SPOTPAID: Bidding
*/
public String getInstanceChargeType() {
return this.InstanceChargeType;
}
/**
* Set Instance billing type. CVM instances are POSTPAID_BY_HOUR by default.
POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis
SPOTPAID: Bidding
* @param InstanceChargeType Instance billing type. CVM instances are POSTPAID_BY_HOUR by default.
POSTPAID_BY_HOUR: Pay-as-you-go on an hourly basis
SPOTPAID: Bidding
*/
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 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 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 Project ID of the instance. Leave it blank as the default.
* @return ProjectId Project ID of the instance. Leave it blank as the default.
*/
public Long getProjectId() {
return this.ProjectId;
}
/**
* Set Project ID of the instance. Leave it blank as the default.
* @param ProjectId Project ID of the instance. Leave it blank as the default.
*/
public void setProjectId(Long ProjectId) {
this.ProjectId = ProjectId;
}
/**
* 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 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 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 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;
}
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