com.tencentcloudapi.cvm.v20170312.models.DescribeImagesRequest Maven / Gradle / Ivy
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
/*
* 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 DescribeImagesRequest extends AbstractModel {
/**
* List of image IDs, such as `img-gvbnzy6f`. For the format of array-type parameters, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
View the image IDs in the [Image Console](https://console.cloud.tencent.com/cvm/image).
*/
@SerializedName("ImageIds")
@Expose
private String [] ImageIds;
/**
* Filters. Each request can have up to 10 `Filters`, and 5 `Filters.Values` for each filter. `ImageIds` and `Filters` cannot be specified at the same time. See details:
image-id
Filter by the image ID.
Type: String
Optional
image-type
Filter by the image type.
Type: String
Optional
Options:
`PRIVATE_IMAGE`: Private images (images created by this account)
`PUBLIC_IMAGE`: Public images (Tencent Cloud official images)
`SHARED_IMAGE`: Shared images (images shared by other accounts to this account)
image-name
Filter by the image name.
Type: String
Optional
platform
Filter by the image operating system, such as `CentOS`.
Type: String
Optional
tag-key
Filter by the tag key.
Type: String
Optional
tag-value
Filter by the tag value.
Type: String
Optional
tag:tag-key
Filter by the tag key-value pair. Replace “tag-key” with the actual value.
Type: String
Optional
*/
@SerializedName("Filters")
@Expose
private Filter [] Filters;
/**
* Offset; default value: 0. For more information on `Offset`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
*/
@SerializedName("Offset")
@Expose
private Long Offset;
/**
* Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
*/
@SerializedName("Limit")
@Expose
private Long Limit;
/**
* Instance type, e.g. `S1.SMALL1`
*/
@SerializedName("InstanceType")
@Expose
private String InstanceType;
/**
* Get List of image IDs, such as `img-gvbnzy6f`. For the format of array-type parameters, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
View the image IDs in the [Image Console](https://console.cloud.tencent.com/cvm/image).
* @return ImageIds List of image IDs, such as `img-gvbnzy6f`. For the format of array-type parameters, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
View the image IDs in the [Image Console](https://console.cloud.tencent.com/cvm/image).
*/
public String [] getImageIds() {
return this.ImageIds;
}
/**
* Set List of image IDs, such as `img-gvbnzy6f`. For the format of array-type parameters, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
View the image IDs in the [Image Console](https://console.cloud.tencent.com/cvm/image).
* @param ImageIds List of image IDs, such as `img-gvbnzy6f`. For the format of array-type parameters, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can obtain the image IDs in two ways:
Call [DescribeImages](https://intl.cloud.tencent.com/document/api/213/15715?from_cn_redirect=1) and look for `ImageId` in the response.
View the image IDs in the [Image Console](https://console.cloud.tencent.com/cvm/image).
*/
public void setImageIds(String [] ImageIds) {
this.ImageIds = ImageIds;
}
/**
* Get Filters. Each request can have up to 10 `Filters`, and 5 `Filters.Values` for each filter. `ImageIds` and `Filters` cannot be specified at the same time. See details:
image-id
Filter by the image ID.
Type: String
Optional
image-type
Filter by the image type.
Type: String
Optional
Options:
`PRIVATE_IMAGE`: Private images (images created by this account)
`PUBLIC_IMAGE`: Public images (Tencent Cloud official images)
`SHARED_IMAGE`: Shared images (images shared by other accounts to this account)
image-name
Filter by the image name.
Type: String
Optional
platform
Filter by the image operating system, such as `CentOS`.
Type: String
Optional
tag-key
Filter by the tag key.
Type: String
Optional
tag-value
Filter by the tag value.
Type: String
Optional
tag:tag-key
Filter by the tag key-value pair. Replace “tag-key” with the actual value.
Type: String
Optional
* @return Filters Filters. Each request can have up to 10 `Filters`, and 5 `Filters.Values` for each filter. `ImageIds` and `Filters` cannot be specified at the same time. See details:
image-id
Filter by the image ID.
Type: String
Optional
image-type
Filter by the image type.
Type: String
Optional
Options:
`PRIVATE_IMAGE`: Private images (images created by this account)
`PUBLIC_IMAGE`: Public images (Tencent Cloud official images)
`SHARED_IMAGE`: Shared images (images shared by other accounts to this account)
image-name
Filter by the image name.
Type: String
Optional
platform
Filter by the image operating system, such as `CentOS`.
Type: String
Optional
tag-key
Filter by the tag key.
Type: String
Optional
tag-value
Filter by the tag value.
Type: String
Optional
tag:tag-key
Filter by the tag key-value pair. Replace “tag-key” with the actual value.
Type: String
Optional
*/
public Filter [] getFilters() {
return this.Filters;
}
/**
* Set Filters. Each request can have up to 10 `Filters`, and 5 `Filters.Values` for each filter. `ImageIds` and `Filters` cannot be specified at the same time. See details:
image-id
Filter by the image ID.
Type: String
Optional
image-type
Filter by the image type.
Type: String
Optional
Options:
`PRIVATE_IMAGE`: Private images (images created by this account)
`PUBLIC_IMAGE`: Public images (Tencent Cloud official images)
`SHARED_IMAGE`: Shared images (images shared by other accounts to this account)
image-name
Filter by the image name.
Type: String
Optional
platform
Filter by the image operating system, such as `CentOS`.
Type: String
Optional
tag-key
Filter by the tag key.
Type: String
Optional
tag-value
Filter by the tag value.
Type: String
Optional
tag:tag-key
Filter by the tag key-value pair. Replace “tag-key” with the actual value.
Type: String
Optional
* @param Filters Filters. Each request can have up to 10 `Filters`, and 5 `Filters.Values` for each filter. `ImageIds` and `Filters` cannot be specified at the same time. See details:
image-id
Filter by the image ID.
Type: String
Optional
image-type
Filter by the image type.
Type: String
Optional
Options:
`PRIVATE_IMAGE`: Private images (images created by this account)
`PUBLIC_IMAGE`: Public images (Tencent Cloud official images)
`SHARED_IMAGE`: Shared images (images shared by other accounts to this account)
image-name
Filter by the image name.
Type: String
Optional
platform
Filter by the image operating system, such as `CentOS`.
Type: String
Optional
tag-key
Filter by the tag key.
Type: String
Optional
tag-value
Filter by the tag value.
Type: String
Optional
tag:tag-key
Filter by the tag key-value pair. Replace “tag-key” with the actual value.
Type: String
Optional
*/
public void setFilters(Filter [] Filters) {
this.Filters = Filters;
}
/**
* Get Offset; default value: 0. For more information on `Offset`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
* @return Offset Offset; default value: 0. For more information on `Offset`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
*/
public Long getOffset() {
return this.Offset;
}
/**
* Set Offset; default value: 0. For more information on `Offset`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
* @param Offset Offset; default value: 0. For more information on `Offset`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
*/
public void setOffset(Long Offset) {
this.Offset = Offset;
}
/**
* Get Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
* @return Limit Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
*/
public Long getLimit() {
return this.Limit;
}
/**
* Set Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
* @param Limit Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see [API Introduction](https://intl.cloud.tencent.com/document/api/213/568?from_cn_redirect=1#.E8.BE.93.E5.85.A5.E5.8F.82.E6.95.B0.E4.B8.8E.E8.BF.94.E5.9B.9E.E5.8F.82.E6.95.B0.E9.87.8A.E4.B9.89).
*/
public void setLimit(Long Limit) {
this.Limit = Limit;
}
/**
* Get Instance type, e.g. `S1.SMALL1`
* @return InstanceType Instance type, e.g. `S1.SMALL1`
*/
public String getInstanceType() {
return this.InstanceType;
}
/**
* Set Instance type, e.g. `S1.SMALL1`
* @param InstanceType Instance type, e.g. `S1.SMALL1`
*/
public void setInstanceType(String InstanceType) {
this.InstanceType = InstanceType;
}
public DescribeImagesRequest() {
}
/**
* 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 DescribeImagesRequest(DescribeImagesRequest source) {
if (source.ImageIds != null) {
this.ImageIds = new String[source.ImageIds.length];
for (int i = 0; i < source.ImageIds.length; i++) {
this.ImageIds[i] = new String(source.ImageIds[i]);
}
}
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]);
}
}
if (source.Offset != null) {
this.Offset = new Long(source.Offset);
}
if (source.Limit != null) {
this.Limit = new Long(source.Limit);
}
if (source.InstanceType != null) {
this.InstanceType = new String(source.InstanceType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "ImageIds.", this.ImageIds);
this.setParamArrayObj(map, prefix + "Filters.", this.Filters);
this.setParamSimple(map, prefix + "Offset", this.Offset);
this.setParamSimple(map, prefix + "Limit", this.Limit);
this.setParamSimple(map, prefix + "InstanceType", this.InstanceType);
}
}