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

com.aliyun.sdk.service.ens20171110.models.DescribePrePaidInstanceStockRequest Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ens20171110.models;

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

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

DescribePrePaidInstanceStockRequest

*/ public class DescribePrePaidInstanceStockRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("DataDiskSize") @com.aliyun.core.annotation.Validation(required = true) private Integer dataDiskSize; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("EnsRegionId") @com.aliyun.core.annotation.Validation(required = true) private String ensRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceSpec") @com.aliyun.core.annotation.Validation(required = true) private String instanceSpec; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SystemDiskSize") @com.aliyun.core.annotation.Validation(required = true, minimum = 20) private Integer systemDiskSize; private DescribePrePaidInstanceStockRequest(Builder builder) { super(builder); this.dataDiskSize = builder.dataDiskSize; this.ensRegionId = builder.ensRegionId; this.instanceSpec = builder.instanceSpec; this.systemDiskSize = builder.systemDiskSize; } public static Builder builder() { return new Builder(); } public static DescribePrePaidInstanceStockRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return dataDiskSize */ public Integer getDataDiskSize() { return this.dataDiskSize; } /** * @return ensRegionId */ public String getEnsRegionId() { return this.ensRegionId; } /** * @return instanceSpec */ public String getInstanceSpec() { return this.instanceSpec; } /** * @return systemDiskSize */ public Integer getSystemDiskSize() { return this.systemDiskSize; } public static final class Builder extends Request.Builder { private Integer dataDiskSize; private String ensRegionId; private String instanceSpec; private Integer systemDiskSize; private Builder() { super(); } private Builder(DescribePrePaidInstanceStockRequest request) { super(request); this.dataDiskSize = request.dataDiskSize; this.ensRegionId = request.ensRegionId; this.instanceSpec = request.instanceSpec; this.systemDiskSize = request.systemDiskSize; } /** *

The size of the data disk. Unit: GB.

*

This parameter is required.

* * example: *

20

*/ public Builder dataDiskSize(Integer dataDiskSize) { this.putQueryParameter("DataDiskSize", dataDiskSize); this.dataDiskSize = dataDiskSize; return this; } /** *

The ID of the edge node.

*

This parameter is required.

* * example: *

cn-suzhou-telecom

*/ public Builder ensRegionId(String ensRegionId) { this.putQueryParameter("EnsRegionId", ensRegionId); this.ensRegionId = ensRegionId; return this; } /** *

The specification of the instance.

*

This parameter is required.

* * example: *

ens.sn1.stiny

*/ public Builder instanceSpec(String instanceSpec) { this.putQueryParameter("InstanceSpec", instanceSpec); this.instanceSpec = instanceSpec; return this; } /** *

The size of the system disk. Unit: GB.

*

This parameter is required.

* * example: *

100

*/ public Builder systemDiskSize(Integer systemDiskSize) { this.putQueryParameter("SystemDiskSize", systemDiskSize); this.systemDiskSize = systemDiskSize; return this; } @Override public DescribePrePaidInstanceStockRequest build() { return new DescribePrePaidInstanceStockRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy