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

com.aliyun.sdk.service.ecs20140526.models.DescribeStorageCapacityUnitsRequest Maven / Gradle / Ivy

There is a newer version: 5.0.29
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link DescribeStorageCapacityUnitsRequest} extends {@link RequestModel}
 *
 * 

DescribeStorageCapacityUnitsRequest

*/ public class DescribeStorageCapacityUnitsRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AllocationType") private String allocationType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Capacity") private Integer capacity; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageNumber") private Integer pageNumber; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("PageSize") @com.aliyun.core.annotation.Validation(maximum = 100, minimum = 1) private Integer pageSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") @com.aliyun.core.annotation.Validation(required = true) private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Status") private java.util.List < String > status; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("StorageCapacityUnitId") private java.util.List < String > storageCapacityUnitId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List < Tag> tag; private DescribeStorageCapacityUnitsRequest(Builder builder) { super(builder); this.allocationType = builder.allocationType; this.capacity = builder.capacity; this.name = builder.name; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.status = builder.status; this.storageCapacityUnitId = builder.storageCapacityUnitId; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static DescribeStorageCapacityUnitsRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return allocationType */ public String getAllocationType() { return this.allocationType; } /** * @return capacity */ public Integer getCapacity() { return this.capacity; } /** * @return name */ public String getName() { return this.name; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return status */ public java.util.List < String > getStatus() { return this.status; } /** * @return storageCapacityUnitId */ public java.util.List < String > getStorageCapacityUnitId() { return this.storageCapacityUnitId; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } public static final class Builder extends Request.Builder { private String allocationType; private Integer capacity; private String name; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private java.util.List < String > status; private java.util.List < String > storageCapacityUnitId; private java.util.List < Tag> tag; private Builder() { super(); } private Builder(DescribeStorageCapacityUnitsRequest request) { super(request); this.allocationType = request.allocationType; this.capacity = request.capacity; this.name = request.name; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.status = request.status; this.storageCapacityUnitId = request.storageCapacityUnitId; this.tag = request.tag; } /** * The allocation type. Valid values: *

* * * Normal: queries SCUs that belong to the current Alibaba Cloud account. * * Shared: queries SCUs shared between the Alibaba Cloud account and RAM users. * * Default value: Normal. */ public Builder allocationType(String allocationType) { this.putQueryParameter("AllocationType", allocationType); this.allocationType = allocationType; return this; } /** * The capacity of the SCU. Unit: GiB. Valid values: 20, 40, 100, 200, 500, 1024, 2048, 5120, 10240, 20480, and 51200. */ public Builder capacity(Integer capacity) { this.putQueryParameter("Capacity", capacity); this.capacity = capacity; return this; } /** * The name of the SCU. The name must be 2 to 128 characters in length. It must start with a letter but cannot start with `http://` or `https://`. It can contain letters, digits, colons (:), underscores (\_), and hyphens (-). */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The number of the page to return. *

* * Pages start from page 1. * * Default value: 1. */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of entries to return on each page. *

* * Maximum value: 100. * * Default value: 10. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * The region ID of the SCU. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * The state of SCUs. You can specify 1 to 4 types of state. Valid values: *

* * * Creating: The SCUs are being created. * * Active: The SCUs are in effect. * * Expired: The SCUs have expired. * * Pending: The SCUs have not taken effect. */ public Builder status(java.util.List < String > status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * One or multiple SCU IDs. You can specify 1 to 100 SCU IDs. */ public Builder storageCapacityUnitId(java.util.List < String > storageCapacityUnitId) { this.putQueryParameter("StorageCapacityUnitId", storageCapacityUnitId); this.storageCapacityUnitId = storageCapacityUnitId; return this; } /** * The tags of the SCUs. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public DescribeStorageCapacityUnitsRequest build() { return new DescribeStorageCapacityUnitsRequest(this); } } public static class Tag extends TeaModel { @com.aliyun.core.annotation.NameInMap("Key") private String key; @com.aliyun.core.annotation.NameInMap("Value") private String value; private Tag(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Tag create() { return builder().build(); } /** * @return key */ public String getKey() { return this.key; } /** * @return value */ public String getValue() { return this.value; } public static final class Builder { private String key; private String value; /** * The key of tag N of the SCU. N is the identifier for the tag, which you can use to set and query the tag. Valid values of N: 1 to 20. */ public Builder key(String key) { this.key = key; return this; } /** * The value of tag N of the SCU. N is the identifier for the tag, which you can use to set and query the tag. The value of N must coincide with `Tag.N.Key`. Valid values of N: 1 to 20. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy