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

com.aliyun.sdk.service.ens20171110.models.CreateEipInstanceRequest 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 CreateEipInstanceRequest} extends {@link RequestModel}
 *
 * 

CreateEipInstanceRequest

*/ public class CreateEipInstanceRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Bandwidth") @com.aliyun.core.annotation.Validation(maximum = 10000, minimum = 5) private Long bandwidth; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @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("InstanceChargeType") @com.aliyun.core.annotation.Validation(required = true) private String instanceChargeType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InternetChargeType") @com.aliyun.core.annotation.Validation(required = true) private String internetChargeType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Isp") private String isp; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List tag; private CreateEipInstanceRequest(Builder builder) { super(builder); this.bandwidth = builder.bandwidth; this.description = builder.description; this.ensRegionId = builder.ensRegionId; this.instanceChargeType = builder.instanceChargeType; this.internetChargeType = builder.internetChargeType; this.isp = builder.isp; this.name = builder.name; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateEipInstanceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return bandwidth */ public Long getBandwidth() { return this.bandwidth; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ensRegionId */ public String getEnsRegionId() { return this.ensRegionId; } /** * @return instanceChargeType */ public String getInstanceChargeType() { return this.instanceChargeType; } /** * @return internetChargeType */ public String getInternetChargeType() { return this.internetChargeType; } /** * @return isp */ public String getIsp() { return this.isp; } /** * @return name */ public String getName() { return this.name; } /** * @return tag */ public java.util.List getTag() { return this.tag; } public static final class Builder extends Request.Builder { private Long bandwidth; private String description; private String ensRegionId; private String instanceChargeType; private String internetChargeType; private String isp; private String name; private java.util.List tag; private Builder() { super(); } private Builder(CreateEipInstanceRequest request) { super(request); this.bandwidth = request.bandwidth; this.description = request.description; this.ensRegionId = request.ensRegionId; this.instanceChargeType = request.instanceChargeType; this.internetChargeType = request.internetChargeType; this.isp = request.isp; this.name = request.name; this.tag = request.tag; } /** *

The maximum bandwidth of the EIP. Default value: 5. Valid values: 5 to 10000. Unit: Mbit/s.

* * example: *

5

*/ public Builder bandwidth(Long bandwidth) { this.putQueryParameter("Bandwidth", bandwidth); this.bandwidth = bandwidth; return this; } /** *

The description of the EIP.

* * example: *

yourDescription

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

The ID of the Edge Node Service (ENS) node.

*

This parameter is required.

* * example: *

cn-suzhou-telecom

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

The billing method of the EIP. Set the value to PostPaid.

*

This parameter is required.

* * example: *

PostPaid

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

The metering method of the EIP. Set the value to 95BandwidthByMonth.

*

This parameter is required.

* * example: *

95BandwidthByMonth

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

The Internet service provider. Valid values:

*
    *
  • cmcc: China Mobile.
  • *
  • unicom: China Unicom.
  • *
  • telecom: China Telecom.
  • *
* * example: *

cmcc

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

The name of the EIP.

* * example: *

EIP1

*/ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * Tag. */ public Builder tag(java.util.List tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } @Override public CreateEipInstanceRequest build() { return new CreateEipInstanceRequest(this); } } /** * * {@link CreateEipInstanceRequest} extends {@link TeaModel} * *

CreateEipInstanceRequest

*/ 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; /** * Key. */ public Builder key(String key) { this.key = key; return this; } /** * Value. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy