com.aliyun.sdk.service.ens20171110.models.LeaveSecurityGroupRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ens20171110 Show documentation
Show all versions of alibabacloud-ens20171110 Show documentation
Alibaba Cloud Ens (20171110) Async SDK for Java
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 LeaveSecurityGroupRequest} extends {@link RequestModel}
*
* LeaveSecurityGroupRequest
*/
public class LeaveSecurityGroupRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("NetworkInterfaceId")
private String networkInterfaceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityGroupId")
@com.aliyun.core.annotation.Validation(required = true)
private String securityGroupId;
private LeaveSecurityGroupRequest(Builder builder) {
super(builder);
this.instanceId = builder.instanceId;
this.networkInterfaceId = builder.networkInterfaceId;
this.securityGroupId = builder.securityGroupId;
}
public static Builder builder() {
return new Builder();
}
public static LeaveSecurityGroupRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return networkInterfaceId
*/
public String getNetworkInterfaceId() {
return this.networkInterfaceId;
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
public static final class Builder extends Request.Builder {
private String instanceId;
private String networkInterfaceId;
private String securityGroupId;
private Builder() {
super();
}
private Builder(LeaveSecurityGroupRequest request) {
super(request);
this.instanceId = request.instanceId;
this.networkInterfaceId = request.networkInterfaceId;
this.securityGroupId = request.securityGroupId;
}
/**
* The instance ID.
*
* example:
* i-bp67acfmxazb4p****
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The ID of the ENI.
*
* example:
* eni-58z57orgmt6d1****
*/
public Builder networkInterfaceId(String networkInterfaceId) {
this.putQueryParameter("NetworkInterfaceId", networkInterfaceId);
this.networkInterfaceId = networkInterfaceId;
return this;
}
/**
* The ID of the security group.
* This parameter is required.
*
* example:
* sg-bp67acfmxazb4p****
*/
public Builder securityGroupId(String securityGroupId) {
this.putQueryParameter("SecurityGroupId", securityGroupId);
this.securityGroupId = securityGroupId;
return this;
}
@Override
public LeaveSecurityGroupRequest build() {
return new LeaveSecurityGroupRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy