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

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

CreateNetworkRequest

*/ public class CreateNetworkRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CidrBlock") @com.aliyun.core.annotation.Validation(required = true) private String cidrBlock; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") @com.aliyun.core.annotation.Validation(maxLength = 256, minLength = 2) 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("NetworkName") @com.aliyun.core.annotation.Validation(maxLength = 128, minLength = 2) private String networkName; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List tag; private CreateNetworkRequest(Builder builder) { super(builder); this.cidrBlock = builder.cidrBlock; this.description = builder.description; this.ensRegionId = builder.ensRegionId; this.networkName = builder.networkName; this.tag = builder.tag; } public static Builder builder() { return new Builder(); } public static CreateNetworkRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cidrBlock */ public String getCidrBlock() { return this.cidrBlock; } /** * @return description */ public String getDescription() { return this.description; } /** * @return ensRegionId */ public String getEnsRegionId() { return this.ensRegionId; } /** * @return networkName */ public String getNetworkName() { return this.networkName; } /** * @return tag */ public java.util.List getTag() { return this.tag; } public static final class Builder extends Request.Builder { private String cidrBlock; private String description; private String ensRegionId; private String networkName; private java.util.List tag; private Builder() { super(); } private Builder(CreateNetworkRequest request) { super(request); this.cidrBlock = request.cidrBlock; this.description = request.description; this.ensRegionId = request.ensRegionId; this.networkName = request.networkName; this.tag = request.tag; } /** *

The CIDR block of the network. You can use one of the following CIDR blocks or their subnets as the CIDR block of the network:

*
    *
  • 10.0.0.0/8 (default)
  • *
  • 172.16.0.0/12
  • *
  • 192.168.0.0/16
  • *
*

This parameter is required.

* * example: *

192.168.0.0/24

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

The description of the network.

*

The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.

* * example: *

this is my first network

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

The ID of the edge node.

*

This parameter is required.

* * example: *

cn-beijing-telecom

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

The name of the network. The name must meet the following requirements:

*
    *
  • The name must be 2 to 128 characters in length.
  • *
  • The name must start with a letter but cannot start with http:// or https://.
  • *
  • The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).
  • *
* * example: *

abc

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

CreateNetworkRequest

*/ 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