com.aliyun.sdk.service.ecs20140526.models.CreateDedicatedBlockStorageClusterRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CreateDedicatedBlockStorageClusterRequest} extends {@link RequestModel}
*
* CreateDedicatedBlockStorageClusterRequest
*/
public class CreateDedicatedBlockStorageClusterRequest extends Request {
@Query
@NameInMap("Capacity")
@Validation(required = true, maximum = 2304, minimum = 60)
private Integer capacity;
@Query
@NameInMap("Category")
@Validation(required = true)
private String category;
@Query
@NameInMap("ClientToken")
private String clientToken;
@Query
@NameInMap("DedicatedBlockStorageClusterName")
private String dedicatedBlockStorageClusterName;
@Query
@NameInMap("Description")
private String description;
@Query
@NameInMap("FromApp")
private String fromApp;
@Query
@NameInMap("OwnerAccount")
private String ownerAccount;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("Period")
private Integer period;
@Query
@NameInMap("PeriodUnit")
private String periodUnit;
@Query
@NameInMap("RegionId")
@Validation(required = true)
private String regionId;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
@Query
@NameInMap("Type")
private String type;
@Query
@NameInMap("ZoneId")
@Validation(required = true)
private String zoneId;
private CreateDedicatedBlockStorageClusterRequest(Builder builder) {
super(builder);
this.capacity = builder.capacity;
this.category = builder.category;
this.clientToken = builder.clientToken;
this.dedicatedBlockStorageClusterName = builder.dedicatedBlockStorageClusterName;
this.description = builder.description;
this.fromApp = builder.fromApp;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.period = builder.period;
this.periodUnit = builder.periodUnit;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
this.type = builder.type;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static CreateDedicatedBlockStorageClusterRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return capacity
*/
public Integer getCapacity() {
return this.capacity;
}
/**
* @return category
*/
public String getCategory() {
return this.category;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return dedicatedBlockStorageClusterName
*/
public String getDedicatedBlockStorageClusterName() {
return this.dedicatedBlockStorageClusterName;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return fromApp
*/
public String getFromApp() {
return this.fromApp;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return period
*/
public Integer getPeriod() {
return this.period;
}
/**
* @return periodUnit
*/
public String getPeriodUnit() {
return this.periodUnit;
}
/**
* @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 type
*/
public String getType() {
return this.type;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder extends Request.Builder {
private Integer capacity;
private String category;
private String clientToken;
private String dedicatedBlockStorageClusterName;
private String description;
private String fromApp;
private String ownerAccount;
private Long ownerId;
private Integer period;
private String periodUnit;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private String type;
private String zoneId;
private Builder() {
super();
}
private Builder(CreateDedicatedBlockStorageClusterRequest request) {
super(request);
this.capacity = request.capacity;
this.category = request.category;
this.clientToken = request.clientToken;
this.dedicatedBlockStorageClusterName = request.dedicatedBlockStorageClusterName;
this.description = request.description;
this.fromApp = request.fromApp;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.period = request.period;
this.periodUnit = request.periodUnit;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
this.type = request.type;
this.zoneId = request.zoneId;
}
/**
* Capacity.
*/
public Builder capacity(Integer capacity) {
this.putQueryParameter("Capacity", capacity);
this.capacity = capacity;
return this;
}
/**
* Category.
*/
public Builder category(String category) {
this.putQueryParameter("Category", category);
this.category = category;
return this;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* DedicatedBlockStorageClusterName.
*/
public Builder dedicatedBlockStorageClusterName(String dedicatedBlockStorageClusterName) {
this.putQueryParameter("DedicatedBlockStorageClusterName", dedicatedBlockStorageClusterName);
this.dedicatedBlockStorageClusterName = dedicatedBlockStorageClusterName;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* FromApp.
*/
public Builder fromApp(String fromApp) {
this.putQueryParameter("FromApp", fromApp);
this.fromApp = fromApp;
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;
}
/**
* Period.
*/
public Builder period(Integer period) {
this.putQueryParameter("Period", period);
this.period = period;
return this;
}
/**
* PeriodUnit.
*/
public Builder periodUnit(String periodUnit) {
this.putQueryParameter("PeriodUnit", periodUnit);
this.periodUnit = periodUnit;
return this;
}
/**
* RegionId.
*/
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;
}
/**
* Type.
*/
public Builder type(String type) {
this.putQueryParameter("Type", type);
this.type = type;
return this;
}
/**
* ZoneId.
*/
public Builder zoneId(String zoneId) {
this.putQueryParameter("ZoneId", zoneId);
this.zoneId = zoneId;
return this;
}
@Override
public CreateDedicatedBlockStorageClusterRequest build() {
return new CreateDedicatedBlockStorageClusterRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy