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

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

RemoveVpcAccessRequest

*/ public class RemoveVpcAccessRequest extends Request { @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("NeedBatchWork") private Boolean needBatchWork; @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("VpcId") @com.aliyun.core.annotation.Validation(required = true) private String vpcId; private RemoveVpcAccessRequest(Builder builder) { super(builder); this.instanceId = builder.instanceId; this.needBatchWork = builder.needBatchWork; this.port = builder.port; this.securityToken = builder.securityToken; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static RemoveVpcAccessRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return needBatchWork */ public Boolean getNeedBatchWork() { return this.needBatchWork; } /** * @return port */ public Integer getPort() { return this.port; } /** * @return securityToken */ public String getSecurityToken() { return this.securityToken; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder extends Request.Builder { private String instanceId; private Boolean needBatchWork; private Integer port; private String securityToken; private String vpcId; private Builder() { super(); } private Builder(RemoveVpcAccessRequest request) { super(request); this.instanceId = request.instanceId; this.needBatchWork = request.needBatchWork; this.port = request.port; this.securityToken = request.securityToken; this.vpcId = request.vpcId; } /** * 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; } /** * Specifies whether batch work is required. */ public Builder needBatchWork(Boolean needBatchWork) { this.putQueryParameter("NeedBatchWork", needBatchWork); this.needBatchWork = needBatchWork; 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 ID of the VPC. */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } @Override public RemoveVpcAccessRequest build() { return new RemoveVpcAccessRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy