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

com.tencentcloudapi.cvm.v20170312.models.LaunchTemplateVersionData 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.cvm.v20170312.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 LaunchTemplateVersionData extends AbstractModel {

    /**
    * Location of the instance.
Note: This field may return `null`, indicating that no valid values can be obtained.
    */
    @SerializedName("Placement")
    @Expose
    private Placement Placement;

    /**
    * Instance model.
Note: This field may return `null`, indicating that no valid values can be obtained.
    */
    @SerializedName("InstanceType")
    @Expose
    private String InstanceType;

    /**
    * Instance name.
Note: This field may return `null`, indicating that no valid values can be obtained.
    */
    @SerializedName("InstanceName")
    @Expose
    private String InstanceName;

    /**
    * Instance billing mode. Valid values: 
  • `POSTPAID_BY_HOUR`: postpaid for pay-as-you-go instances
  • `CDHPAID`: billed for CDH instances, not the CVMs running on the CDHs.
    Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("InstanceChargeType") @Expose private String InstanceChargeType; /** * Instance system disk information. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("SystemDisk") @Expose private SystemDisk SystemDisk; /** * Instance data disk information. This parameter only covers the data disks purchased together with the instance. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("DataDisks") @Expose private DataDisk [] DataDisks; /** * Instance bandwidth information. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("InternetAccessible") @Expose private InternetAccessible InternetAccessible; /** * Information of the VPC where the instance resides. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("VirtualPrivateCloud") @Expose private VirtualPrivateCloud VirtualPrivateCloud; /** * `ID` of the image used to create the instance. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("ImageId") @Expose private String ImageId; /** * Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("SecurityGroupIds") @Expose private String [] SecurityGroupIds; /** * Login settings of the instance. Currently, only the key associated with the instance is returned. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("LoginSettings") @Expose private LoginSettings LoginSettings; /** * CAM role name. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("CamRoleName") @Expose private String CamRoleName; /** * HPC cluster `ID`. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("HpcClusterId") @Expose private String HpcClusterId; /** * Number of instances purchased. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("InstanceCount") @Expose private Long InstanceCount; /** * Enhanced service. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("EnhancedService") @Expose private EnhancedService EnhancedService; /** * User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16KB. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("UserData") @Expose private String UserData; /** * Placement group ID. You can only specify one. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("DisasterRecoverGroupIds") @Expose private String [] DisasterRecoverGroupIds; /** * Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("ActionTimer") @Expose private ActionTimer ActionTimer; /** * Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("InstanceMarketOptions") @Expose private InstanceMarketOptionsRequest InstanceMarketOptions; /** * Hostname of a CVM. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("HostName") @Expose private String HostName; /** * A string used to ensure the idempotency of the request. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("ClientToken") @Expose private String ClientToken; /** * Prepaid mode. This parameter indicates relevant parameter settings for monthly-subscribed instances. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("InstanceChargePrepaid") @Expose private InstanceChargePrepaid InstanceChargePrepaid; /** * List of tag description. By specifying this parameter, the tag can be bound to the corresponding CVM and CBS instances at the same time. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("TagSpecification") @Expose private TagSpecification [] TagSpecification; /** * Whether to enable termination protection. Valid values: TRUE: Termination protection is enabled. FALSE: Termination protection is disabled. Default value: `FALSE`. Note: This field may return `null`, indicating that no valid values can be obtained. */ @SerializedName("DisableApiTermination") @Expose private Boolean DisableApiTermination; /** * Get Location of the instance. Note: This field may return `null`, indicating that no valid values can be obtained. * @return Placement Location of the instance. Note: This field may return `null`, indicating that no valid values can be obtained. */ public Placement getPlacement() { return this.Placement; } /** * Set Location of the instance. Note: This field may return `null`, indicating that no valid values can be obtained. * @param Placement Location of the instance. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setPlacement(Placement Placement) { this.Placement = Placement; } /** * Get Instance model. Note: This field may return `null`, indicating that no valid values can be obtained. * @return InstanceType Instance model. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getInstanceType() { return this.InstanceType; } /** * Set Instance model. Note: This field may return `null`, indicating that no valid values can be obtained. * @param InstanceType Instance model. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setInstanceType(String InstanceType) { this.InstanceType = InstanceType; } /** * Get Instance name. Note: This field may return `null`, indicating that no valid values can be obtained. * @return InstanceName Instance name. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getInstanceName() { return this.InstanceName; } /** * Set Instance name. Note: This field may return `null`, indicating that no valid values can be obtained. * @param InstanceName Instance name. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setInstanceName(String InstanceName) { this.InstanceName = InstanceName; } /** * Get Instance billing mode. Valid values:
  • `POSTPAID_BY_HOUR`: postpaid for pay-as-you-go instances
  • `CDHPAID`: billed for CDH instances, not the CVMs running on the CDHs.
    Note: This field may return `null`, indicating that no valid values can be obtained. * @return InstanceChargeType Instance billing mode. Valid values:
  • `POSTPAID_BY_HOUR`: postpaid for pay-as-you-go instances
  • `CDHPAID`: billed for CDH instances, not the CVMs running on the CDHs.
    Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getInstanceChargeType() { return this.InstanceChargeType; } /** * Set Instance billing mode. Valid values:
  • `POSTPAID_BY_HOUR`: postpaid for pay-as-you-go instances
  • `CDHPAID`: billed for CDH instances, not the CVMs running on the CDHs.
    Note: This field may return `null`, indicating that no valid values can be obtained. * @param InstanceChargeType Instance billing mode. Valid values:
  • `POSTPAID_BY_HOUR`: postpaid for pay-as-you-go instances
  • `CDHPAID`: billed for CDH instances, not the CVMs running on the CDHs.
    Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setInstanceChargeType(String InstanceChargeType) { this.InstanceChargeType = InstanceChargeType; } /** * Get Instance system disk information. Note: This field may return `null`, indicating that no valid values can be obtained. * @return SystemDisk Instance system disk information. Note: This field may return `null`, indicating that no valid values can be obtained. */ public SystemDisk getSystemDisk() { return this.SystemDisk; } /** * Set Instance system disk information. Note: This field may return `null`, indicating that no valid values can be obtained. * @param SystemDisk Instance system disk information. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setSystemDisk(SystemDisk SystemDisk) { this.SystemDisk = SystemDisk; } /** * Get Instance data disk information. This parameter only covers the data disks purchased together with the instance. Note: This field may return `null`, indicating that no valid values can be obtained. * @return DataDisks Instance data disk information. This parameter only covers the data disks purchased together with the instance. Note: This field may return `null`, indicating that no valid values can be obtained. */ public DataDisk [] getDataDisks() { return this.DataDisks; } /** * Set Instance data disk information. This parameter only covers the data disks purchased together with the instance. Note: This field may return `null`, indicating that no valid values can be obtained. * @param DataDisks Instance data disk information. This parameter only covers the data disks purchased together with the instance. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setDataDisks(DataDisk [] DataDisks) { this.DataDisks = DataDisks; } /** * Get Instance bandwidth information. Note: This field may return `null`, indicating that no valid values can be obtained. * @return InternetAccessible Instance bandwidth information. Note: This field may return `null`, indicating that no valid values can be obtained. */ public InternetAccessible getInternetAccessible() { return this.InternetAccessible; } /** * Set Instance bandwidth information. Note: This field may return `null`, indicating that no valid values can be obtained. * @param InternetAccessible Instance bandwidth information. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setInternetAccessible(InternetAccessible InternetAccessible) { this.InternetAccessible = InternetAccessible; } /** * Get Information of the VPC where the instance resides. Note: This field may return `null`, indicating that no valid values can be obtained. * @return VirtualPrivateCloud Information of the VPC where the instance resides. Note: This field may return `null`, indicating that no valid values can be obtained. */ public VirtualPrivateCloud getVirtualPrivateCloud() { return this.VirtualPrivateCloud; } /** * Set Information of the VPC where the instance resides. Note: This field may return `null`, indicating that no valid values can be obtained. * @param VirtualPrivateCloud Information of the VPC where the instance resides. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setVirtualPrivateCloud(VirtualPrivateCloud VirtualPrivateCloud) { this.VirtualPrivateCloud = VirtualPrivateCloud; } /** * Get `ID` of the image used to create the instance. Note: This field may return `null`, indicating that no valid values can be obtained. * @return ImageId `ID` of the image used to create the instance. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getImageId() { return this.ImageId; } /** * Set `ID` of the image used to create the instance. Note: This field may return `null`, indicating that no valid values can be obtained. * @param ImageId `ID` of the image used to create the instance. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setImageId(String ImageId) { this.ImageId = ImageId; } /** * Get Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. Note: This field may return `null`, indicating that no valid values can be obtained. * @return SecurityGroupIds Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String [] getSecurityGroupIds() { return this.SecurityGroupIds; } /** * Set Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. Note: This field may return `null`, indicating that no valid values can be obtained. * @param SecurityGroupIds Security groups to which the instance belongs. To obtain the security group IDs, you can call [DescribeSecurityGroups](https://intl.cloud.tencent.com/document/api/215/15808) and look for the `sgld` fields in the response. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setSecurityGroupIds(String [] SecurityGroupIds) { this.SecurityGroupIds = SecurityGroupIds; } /** * Get Login settings of the instance. Currently, only the key associated with the instance is returned. Note: This field may return `null`, indicating that no valid values can be obtained. * @return LoginSettings Login settings of the instance. Currently, only the key associated with the instance is returned. Note: This field may return `null`, indicating that no valid values can be obtained. */ public LoginSettings getLoginSettings() { return this.LoginSettings; } /** * Set Login settings of the instance. Currently, only the key associated with the instance is returned. Note: This field may return `null`, indicating that no valid values can be obtained. * @param LoginSettings Login settings of the instance. Currently, only the key associated with the instance is returned. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setLoginSettings(LoginSettings LoginSettings) { this.LoginSettings = LoginSettings; } /** * Get CAM role name. Note: This field may return `null`, indicating that no valid values can be obtained. * @return CamRoleName CAM role name. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getCamRoleName() { return this.CamRoleName; } /** * Set CAM role name. Note: This field may return `null`, indicating that no valid values can be obtained. * @param CamRoleName CAM role name. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setCamRoleName(String CamRoleName) { this.CamRoleName = CamRoleName; } /** * Get HPC cluster `ID`. Note: This field may return `null`, indicating that no valid values can be obtained. * @return HpcClusterId HPC cluster `ID`. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getHpcClusterId() { return this.HpcClusterId; } /** * Set HPC cluster `ID`. Note: This field may return `null`, indicating that no valid values can be obtained. * @param HpcClusterId HPC cluster `ID`. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setHpcClusterId(String HpcClusterId) { this.HpcClusterId = HpcClusterId; } /** * Get Number of instances purchased. Note: This field may return `null`, indicating that no valid values can be obtained. * @return InstanceCount Number of instances purchased. Note: This field may return `null`, indicating that no valid values can be obtained. */ public Long getInstanceCount() { return this.InstanceCount; } /** * Set Number of instances purchased. Note: This field may return `null`, indicating that no valid values can be obtained. * @param InstanceCount Number of instances purchased. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setInstanceCount(Long InstanceCount) { this.InstanceCount = InstanceCount; } /** * Get Enhanced service. Note: This field may return `null`, indicating that no valid values can be obtained. * @return EnhancedService Enhanced service. Note: This field may return `null`, indicating that no valid values can be obtained. */ public EnhancedService getEnhancedService() { return this.EnhancedService; } /** * Set Enhanced service. Note: This field may return `null`, indicating that no valid values can be obtained. * @param EnhancedService Enhanced service. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setEnhancedService(EnhancedService EnhancedService) { this.EnhancedService = EnhancedService; } /** * Get User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16KB. Note: This field may return `null`, indicating that no valid values can be obtained. * @return UserData User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16KB. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getUserData() { return this.UserData; } /** * Set User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16KB. Note: This field may return `null`, indicating that no valid values can be obtained. * @param UserData User data provided to the instance. This parameter needs to be encoded in base64 format with the maximum size of 16KB. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setUserData(String UserData) { this.UserData = UserData; } /** * Get Placement group ID. You can only specify one. Note: This field may return `null`, indicating that no valid values can be obtained. * @return DisasterRecoverGroupIds Placement group ID. You can only specify one. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String [] getDisasterRecoverGroupIds() { return this.DisasterRecoverGroupIds; } /** * Set Placement group ID. You can only specify one. Note: This field may return `null`, indicating that no valid values can be obtained. * @param DisasterRecoverGroupIds Placement group ID. You can only specify one. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setDisasterRecoverGroupIds(String [] DisasterRecoverGroupIds) { this.DisasterRecoverGroupIds = DisasterRecoverGroupIds; } /** * Get Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported. Note: This field may return `null`, indicating that no valid values can be obtained. * @return ActionTimer Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported. Note: This field may return `null`, indicating that no valid values can be obtained. */ public ActionTimer getActionTimer() { return this.ActionTimer; } /** * Set Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported. Note: This field may return `null`, indicating that no valid values can be obtained. * @param ActionTimer Scheduled tasks. You can use this parameter to specify scheduled tasks for the instance. Only scheduled termination is supported. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setActionTimer(ActionTimer ActionTimer) { this.ActionTimer = ActionTimer; } /** * Get Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. Note: This field may return `null`, indicating that no valid values can be obtained. * @return InstanceMarketOptions Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. Note: This field may return `null`, indicating that no valid values can be obtained. */ 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. Note: This field may return `null`, indicating that no valid values can be obtained. * @param InstanceMarketOptions Market options of the instance, such as parameters related to spot instances. This parameter is required for spot instances. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions) { this.InstanceMarketOptions = InstanceMarketOptions; } /** * Get Hostname of a CVM. Note: This field may return `null`, indicating that no valid values can be obtained. * @return HostName Hostname of a CVM. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getHostName() { return this.HostName; } /** * Set Hostname of a CVM. Note: This field may return `null`, indicating that no valid values can be obtained. * @param HostName Hostname of a CVM. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setHostName(String HostName) { this.HostName = HostName; } /** * Get A string used to ensure the idempotency of the request. Note: This field may return `null`, indicating that no valid values can be obtained. * @return ClientToken A string used to ensure the idempotency of the request. Note: This field may return `null`, indicating that no valid values can be obtained. */ public String getClientToken() { return this.ClientToken; } /** * Set A string used to ensure the idempotency of the request. Note: This field may return `null`, indicating that no valid values can be obtained. * @param ClientToken A string used to ensure the idempotency of the request. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setClientToken(String ClientToken) { this.ClientToken = ClientToken; } /** * Get Prepaid mode. This parameter indicates relevant parameter settings for monthly-subscribed instances. Note: This field may return `null`, indicating that no valid values can be obtained. * @return InstanceChargePrepaid Prepaid mode. This parameter indicates relevant parameter settings for monthly-subscribed instances. Note: This field may return `null`, indicating that no valid values can be obtained. */ public InstanceChargePrepaid getInstanceChargePrepaid() { return this.InstanceChargePrepaid; } /** * Set Prepaid mode. This parameter indicates relevant parameter settings for monthly-subscribed instances. Note: This field may return `null`, indicating that no valid values can be obtained. * @param InstanceChargePrepaid Prepaid mode. This parameter indicates relevant parameter settings for monthly-subscribed instances. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid) { this.InstanceChargePrepaid = InstanceChargePrepaid; } /** * Get List of tag description. By specifying this parameter, the tag can be bound to the corresponding CVM and CBS instances at the same time. Note: This field may return `null`, indicating that no valid values can be obtained. * @return TagSpecification List of tag description. By specifying this parameter, the tag can be bound to the corresponding CVM and CBS instances at the same time. Note: This field may return `null`, indicating that no valid values can be obtained. */ public TagSpecification [] getTagSpecification() { return this.TagSpecification; } /** * Set List of tag description. By specifying this parameter, the tag can be bound to the corresponding CVM and CBS instances at the same time. Note: This field may return `null`, indicating that no valid values can be obtained. * @param TagSpecification List of tag description. By specifying this parameter, the tag can be bound to the corresponding CVM and CBS instances at the same time. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setTagSpecification(TagSpecification [] TagSpecification) { this.TagSpecification = TagSpecification; } /** * Get Whether to enable termination protection. Valid values: TRUE: Termination protection is enabled. FALSE: Termination protection is disabled. Default value: `FALSE`. Note: This field may return `null`, indicating that no valid values can be obtained. * @return DisableApiTermination Whether to enable termination protection. Valid values: TRUE: Termination protection is enabled. FALSE: Termination protection is disabled. Default value: `FALSE`. Note: This field may return `null`, indicating that no valid values can be obtained. */ public Boolean getDisableApiTermination() { return this.DisableApiTermination; } /** * Set Whether to enable termination protection. Valid values: TRUE: Termination protection is enabled. FALSE: Termination protection is disabled. Default value: `FALSE`. Note: This field may return `null`, indicating that no valid values can be obtained. * @param DisableApiTermination Whether to enable termination protection. Valid values: TRUE: Termination protection is enabled. FALSE: Termination protection is disabled. Default value: `FALSE`. Note: This field may return `null`, indicating that no valid values can be obtained. */ public void setDisableApiTermination(Boolean DisableApiTermination) { this.DisableApiTermination = DisableApiTermination; } public LaunchTemplateVersionData() { } /** * 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 LaunchTemplateVersionData(LaunchTemplateVersionData source) { if (source.Placement != null) { this.Placement = new Placement(source.Placement); } if (source.InstanceType != null) { this.InstanceType = new String(source.InstanceType); } if (source.InstanceName != null) { this.InstanceName = new String(source.InstanceName); } if (source.InstanceChargeType != null) { this.InstanceChargeType = new String(source.InstanceChargeType); } 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.VirtualPrivateCloud != null) { this.VirtualPrivateCloud = new VirtualPrivateCloud(source.VirtualPrivateCloud); } if (source.ImageId != null) { this.ImageId = new String(source.ImageId); } 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.LoginSettings != null) { this.LoginSettings = new LoginSettings(source.LoginSettings); } if (source.CamRoleName != null) { this.CamRoleName = new String(source.CamRoleName); } if (source.HpcClusterId != null) { this.HpcClusterId = new String(source.HpcClusterId); } if (source.InstanceCount != null) { this.InstanceCount = new Long(source.InstanceCount); } if (source.EnhancedService != null) { this.EnhancedService = new EnhancedService(source.EnhancedService); } if (source.UserData != null) { this.UserData = new String(source.UserData); } 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]); } } if (source.ActionTimer != null) { this.ActionTimer = new ActionTimer(source.ActionTimer); } if (source.InstanceMarketOptions != null) { this.InstanceMarketOptions = new InstanceMarketOptionsRequest(source.InstanceMarketOptions); } if (source.HostName != null) { this.HostName = new String(source.HostName); } if (source.ClientToken != null) { this.ClientToken = new String(source.ClientToken); } if (source.InstanceChargePrepaid != null) { this.InstanceChargePrepaid = new InstanceChargePrepaid(source.InstanceChargePrepaid); } if (source.TagSpecification != null) { this.TagSpecification = new TagSpecification[source.TagSpecification.length]; for (int i = 0; i < source.TagSpecification.length; i++) { this.TagSpecification[i] = new TagSpecification(source.TagSpecification[i]); } } if (source.DisableApiTermination != null) { this.DisableApiTermination = new Boolean(source.DisableApiTermination); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamObj(map, prefix + "Placement.", this.Placement); this.setParamSimple(map, prefix + "InstanceType", this.InstanceType); this.setParamSimple(map, prefix + "InstanceName", this.InstanceName); this.setParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType); 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 + "VirtualPrivateCloud.", this.VirtualPrivateCloud); this.setParamSimple(map, prefix + "ImageId", this.ImageId); this.setParamArraySimple(map, prefix + "SecurityGroupIds.", this.SecurityGroupIds); this.setParamObj(map, prefix + "LoginSettings.", this.LoginSettings); this.setParamSimple(map, prefix + "CamRoleName", this.CamRoleName); this.setParamSimple(map, prefix + "HpcClusterId", this.HpcClusterId); this.setParamSimple(map, prefix + "InstanceCount", this.InstanceCount); this.setParamObj(map, prefix + "EnhancedService.", this.EnhancedService); this.setParamSimple(map, prefix + "UserData", this.UserData); this.setParamArraySimple(map, prefix + "DisasterRecoverGroupIds.", this.DisasterRecoverGroupIds); this.setParamObj(map, prefix + "ActionTimer.", this.ActionTimer); this.setParamObj(map, prefix + "InstanceMarketOptions.", this.InstanceMarketOptions); this.setParamSimple(map, prefix + "HostName", this.HostName); this.setParamSimple(map, prefix + "ClientToken", this.ClientToken); this.setParamObj(map, prefix + "InstanceChargePrepaid.", this.InstanceChargePrepaid); this.setParamArrayObj(map, prefix + "TagSpecification.", this.TagSpecification); this.setParamSimple(map, prefix + "DisableApiTermination", this.DisableApiTermination); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy