com.tencentcloudapi.cvm.v20170312.models.DescribeReservedInstancesRequest 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.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 DescribeReservedInstancesRequest extends AbstractModel{
/**
* Dry run. The default is false.
*/
@SerializedName("DryRun")
@Expose
private Boolean DryRun;
/**
* Offset. The default value is 0. For more information on `Offset`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* Number of returned results. The default value is 20. The maximum is 100. For more information on `Limit`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* zone
Filters by availability zone in which reserved instances can be purchased, such as `ap-guangzhou-1`.
Type: String
Required: no
Valid values: please see Availability Zones
duration
Filters by validity period of the reserved instance, such as `31536000`.
Type: Integer
Unit: second
Required: no
Valid value: 31536000 (1 year)
instance-type
Filters by specification of the reserved instance, such as `S3.MEDIUM4`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
instance-family
Filters by type of the reserved instance, such as `S3`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
offering-type
offering-type
Filters by payment method, such as `All Upfront`.
Type: String
Required: no
Valid values: All Upfront | Partial Upfront | No Upfront
product-description
Filters by platform description (operating system) of the reserved instance, such as `linux`.
Type: String
Required: no
Valid value: linux
reserved-instances-id
Filters by reserved instance ID in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.
Type: String
Required: no
state
Filters by reserved instance status, such as `active`.
Type: String
Required: no
Valid values: active (created) | pending (waiting to be created) | retired (expired)
Each request can have up to 10 `Filters` and 5 `Filter.Values`.
*/
@SerializedName("Filters")
@Expose
private Filter [] Filters;
/**
* Get Dry run. The default is false.
* @return DryRun Dry run. The default is false.
*/
public Boolean getDryRun() {
return this.DryRun;
}
/**
* Set Dry run. The default is false.
* @param DryRun Dry run. The default is false.
*/
public void setDryRun(Boolean DryRun) {
this.DryRun = DryRun;
}
/**
* Get Offset. The default value is 0. For more information on `Offset`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
* @return Offset Offset. The default value is 0. For more information on `Offset`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set Offset. The default value is 0. For more information on `Offset`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
* @param Offset Offset. The default value is 0. For more information on `Offset`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get Number of returned results. The default value is 20. The maximum is 100. For more information on `Limit`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
* @return Limit Number of returned results. The default value is 20. The maximum is 100. For more information on `Limit`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set Number of returned results. The default value is 20. The maximum is 100. For more information on `Limit`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
* @param Limit Number of returned results. The default value is 20. The maximum is 100. For more information on `Limit`, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get zone
Filters by availability zone in which reserved instances can be purchased, such as `ap-guangzhou-1`.
Type: String
Required: no
Valid values: please see Availability Zones
duration
Filters by validity period of the reserved instance, such as `31536000`.
Type: Integer
Unit: second
Required: no
Valid value: 31536000 (1 year)
instance-type
Filters by specification of the reserved instance, such as `S3.MEDIUM4`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
instance-family
Filters by type of the reserved instance, such as `S3`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
offering-type
offering-type
Filters by payment method, such as `All Upfront`.
Type: String
Required: no
Valid values: All Upfront | Partial Upfront | No Upfront
product-description
Filters by platform description (operating system) of the reserved instance, such as `linux`.
Type: String
Required: no
Valid value: linux
reserved-instances-id
Filters by reserved instance ID in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.
Type: String
Required: no
state
Filters by reserved instance status, such as `active`.
Type: String
Required: no
Valid values: active (created) | pending (waiting to be created) | retired (expired)
Each request can have up to 10 `Filters` and 5 `Filter.Values`.
* @return Filters zone
Filters by availability zone in which reserved instances can be purchased, such as `ap-guangzhou-1`.
Type: String
Required: no
Valid values: please see Availability Zones
duration
Filters by validity period of the reserved instance, such as `31536000`.
Type: Integer
Unit: second
Required: no
Valid value: 31536000 (1 year)
instance-type
Filters by specification of the reserved instance, such as `S3.MEDIUM4`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
instance-family
Filters by type of the reserved instance, such as `S3`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
offering-type
offering-type
Filters by payment method, such as `All Upfront`.
Type: String
Required: no
Valid values: All Upfront | Partial Upfront | No Upfront
product-description
Filters by platform description (operating system) of the reserved instance, such as `linux`.
Type: String
Required: no
Valid value: linux
reserved-instances-id
Filters by reserved instance ID in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.
Type: String
Required: no
state
Filters by reserved instance status, such as `active`.
Type: String
Required: no
Valid values: active (created) | pending (waiting to be created) | retired (expired)
Each request can have up to 10 `Filters` and 5 `Filter.Values`.
*/
public Filter [] getFilters() {
return this.Filters;
}
/**
* Set zone
Filters by availability zone in which reserved instances can be purchased, such as `ap-guangzhou-1`.
Type: String
Required: no
Valid values: please see Availability Zones
duration
Filters by validity period of the reserved instance, such as `31536000`.
Type: Integer
Unit: second
Required: no
Valid value: 31536000 (1 year)
instance-type
Filters by specification of the reserved instance, such as `S3.MEDIUM4`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
instance-family
Filters by type of the reserved instance, such as `S3`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
offering-type
offering-type
Filters by payment method, such as `All Upfront`.
Type: String
Required: no
Valid values: All Upfront | Partial Upfront | No Upfront
product-description
Filters by platform description (operating system) of the reserved instance, such as `linux`.
Type: String
Required: no
Valid value: linux
reserved-instances-id
Filters by reserved instance ID in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.
Type: String
Required: no
state
Filters by reserved instance status, such as `active`.
Type: String
Required: no
Valid values: active (created) | pending (waiting to be created) | retired (expired)
Each request can have up to 10 `Filters` and 5 `Filter.Values`.
* @param Filters zone
Filters by availability zone in which reserved instances can be purchased, such as `ap-guangzhou-1`.
Type: String
Required: no
Valid values: please see Availability Zones
duration
Filters by validity period of the reserved instance, such as `31536000`.
Type: Integer
Unit: second
Required: no
Valid value: 31536000 (1 year)
instance-type
Filters by specification of the reserved instance, such as `S3.MEDIUM4`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
instance-family
Filters by type of the reserved instance, such as `S3`.
Type: String
Required: no
Valid values: please see Reserved Instance Types
offering-type
offering-type
Filters by payment method, such as `All Upfront`.
Type: String
Required: no
Valid values: All Upfront | Partial Upfront | No Upfront
product-description
Filters by platform description (operating system) of the reserved instance, such as `linux`.
Type: String
Required: no
Valid value: linux
reserved-instances-id
Filters by reserved instance ID in the form of 650c138f-ae7e-4750-952a-96841d6e9fc1.
Type: String
Required: no
state
Filters by reserved instance status, such as `active`.
Type: String
Required: no
Valid values: active (created) | pending (waiting to be created) | retired (expired)
Each request can have up to 10 `Filters` and 5 `Filter.Values`.
*/
public void setFilters(Filter [] Filters) {
this.Filters = Filters;
}
public DescribeReservedInstancesRequest() {
}
/**
* 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 DescribeReservedInstancesRequest(DescribeReservedInstancesRequest 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.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.setParamArrayObj(map, prefix + "Filters.", this.Filters);
}
}