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

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

    /**
    * List of snapshot IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`.
    */
    @SerializedName("SnapshotIds")
    @Expose
    private String [] SnapshotIds;

    /**
    * Filters. It cannot be specified together with `SnapshotIds`.
  • snapshot-id - Array of String - Optional - Filters by snapshot ID, such as `snap-11112222`.
  • snapshot-name - Array of String - Optional - Filters by snapshot name.
  • snapshot-state - Array of String - Optional - Filters by snapshot state (NORMAL: normal | CREATING: creating | ROLLBACKING: rolling back).
  • disk-usage - Array of String - Optional - Filters by the type of the cloud disk from which a snapshot is created (SYSTEM_DISK: system disk | DATA_DISK: data disk).
  • project-id - Array of String - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by the ID of the cloud disk from which a snapshot is created.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo).
  • encrypt - Array of String - Optional - Filters by whether a snapshot is created from an encrypted cloud disk. (TRUE: a snapshot of an encrypted cloud disk | FALSE: not a snapshot of an encrypted cloud disk.)
  • snapshot-type- Array of String - Optional - Filters by the snapshot type specified in `snapshot-type`. (SHARED_SNAPSHOT: a shared snapshot | PRIVATE_SNAPSHOT: a private snapshot.) */ @SerializedName("Filters") @Expose private Filter [] Filters; /** * Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ @SerializedName("Offset") @Expose private Long Offset; /** * Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ @SerializedName("Limit") @Expose private Long Limit; /** * Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. */ @SerializedName("Order") @Expose private String Order; /** * The field by which the snapshot list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of the snapshots
    By default, the snapshot list is sorted by the creation time of snapshots. */ @SerializedName("OrderField") @Expose private String OrderField; /** * Get List of snapshot IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`. * @return SnapshotIds List of snapshot IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`. */ public String [] getSnapshotIds() { return this.SnapshotIds; } /** * Set List of snapshot IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`. * @param SnapshotIds List of snapshot IDs to be queried. The parameter does not support specifying both `SnapshotIds` and `Filters`. */ public void setSnapshotIds(String [] SnapshotIds) { this.SnapshotIds = SnapshotIds; } /** * Get Filters. It cannot be specified together with `SnapshotIds`.
  • snapshot-id - Array of String - Optional - Filters by snapshot ID, such as `snap-11112222`.
  • snapshot-name - Array of String - Optional - Filters by snapshot name.
  • snapshot-state - Array of String - Optional - Filters by snapshot state (NORMAL: normal | CREATING: creating | ROLLBACKING: rolling back).
  • disk-usage - Array of String - Optional - Filters by the type of the cloud disk from which a snapshot is created (SYSTEM_DISK: system disk | DATA_DISK: data disk).
  • project-id - Array of String - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by the ID of the cloud disk from which a snapshot is created.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo).
  • encrypt - Array of String - Optional - Filters by whether a snapshot is created from an encrypted cloud disk. (TRUE: a snapshot of an encrypted cloud disk | FALSE: not a snapshot of an encrypted cloud disk.)
  • snapshot-type- Array of String - Optional - Filters by the snapshot type specified in `snapshot-type`. (SHARED_SNAPSHOT: a shared snapshot | PRIVATE_SNAPSHOT: a private snapshot.) * @return Filters Filters. It cannot be specified together with `SnapshotIds`.
  • snapshot-id - Array of String - Optional - Filters by snapshot ID, such as `snap-11112222`.
  • snapshot-name - Array of String - Optional - Filters by snapshot name.
  • snapshot-state - Array of String - Optional - Filters by snapshot state (NORMAL: normal | CREATING: creating | ROLLBACKING: rolling back).
  • disk-usage - Array of String - Optional - Filters by the type of the cloud disk from which a snapshot is created (SYSTEM_DISK: system disk | DATA_DISK: data disk).
  • project-id - Array of String - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by the ID of the cloud disk from which a snapshot is created.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo).
  • encrypt - Array of String - Optional - Filters by whether a snapshot is created from an encrypted cloud disk. (TRUE: a snapshot of an encrypted cloud disk | FALSE: not a snapshot of an encrypted cloud disk.)
  • snapshot-type- Array of String - Optional - Filters by the snapshot type specified in `snapshot-type`. (SHARED_SNAPSHOT: a shared snapshot | PRIVATE_SNAPSHOT: a private snapshot.) */ public Filter [] getFilters() { return this.Filters; } /** * Set Filters. It cannot be specified together with `SnapshotIds`.
  • snapshot-id - Array of String - Optional - Filters by snapshot ID, such as `snap-11112222`.
  • snapshot-name - Array of String - Optional - Filters by snapshot name.
  • snapshot-state - Array of String - Optional - Filters by snapshot state (NORMAL: normal | CREATING: creating | ROLLBACKING: rolling back).
  • disk-usage - Array of String - Optional - Filters by the type of the cloud disk from which a snapshot is created (SYSTEM_DISK: system disk | DATA_DISK: data disk).
  • project-id - Array of String - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by the ID of the cloud disk from which a snapshot is created.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo).
  • encrypt - Array of String - Optional - Filters by whether a snapshot is created from an encrypted cloud disk. (TRUE: a snapshot of an encrypted cloud disk | FALSE: not a snapshot of an encrypted cloud disk.)
  • snapshot-type- Array of String - Optional - Filters by the snapshot type specified in `snapshot-type`. (SHARED_SNAPSHOT: a shared snapshot | PRIVATE_SNAPSHOT: a private snapshot.) * @param Filters Filters. It cannot be specified together with `SnapshotIds`.
  • snapshot-id - Array of String - Optional - Filters by snapshot ID, such as `snap-11112222`.
  • snapshot-name - Array of String - Optional - Filters by snapshot name.
  • snapshot-state - Array of String - Optional - Filters by snapshot state (NORMAL: normal | CREATING: creating | ROLLBACKING: rolling back).
  • disk-usage - Array of String - Optional - Filters by the type of the cloud disk from which a snapshot is created (SYSTEM_DISK: system disk | DATA_DISK: data disk).
  • project-id - Array of String - Optional - Filters by the ID of the project to which a cloud disk belongs.
  • disk-id - Array of String - Optional - Filters by the ID of the cloud disk from which a snapshot is created.
  • zone - Array of String - Optional - Filters by [availability zone](https://intl.cloud.tencent.com/document/product/213/15753?from_cn_redirect=1#ZoneInfo).
  • encrypt - Array of String - Optional - Filters by whether a snapshot is created from an encrypted cloud disk. (TRUE: a snapshot of an encrypted cloud disk | FALSE: not a snapshot of an encrypted cloud disk.)
  • snapshot-type- Array of String - Optional - Filters by the snapshot type specified in `snapshot-type`. (SHARED_SNAPSHOT: a shared snapshot | PRIVATE_SNAPSHOT: a private snapshot.) */ public void setFilters(Filter [] Filters) { this.Filters = Filters; } /** * Get Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). * @return Offset Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ public Long getOffset() { return this.Offset; } /** * Set Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). * @param Offset Offset. Default is 0. For more information on `Offset`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ public void setOffset(Long Offset) { this.Offset = Offset; } /** * Get Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). * @return Limit Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ public Long getLimit() { return this.Limit; } /** * Set Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). * @param Limit Number of results to be returned. Default is 20. Maximum is 100. For more information on `Limit`, please see relevant sections in API [Introduction](https://intl.cloud.tencent.com/document/product/362/15633?from_cn_redirect=1). */ public void setLimit(Long Limit) { this.Limit = Limit; } /** * Get Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. * @return Order Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. */ public String getOrder() { return this.Order; } /** * Set Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. * @param Order Outputs the ordering of the cloud disk list. Value range:
  • ASC: Ascending order
  • DESC: Descending order. */ public void setOrder(String Order) { this.Order = Order; } /** * Get The field by which the snapshot list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of the snapshots
    By default, the snapshot list is sorted by the creation time of snapshots. * @return OrderField The field by which the snapshot list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of the snapshots
    By default, the snapshot list is sorted by the creation time of snapshots. */ public String getOrderField() { return this.OrderField; } /** * Set The field by which the snapshot list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of the snapshots
    By default, the snapshot list is sorted by the creation time of snapshots. * @param OrderField The field by which the snapshot list is sorted. Value range:
  • CREATE_TIME: sorted by the creation time of the snapshots
    By default, the snapshot list is sorted by the creation time of snapshots. */ public void setOrderField(String OrderField) { this.OrderField = OrderField; } public DescribeSnapshotsRequest() { } /** * 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 DescribeSnapshotsRequest(DescribeSnapshotsRequest source) { if (source.SnapshotIds != null) { this.SnapshotIds = new String[source.SnapshotIds.length]; for (int i = 0; i < source.SnapshotIds.length; i++) { this.SnapshotIds[i] = new String(source.SnapshotIds[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.Order != null) { this.Order = new String(source.Order); } if (source.OrderField != null) { this.OrderField = new String(source.OrderField); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamArraySimple(map, prefix + "SnapshotIds.", this.SnapshotIds); 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 + "Order", this.Order); this.setParamSimple(map, prefix + "OrderField", this.OrderField); } }




  • © 2015 - 2025 Weber Informatics LLC | Privacy Policy