com.aliyun.sdk.service.cloudapi20160714.models.EnableInstanceAccessControlRequest Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.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 EnableInstanceAccessControlRequest} extends {@link RequestModel}
*
* EnableInstanceAccessControlRequest
*/
public class EnableInstanceAccessControlRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclId")
@com.aliyun.core.annotation.Validation(required = true)
private String aclId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AclType")
@com.aliyun.core.annotation.Validation(required = true)
private String aclType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AddressIPVersion")
private String addressIPVersion;
@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("SecurityToken")
private String securityToken;
private EnableInstanceAccessControlRequest(Builder builder) {
super(builder);
this.aclId = builder.aclId;
this.aclType = builder.aclType;
this.addressIPVersion = builder.addressIPVersion;
this.instanceId = builder.instanceId;
this.securityToken = builder.securityToken;
}
public static Builder builder() {
return new Builder();
}
public static EnableInstanceAccessControlRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return aclId
*/
public String getAclId() {
return this.aclId;
}
/**
* @return aclType
*/
public String getAclType() {
return this.aclType;
}
/**
* @return addressIPVersion
*/
public String getAddressIPVersion() {
return this.addressIPVersion;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
public static final class Builder extends Request.Builder {
private String aclId;
private String aclType;
private String addressIPVersion;
private String instanceId;
private String securityToken;
private Builder() {
super();
}
private Builder(EnableInstanceAccessControlRequest request) {
super(request);
this.aclId = request.aclId;
this.aclType = request.aclType;
this.addressIPVersion = request.addressIPVersion;
this.instanceId = request.instanceId;
this.securityToken = request.securityToken;
}
/**
* The ID of the access control policy.
* This parameter is required.
*
* example:
* acl-bp11escro2et2tioscy52
*/
public Builder aclId(String aclId) {
this.putQueryParameter("AclId", aclId);
this.aclId = aclId;
return this;
}
/**
* The ACL type. Valid values:
*
* - black: blacklist
* - white: whitelist
*
* This parameter is required.
*
* example:
* black
*/
public Builder aclType(String aclType) {
this.putQueryParameter("AclType", aclType);
this.aclType = aclType;
return this;
}
/**
* The IP version. Valid values: ipv4 and ipv6.
*
* example:
* ipv4
*/
public Builder addressIPVersion(String addressIPVersion) {
this.putQueryParameter("AddressIPVersion", addressIPVersion);
this.addressIPVersion = addressIPVersion;
return this;
}
/**
* The ID of the instance.
* This parameter is required.
*
* example:
* apigateway-cn-v6419k43xxxxx
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
@Override
public EnableInstanceAccessControlRequest build() {
return new EnableInstanceAccessControlRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy