com.aliyun.ens20171110.models.CreateARMServerInstancesRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.ens20171110.models;
import com.aliyun.tea.*;
public class CreateARMServerInstancesRequest extends TeaModel {
/**
* The number of instances to create. Valid values: 1 to 100.
* This parameter is required.
*
* example:
* 1
*/
@NameInMap("Amount")
public Integer amount;
/**
* Specifies whether to enable auto-renewal for the subscription. Valid values:
*
* - true
* - false (default)
*
*
* example:
* false
*/
@NameInMap("AutoRenew")
public Boolean autoRenew;
/**
* Specifies whether to use coupons. Valid values:
*
* - true
* - false (default)
*
*
* example:
* true
*/
@NameInMap("AutoUseCoupon")
public Boolean autoUseCoupon;
/**
* The ID of the Edge Node Service (ENS) node.
* This parameter is required.
*
* example:
* cn-guiyang-12
*/
@NameInMap("EnsRegionId")
public String ensRegionId;
@NameInMap("EnvironmentVar")
public String environmentVar;
/**
* The refresh rate. Unit: Hz. Valid values: 30 and 60.
*
* example:
* 30
*/
@NameInMap("Frequency")
public Integer frequency;
/**
* The ID of the image.
* This parameter is required.
*
* example:
* yourImage ID
*/
@NameInMap("ImageId")
public String imageId;
/**
* The specification of the Android in Container (AIC) instance. Examples:
*
* - aic.cf52r.c1.np
* - aic.cf52r.c2.np
* - aic.cf53r.c2.np
* - aic.cf52r.c4.np
* - aic.cf53r.c3.np
* - aic.cf52r.c3.np
* - aic.cf53r.c1.np
* - aic.cf53r.c5.np
* - aic.cf53r.c6
* - aic.cf53r.c4.np
* - aic.cf53r.c6.np
* - aic.cf53r.c7.np
* - aic.cf52m1r.c5.np
* - aic.cf53r.c8.np
* - aic.cf53r.c7
* - aic.cf52m1r.c2.np
* - aic.cf52m1r.c1.np
* - aic.cf52m1r.c3.np
* - aic.cf52m1r.c4.np
* - aic.cf52m1r.c6
* - ens.a6c2
*
* This parameter is required.
*
* example:
* aic.cf53r.c6.np
*/
@NameInMap("InstanceType")
public String instanceType;
/**
* The name of the key pair.
*
* example:
* TestKeyPairName
*/
@NameInMap("KeyPairName")
public String keyPairName;
/**
* The namespace.
*
* example:
* pre
*/
@NameInMap("NameSpace")
public String nameSpace;
/**
* The billing method. Set the value to PrePaid. PrePaid specifies the subscription billing method.
*
* Only PrePaid is supported.
*
* This parameter is required.
*
* example:
* PrePaid
*/
@NameInMap("PayType")
public String payType;
/**
* The subscription duration of the instance.
*
* - If you leave PeriodUnit 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 value within the range of [1,9], or set the value to 12.
*
* This parameter is required.
*
* example:
* 1
*/
@NameInMap("Period")
public Integer period;
/**
* The unit of the subscription duration.
*
* - If you leave PeriodUnit 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 value within the range of [1,9], or set the value to 12.
*
* This parameter is required.
*
* example:
* Month
*/
@NameInMap("PeriodUnit")
public String periodUnit;
/**
* The resolution. Examples:
*
* - 1920\*864
* - 1080\*1920
* - 1920\*1080
* - 720\*1280
* - 2400\*1080
* - 1080\*2400
* - 1280\*720
* - 864\*1920
*
* This parameter is required.
*
* example:
* 720*1280
*/
@NameInMap("Resolution")
public String resolution;
/**
* The name of the service.
*
* example:
* AIC-Server
*/
@NameInMap("ServerName")
public String serverName;
/**
* The specification of the ARM server. Examples:
*
* - cas.cf53r
* - cas.cf52r
* - cas.cf52m1r
* - cas.tg52g2
* - ens.afq-c2m3i.medium
*
* This parameter is required.
*
* example:
* cas.cf53r
*/
@NameInMap("ServerType")
public String serverType;
public static CreateARMServerInstancesRequest build(java.util.Map map) throws Exception {
CreateARMServerInstancesRequest self = new CreateARMServerInstancesRequest();
return TeaModel.build(map, self);
}
public CreateARMServerInstancesRequest setAmount(Integer amount) {
this.amount = amount;
return this;
}
public Integer getAmount() {
return this.amount;
}
public CreateARMServerInstancesRequest setAutoRenew(Boolean autoRenew) {
this.autoRenew = autoRenew;
return this;
}
public Boolean getAutoRenew() {
return this.autoRenew;
}
public CreateARMServerInstancesRequest setAutoUseCoupon(Boolean autoUseCoupon) {
this.autoUseCoupon = autoUseCoupon;
return this;
}
public Boolean getAutoUseCoupon() {
return this.autoUseCoupon;
}
public CreateARMServerInstancesRequest setEnsRegionId(String ensRegionId) {
this.ensRegionId = ensRegionId;
return this;
}
public String getEnsRegionId() {
return this.ensRegionId;
}
public CreateARMServerInstancesRequest setEnvironmentVar(String environmentVar) {
this.environmentVar = environmentVar;
return this;
}
public String getEnvironmentVar() {
return this.environmentVar;
}
public CreateARMServerInstancesRequest setFrequency(Integer frequency) {
this.frequency = frequency;
return this;
}
public Integer getFrequency() {
return this.frequency;
}
public CreateARMServerInstancesRequest setImageId(String imageId) {
this.imageId = imageId;
return this;
}
public String getImageId() {
return this.imageId;
}
public CreateARMServerInstancesRequest setInstanceType(String instanceType) {
this.instanceType = instanceType;
return this;
}
public String getInstanceType() {
return this.instanceType;
}
public CreateARMServerInstancesRequest setKeyPairName(String keyPairName) {
this.keyPairName = keyPairName;
return this;
}
public String getKeyPairName() {
return this.keyPairName;
}
public CreateARMServerInstancesRequest setNameSpace(String nameSpace) {
this.nameSpace = nameSpace;
return this;
}
public String getNameSpace() {
return this.nameSpace;
}
public CreateARMServerInstancesRequest setPayType(String payType) {
this.payType = payType;
return this;
}
public String getPayType() {
return this.payType;
}
public CreateARMServerInstancesRequest setPeriod(Integer period) {
this.period = period;
return this;
}
public Integer getPeriod() {
return this.period;
}
public CreateARMServerInstancesRequest setPeriodUnit(String periodUnit) {
this.periodUnit = periodUnit;
return this;
}
public String getPeriodUnit() {
return this.periodUnit;
}
public CreateARMServerInstancesRequest setResolution(String resolution) {
this.resolution = resolution;
return this;
}
public String getResolution() {
return this.resolution;
}
public CreateARMServerInstancesRequest setServerName(String serverName) {
this.serverName = serverName;
return this;
}
public String getServerName() {
return this.serverName;
}
public CreateARMServerInstancesRequest setServerType(String serverType) {
this.serverType = serverType;
return this;
}
public String getServerType() {
return this.serverType;
}
}