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

com.aliyun.sdk.service.cloudapi20160714.models.SetVpcAccessRequest Maven / Gradle / Ivy

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

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

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

SetVpcAccessRequest

*/ public class SetVpcAccessRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Description") private String description; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("InstanceId") @com.aliyun.core.annotation.Validation(required = true) private String instanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Name") @com.aliyun.core.annotation.Validation(required = true) private String name; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Port") @com.aliyun.core.annotation.Validation(required = true) private Integer port; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("SecurityToken") private String securityToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Tag") private java.util.List < Tag> tag; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcId") @com.aliyun.core.annotation.Validation(required = true) private String vpcId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("VpcTargetHostName") private String vpcTargetHostName; private SetVpcAccessRequest(Builder builder) { super(builder); this.description = builder.description; this.instanceId = builder.instanceId; this.name = builder.name; this.port = builder.port; this.securityToken = builder.securityToken; this.tag = builder.tag; this.vpcId = builder.vpcId; this.vpcTargetHostName = builder.vpcTargetHostName; } public static Builder builder() { return new Builder(); } public static SetVpcAccessRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return description */ public String getDescription() { return this.description; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return name */ public String getName() { return this.name; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return vpcTargetHostName */ public String getVpcTargetHostName() { return this.vpcTargetHostName; } public static final class Builder extends Request.Builder { private String description; private String instanceId; private String name; private Integer port; private String securityToken; private java.util.List < Tag> tag; private String vpcId; private String vpcTargetHostName; private Builder() { super(); } private Builder(SetVpcAccessRequest request) { super(request); this.description = request.description; this.instanceId = request.instanceId; this.name = request.name; this.port = request.port; this.securityToken = request.securityToken; this.tag = request.tag; this.vpcId = request.vpcId; this.vpcTargetHostName = request.vpcTargetHostName; } /** * The description of the VPC. */ public Builder description(String description) { this.putQueryParameter("Description", description); this.description = description; return this; } /** * The ID of an ECS or SLB instance in the VPC. */ public Builder instanceId(String instanceId) { this.putQueryParameter("InstanceId", instanceId); this.instanceId = instanceId; return this; } /** * The name of the authorization. The name must be unique. */ public Builder name(String name) { this.putQueryParameter("Name", name); this.name = name; return this; } /** * The port number that corresponds to the instance. */ public Builder port(Integer port) { this.putQueryParameter("Port", port); this.port = port; return this; } /** * SecurityToken. */ public Builder securityToken(String securityToken) { this.putQueryParameter("SecurityToken", securityToken); this.securityToken = securityToken; return this; } /** * The tag of objects that match the rule. You can specify multiple tags. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * The ID of the VPC. The VPC must be an available one that belongs to the same account as the API. */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } /** * The host of the backend service. */ public Builder vpcTargetHostName(String vpcTargetHostName) { this.putQueryParameter("VpcTargetHostName", vpcTargetHostName); this.vpcTargetHostName = vpcTargetHostName; return this; } @Override public SetVpcAccessRequest build() { return new SetVpcAccessRequest(this); } } 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; /** * The key of the tag. */ public Builder key(String key) { this.key = key; return this; } /** * The value of the tag. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy