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

com.aliyun.ens20171110.models.DescribePriceRequest Maven / Gradle / Ivy

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

import com.aliyun.tea.*;

public class DescribePriceRequest extends TeaModel {
    @NameInMap("DataDisk")
    public java.util.List dataDisk;

    @NameInMap("SystemDisk")
    public DescribePriceRequestSystemDisk systemDisk;

    /**
     * 

If you leave DataDisk.1.Size empty, the value that you specified for this parameter is used.

*/ @NameInMap("DataDisks") public java.util.List dataDisks; /** *

The ID of the ENS node.

*

This parameter is required.

* * example: *

cn-shanghai-unicom

*/ @NameInMap("EnsRegionId") public String ensRegionId; /** *

The specifications of instances.

*

This parameter is required.

* * example: *

ens.sn1.tiny

*/ @NameInMap("InstanceType") public String instanceType; /** *

The bandwidth metering method of the instance. Valid values:

*
    *
  • BandwidthByDay: Pay by daily peak bandwidth
  • *
  • 95BandwidthByMonth: Pay by monthly 95th percentile bandwidth
  • *
  • PayByBandwidth4thMonth: Pay by monthly fourth peak bandwidth
  • *
  • PayByBandwidth: Pay by fixed bandwidth
  • *
*

This parameter is required.

* * example: *

95BandwidthByMonth

*/ @NameInMap("InternetChargeType") public String internetChargeType; /** *

The subscription duration of the instance.

*
    *
  • If you leave the PeriodUnit parameter empty, the instance is purchased on a monthly basis. Valid values: Day and Month.
  • *
  • If you set PeriodUnit to Day, you can set Period only to 3.
  • *
  • If you set PeriodUnit to Month, you can set Period to a number from 1 to 9, or set Period to 12.
  • *
*

This parameter is required.

* * example: *

1

*/ @NameInMap("Period") public Integer period; /** *

The billing cycle of the ENS instance. Valid values:

*
    *
  • Month (default):
  • *
  • Day
  • *
* * example: *

Month

*/ @NameInMap("PeriodUnit") public String periodUnit; /** *

The number of instances.

*

This parameter is required.

* * example: *

1

*/ @NameInMap("Quantity") public Integer quantity; public static DescribePriceRequest build(java.util.Map map) throws Exception { DescribePriceRequest self = new DescribePriceRequest(); return TeaModel.build(map, self); } public DescribePriceRequest setDataDisk(java.util.List dataDisk) { this.dataDisk = dataDisk; return this; } public java.util.List getDataDisk() { return this.dataDisk; } public DescribePriceRequest setSystemDisk(DescribePriceRequestSystemDisk systemDisk) { this.systemDisk = systemDisk; return this; } public DescribePriceRequestSystemDisk getSystemDisk() { return this.systemDisk; } public DescribePriceRequest setDataDisks(java.util.List dataDisks) { this.dataDisks = dataDisks; return this; } public java.util.List getDataDisks() { return this.dataDisks; } public DescribePriceRequest setEnsRegionId(String ensRegionId) { this.ensRegionId = ensRegionId; return this; } public String getEnsRegionId() { return this.ensRegionId; } public DescribePriceRequest setInstanceType(String instanceType) { this.instanceType = instanceType; return this; } public String getInstanceType() { return this.instanceType; } public DescribePriceRequest setInternetChargeType(String internetChargeType) { this.internetChargeType = internetChargeType; return this; } public String getInternetChargeType() { return this.internetChargeType; } public DescribePriceRequest setPeriod(Integer period) { this.period = period; return this; } public Integer getPeriod() { return this.period; } public DescribePriceRequest setPeriodUnit(String periodUnit) { this.periodUnit = periodUnit; return this; } public String getPeriodUnit() { return this.periodUnit; } public DescribePriceRequest setQuantity(Integer quantity) { this.quantity = quantity; return this; } public Integer getQuantity() { return this.quantity; } public static class DescribePriceRequestDataDisk extends TeaModel { /** *

The size of the data disk. Unit: GB. If you specify this parameter, this parameter takes precedence over the Size property in DataDisks.

* * example: *

50

*/ @NameInMap("Size") public Integer size; public static DescribePriceRequestDataDisk build(java.util.Map map) throws Exception { DescribePriceRequestDataDisk self = new DescribePriceRequestDataDisk(); return TeaModel.build(map, self); } public DescribePriceRequestDataDisk setSize(Integer size) { this.size = size; return this; } public Integer getSize() { return this.size; } } public static class DescribePriceRequestSystemDisk extends TeaModel { /** *

The size of the system disk. Unit: GB.

*

This parameter is required.

* * example: *

20

*/ @NameInMap("Size") public Integer size; public static DescribePriceRequestSystemDisk build(java.util.Map map) throws Exception { DescribePriceRequestSystemDisk self = new DescribePriceRequestSystemDisk(); return TeaModel.build(map, self); } public DescribePriceRequestSystemDisk setSize(Integer size) { this.size = size; return this; } public Integer getSize() { return this.size; } } public static class DescribePriceRequestDataDisks extends TeaModel { /** *

The category of the disk.

* * example: *

cloud_efficiency

*/ @NameInMap("Category") public String category; /** *

The size of the data disk. Unit: GB.

* * example: *

50

*/ @NameInMap("Size") public Long size; public static DescribePriceRequestDataDisks build(java.util.Map map) throws Exception { DescribePriceRequestDataDisks self = new DescribePriceRequestDataDisks(); return TeaModel.build(map, self); } public DescribePriceRequestDataDisks setCategory(String category) { this.category = category; return this; } public String getCategory() { return this.category; } public DescribePriceRequestDataDisks setSize(Long size) { this.size = size; return this; } public Long getSize() { return this.size; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy