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

com.tencentcloudapi.as.v20180419.models.ModifyLaunchConfigurationAttributesRequest 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 ModifyLaunchConfigurationAttributesRequest 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 types. Each type specifies different resource specifications. This list contains up to 10 instance types. The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. After `InstanceTypes` is successfully specified for the launch configuration, the original `InstanceType` will be automatically invalidated. */ @SerializedName("InstanceTypes") @Expose private String [] InstanceTypes; /** * Instance type verification policy which works when InstanceTypes is actually modified. 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; /** * 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; /** * Base64-encoded custom data of up to 16 KB. If you want to clear UserData, specify it as an empty string */ @SerializedName("UserData") @Expose private String UserData; /** * Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. At least one security group is required for this parameter. The security group specified is sequential. */ @SerializedName("SecurityGroupIds") @Expose private String [] SecurityGroupIds; /** * Information of the public network bandwidth configuration. To modify it or even its subfield, you should specify all the subfields again. */ @SerializedName("InternetAccessible") @Expose private InternetAccessible InternetAccessible; /** * Instance billing mode. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance */ @SerializedName("InstanceChargeType") @Expose private String InstanceChargeType; /** * */ @SerializedName("InstanceChargePrepaid") @Expose private InstanceChargePrepaid InstanceChargePrepaid; /** * Market-related options for instances, such as parameters related to spot instances. This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after the spot instance is changed to another instance billing mode. To modify it or even its subfield, you should specify all the subfields again. */ @SerializedName("InstanceMarketOptions") @Expose private InstanceMarketOptionsRequest InstanceMarketOptions; /** * 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; /** * Instance system disk configurations */ @SerializedName("SystemDisk") @Expose private SystemDisk SystemDisk; /** * Instance data disk configurations. Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification. */ @SerializedName("DataDisks") @Expose private DataDisk [] DataDisks; /** * 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 types. Each type specifies different resource specifications. This list contains up to 10 instance types. The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. After `InstanceTypes` is successfully specified for the launch configuration, the original `InstanceType` will be automatically invalidated. * @return InstanceTypes List of instance types. Each type specifies different resource specifications. This list contains up to 10 instance types. The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. After `InstanceTypes` is successfully specified for the launch configuration, the original `InstanceType` will be automatically invalidated. */ public String [] getInstanceTypes() { return this.InstanceTypes; } /** * Set List of instance types. Each type specifies different resource specifications. This list contains up to 10 instance types. The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. After `InstanceTypes` is successfully specified for the launch configuration, the original `InstanceType` will be automatically invalidated. * @param InstanceTypes List of instance types. Each type specifies different resource specifications. This list contains up to 10 instance types. The launch configuration uses `InstanceType` to indicate one single instance type and `InstanceTypes` to indicate multiple instance types. After `InstanceTypes` is successfully specified for the launch configuration, the original `InstanceType` will be automatically invalidated. */ public void setInstanceTypes(String [] InstanceTypes) { this.InstanceTypes = InstanceTypes; } /** * Get Instance type verification policy which works when InstanceTypes is actually modified. 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 which works when InstanceTypes is actually modified. 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 which works when InstanceTypes is actually modified. 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 which works when InstanceTypes is actually modified. 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 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 Base64-encoded custom data of up to 16 KB. If you want to clear UserData, specify it as an empty string * @return UserData Base64-encoded custom data of up to 16 KB. If you want to clear UserData, specify it as an empty string */ public String getUserData() { return this.UserData; } /** * Set Base64-encoded custom data of up to 16 KB. If you want to clear UserData, specify it as an empty string * @param UserData Base64-encoded custom data of up to 16 KB. If you want to clear UserData, specify it as an empty string */ public void setUserData(String UserData) { this.UserData = UserData; } /** * Get Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. At least one security group is required for this parameter. The security group specified is sequential. * @return SecurityGroupIds Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. At least one security group is required for this parameter. The security group specified is sequential. */ public String [] getSecurityGroupIds() { return this.SecurityGroupIds; } /** * Set Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. At least one security group is required for this parameter. The security group specified is sequential. * @param SecurityGroupIds Security group to which the instance belongs. This parameter can be obtained from the `SecurityGroupId` field in the response of the [`DescribeSecurityGroups`](https://intl.cloud.tencent.com/document/api/215/15808?from_cn_redirect=1) API. At least one security group is required for this parameter. The security group specified is sequential. */ public void setSecurityGroupIds(String [] SecurityGroupIds) { this.SecurityGroupIds = SecurityGroupIds; } /** * Get Information of the public network bandwidth configuration. To modify it or even its subfield, you should specify all the subfields again. * @return InternetAccessible Information of the public network bandwidth configuration. To modify it or even its subfield, you should specify all the subfields again. */ public InternetAccessible getInternetAccessible() { return this.InternetAccessible; } /** * Set Information of the public network bandwidth configuration. To modify it or even its subfield, you should specify all the subfields again. * @param InternetAccessible Information of the public network bandwidth configuration. To modify it or even its subfield, you should specify all the subfields again. */ public void setInternetAccessible(InternetAccessible InternetAccessible) { this.InternetAccessible = InternetAccessible; } /** * Get Instance billing mode. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance * @return InstanceChargeType Instance billing mode. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance */ public String getInstanceChargeType() { return this.InstanceChargeType; } /** * Set Instance billing mode. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance * @param InstanceChargeType Instance billing mode. Valid values:
  • POSTPAID_BY_HOUR: pay-as-you-go hourly
  • SPOTPAID: spot instance */ public void setInstanceChargeType(String InstanceChargeType) { this.InstanceChargeType = InstanceChargeType; } /** * Get * @return InstanceChargePrepaid */ public InstanceChargePrepaid getInstanceChargePrepaid() { return this.InstanceChargePrepaid; } /** * Set * @param InstanceChargePrepaid */ public void setInstanceChargePrepaid(InstanceChargePrepaid InstanceChargePrepaid) { this.InstanceChargePrepaid = InstanceChargePrepaid; } /** * Get Market-related options for instances, such as parameters related to spot instances. This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after the spot instance is changed to another instance billing mode. To modify it or even its subfield, you should specify all the subfields again. * @return InstanceMarketOptions Market-related options for instances, such as parameters related to spot instances. This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after the spot instance is changed to another instance billing mode. To modify it or even its subfield, you should specify all the subfields again. */ public InstanceMarketOptionsRequest getInstanceMarketOptions() { return this.InstanceMarketOptions; } /** * Set Market-related options for instances, such as parameters related to spot instances. This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after the spot instance is changed to another instance billing mode. To modify it or even its subfield, you should specify all the subfields again. * @param InstanceMarketOptions Market-related options for instances, such as parameters related to spot instances. This parameter is required when changing the instance billing mode to spot instance. It will be automatically discarded after the spot instance is changed to another instance billing mode. To modify it or even its subfield, you should specify all the subfields again. */ public void setInstanceMarketOptions(InstanceMarketOptionsRequest InstanceMarketOptions) { this.InstanceMarketOptions = InstanceMarketOptions; } /** * Get Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type * @return DiskTypePolicy Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type */ public String getDiskTypePolicy() { return this.DiskTypePolicy; } /** * Set Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type * @param DiskTypePolicy Selection policy of cloud disks. Default value: ORIGINAL. Valid values:
  • ORIGINAL: uses the configured cloud disk type
  • AUTOMATIC: automatically chooses an available cloud disk type */ public void setDiskTypePolicy(String DiskTypePolicy) { this.DiskTypePolicy = DiskTypePolicy; } /** * Get Instance system disk configurations * @return SystemDisk Instance system disk configurations */ public SystemDisk getSystemDisk() { return this.SystemDisk; } /** * Set Instance system disk configurations * @param SystemDisk Instance system disk configurations */ public void setSystemDisk(SystemDisk SystemDisk) { this.SystemDisk = SystemDisk; } /** * Get Instance data disk configurations. Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification. * @return DataDisks Instance data disk configurations. Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification. */ public DataDisk [] getDataDisks() { return this.DataDisks; } /** * Set Instance data disk configurations. Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification. * @param DataDisks Instance data disk configurations. Up to 11 data disks can be specified and will be collectively modified. Please provide all the new values for the modification. */ public void setDataDisks(DataDisk [] DataDisks) { this.DataDisks = DataDisks; } public ModifyLaunchConfigurationAttributesRequest() { } /** * 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 ModifyLaunchConfigurationAttributesRequest(ModifyLaunchConfigurationAttributesRequest 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.InstanceTypesCheckPolicy != null) { this.InstanceTypesCheckPolicy = new String(source.InstanceTypesCheckPolicy); } if (source.LaunchConfigurationName != null) { this.LaunchConfigurationName = new String(source.LaunchConfigurationName); } if (source.UserData != null) { this.UserData = new String(source.UserData); } 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.InternetAccessible != null) { this.InternetAccessible = new InternetAccessible(source.InternetAccessible); } if (source.InstanceChargeType != null) { this.InstanceChargeType = new String(source.InstanceChargeType); } if (source.InstanceChargePrepaid != null) { this.InstanceChargePrepaid = new InstanceChargePrepaid(source.InstanceChargePrepaid); } if (source.InstanceMarketOptions != null) { this.InstanceMarketOptions = new InstanceMarketOptionsRequest(source.InstanceMarketOptions); } if (source.DiskTypePolicy != null) { this.DiskTypePolicy = new String(source.DiskTypePolicy); } 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]); } } } /** * 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 + "InstanceTypesCheckPolicy", this.InstanceTypesCheckPolicy); this.setParamSimple(map, prefix + "LaunchConfigurationName", this.LaunchConfigurationName); this.setParamSimple(map, prefix + "UserData", this.UserData); this.setParamArraySimple(map, prefix + "SecurityGroupIds.", this.SecurityGroupIds); this.setParamObj(map, prefix + "InternetAccessible.", this.InternetAccessible); this.setParamSimple(map, prefix + "InstanceChargeType", this.InstanceChargeType); this.setParamObj(map, prefix + "InstanceChargePrepaid.", this.InstanceChargePrepaid); this.setParamObj(map, prefix + "InstanceMarketOptions.", this.InstanceMarketOptions); this.setParamSimple(map, prefix + "DiskTypePolicy", this.DiskTypePolicy); this.setParamObj(map, prefix + "SystemDisk.", this.SystemDisk); this.setParamArrayObj(map, prefix + "DataDisks.", this.DataDisks); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy