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

com.tencentcloudapi.cvm.v20170312.models.DescribeReservedInstancesOfferingsRequest 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.cvm.v20170312.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class DescribeReservedInstancesOfferingsRequest extends AbstractModel{

    /**
    * Dry run. Default value: false.
    */
    @SerializedName("DryRun")
    @Expose
    private Boolean DryRun;

    /**
    * The offset. Default value: 0. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
    */
    @SerializedName("Offset")
    @Expose
    private Long Offset;

    /**
    * The number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
    */
    @SerializedName("Limit")
    @Expose
    private Long Limit;

    /**
    * The maximum duration as a filter, 
in seconds.
Default value: 94608000.
    */
    @SerializedName("MaxDuration")
    @Expose
    private Long MaxDuration;

    /**
    * The minimum duration as a filter, 
in seconds.
Default value: 2592000.
    */
    @SerializedName("MinDuration")
    @Expose
    private Long MinDuration;

    /**
    * 
  • zone
  • Filters by the availability zones in which the Reserved Instances can be purchased, such as ap-guangzhou-1.

    Type: String

    Required: no

    Valid values: please see Availability Zones

  • duration
  • Filters by the duration of the Reserved Instance, in seconds. For example, 31536000.

    Type: Integer

    Unit: second

    Required: no

    Valid values: 31536000 (1 year) | 94608000 (3 years)

  • instance-type
  • Filters by type of the Reserved Instance, such as `S3.MEDIUM4`.

    Type: String

    Required: no

    Valid values: please see Instance Types

  • offering-type
  • Filters by **payment term**, such as `All Upfront`.

    Type: String

    Required: no

    Valid value: All Upfront

  • product-description
  • Filters by the platform description (operating system) of the Reserved Instance, such as `linux`.

    Type: String

    Required: no

    Valid value: linux

  • reserved-instances-offering-id
  • Filters by Reserved Instance ID, in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.

    Type: String

    Required: no

    Each request can have up to 10 `Filters` and 5 `Filter.Values`. */ @SerializedName("Filters") @Expose private Filter [] Filters; /** * Get Dry run. Default value: false. * @return DryRun Dry run. Default value: false. */ public Boolean getDryRun() { return this.DryRun; } /** * Set Dry run. Default value: false. * @param DryRun Dry run. Default value: false. */ public void setDryRun(Boolean DryRun) { this.DryRun = DryRun; } /** * Get The offset. Default value: 0. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). * @return Offset The offset. Default value: 0. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). */ public Long getOffset() { return this.Offset; } /** * Set The offset. Default value: 0. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). * @param Offset The offset. Default value: 0. For more information on `Offset`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). */ public void setOffset(Long Offset) { this.Offset = Offset; } /** * Get The number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). * @return Limit The number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). */ public Long getLimit() { return this.Limit; } /** * Set The number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). * @param Limit The number of returned results. Default value: 20. Maximum value: 100. For more information on `Limit`, see the relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). */ public void setLimit(Long Limit) { this.Limit = Limit; } /** * Get The maximum duration as a filter, in seconds. Default value: 94608000. * @return MaxDuration The maximum duration as a filter, in seconds. Default value: 94608000. */ public Long getMaxDuration() { return this.MaxDuration; } /** * Set The maximum duration as a filter, in seconds. Default value: 94608000. * @param MaxDuration The maximum duration as a filter, in seconds. Default value: 94608000. */ public void setMaxDuration(Long MaxDuration) { this.MaxDuration = MaxDuration; } /** * Get The minimum duration as a filter, in seconds. Default value: 2592000. * @return MinDuration The minimum duration as a filter, in seconds. Default value: 2592000. */ public Long getMinDuration() { return this.MinDuration; } /** * Set The minimum duration as a filter, in seconds. Default value: 2592000. * @param MinDuration The minimum duration as a filter, in seconds. Default value: 2592000. */ public void setMinDuration(Long MinDuration) { this.MinDuration = MinDuration; } /** * Get
  • zone
  • Filters by the availability zones in which the Reserved Instances can be purchased, such as ap-guangzhou-1.

    Type: String

    Required: no

    Valid values: please see Availability Zones

  • duration
  • Filters by the duration of the Reserved Instance, in seconds. For example, 31536000.

    Type: Integer

    Unit: second

    Required: no

    Valid values: 31536000 (1 year) | 94608000 (3 years)

  • instance-type
  • Filters by type of the Reserved Instance, such as `S3.MEDIUM4`.

    Type: String

    Required: no

    Valid values: please see Instance Types

  • offering-type
  • Filters by **payment term**, such as `All Upfront`.

    Type: String

    Required: no

    Valid value: All Upfront

  • product-description
  • Filters by the platform description (operating system) of the Reserved Instance, such as `linux`.

    Type: String

    Required: no

    Valid value: linux

  • reserved-instances-offering-id
  • Filters by Reserved Instance ID, in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.

    Type: String

    Required: no

    Each request can have up to 10 `Filters` and 5 `Filter.Values`. * @return Filters
  • zone
  • Filters by the availability zones in which the Reserved Instances can be purchased, such as ap-guangzhou-1.

    Type: String

    Required: no

    Valid values: please see Availability Zones

  • duration
  • Filters by the duration of the Reserved Instance, in seconds. For example, 31536000.

    Type: Integer

    Unit: second

    Required: no

    Valid values: 31536000 (1 year) | 94608000 (3 years)

  • instance-type
  • Filters by type of the Reserved Instance, such as `S3.MEDIUM4`.

    Type: String

    Required: no

    Valid values: please see Instance Types

  • offering-type
  • Filters by **payment term**, such as `All Upfront`.

    Type: String

    Required: no

    Valid value: All Upfront

  • product-description
  • Filters by the platform description (operating system) of the Reserved Instance, such as `linux`.

    Type: String

    Required: no

    Valid value: linux

  • reserved-instances-offering-id
  • Filters by Reserved Instance ID, in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.

    Type: String

    Required: no

    Each request can have up to 10 `Filters` and 5 `Filter.Values`. */ public Filter [] getFilters() { return this.Filters; } /** * Set
  • zone
  • Filters by the availability zones in which the Reserved Instances can be purchased, such as ap-guangzhou-1.

    Type: String

    Required: no

    Valid values: please see Availability Zones

  • duration
  • Filters by the duration of the Reserved Instance, in seconds. For example, 31536000.

    Type: Integer

    Unit: second

    Required: no

    Valid values: 31536000 (1 year) | 94608000 (3 years)

  • instance-type
  • Filters by type of the Reserved Instance, such as `S3.MEDIUM4`.

    Type: String

    Required: no

    Valid values: please see Instance Types

  • offering-type
  • Filters by **payment term**, such as `All Upfront`.

    Type: String

    Required: no

    Valid value: All Upfront

  • product-description
  • Filters by the platform description (operating system) of the Reserved Instance, such as `linux`.

    Type: String

    Required: no

    Valid value: linux

  • reserved-instances-offering-id
  • Filters by Reserved Instance ID, in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.

    Type: String

    Required: no

    Each request can have up to 10 `Filters` and 5 `Filter.Values`. * @param Filters
  • zone
  • Filters by the availability zones in which the Reserved Instances can be purchased, such as ap-guangzhou-1.

    Type: String

    Required: no

    Valid values: please see Availability Zones

  • duration
  • Filters by the duration of the Reserved Instance, in seconds. For example, 31536000.

    Type: Integer

    Unit: second

    Required: no

    Valid values: 31536000 (1 year) | 94608000 (3 years)

  • instance-type
  • Filters by type of the Reserved Instance, such as `S3.MEDIUM4`.

    Type: String

    Required: no

    Valid values: please see Instance Types

  • offering-type
  • Filters by **payment term**, such as `All Upfront`.

    Type: String

    Required: no

    Valid value: All Upfront

  • product-description
  • Filters by the platform description (operating system) of the Reserved Instance, such as `linux`.

    Type: String

    Required: no

    Valid value: linux

  • reserved-instances-offering-id
  • Filters by Reserved Instance ID, in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.

    Type: String

    Required: no

    Each request can have up to 10 `Filters` and 5 `Filter.Values`. */ public void setFilters(Filter [] Filters) { this.Filters = Filters; } public DescribeReservedInstancesOfferingsRequest() { } /** * 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 DescribeReservedInstancesOfferingsRequest(DescribeReservedInstancesOfferingsRequest source) { if (source.DryRun != null) { this.DryRun = new Boolean(source.DryRun); } if (source.Offset != null) { this.Offset = new Long(source.Offset); } if (source.Limit != null) { this.Limit = new Long(source.Limit); } if (source.MaxDuration != null) { this.MaxDuration = new Long(source.MaxDuration); } if (source.MinDuration != null) { this.MinDuration = new Long(source.MinDuration); } if (source.Filters != null) { this.Filters = new Filter[source.Filters.length]; for (int i = 0; i < source.Filters.length; i++) { this.Filters[i] = new Filter(source.Filters[i]); } } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "DryRun", this.DryRun); this.setParamSimple(map, prefix + "Offset", this.Offset); this.setParamSimple(map, prefix + "Limit", this.Limit); this.setParamSimple(map, prefix + "MaxDuration", this.MaxDuration); this.setParamSimple(map, prefix + "MinDuration", this.MinDuration); this.setParamArrayObj(map, prefix + "Filters.", this.Filters); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy