com.aliyun.sdk.service.ens20171110.models.AssociateEnsEipAddressRequest 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 AssociateEnsEipAddressRequest} extends {@link RequestModel}
*
* AssociateEnsEipAddressRequest
*/
public class AssociateEnsEipAddressRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AllocationId")
@com.aliyun.core.annotation.Validation(required = true)
private String allocationId;
@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("InstanceType")
private String instanceType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Standby")
private Boolean standby;
private AssociateEnsEipAddressRequest(Builder builder) {
super(builder);
this.allocationId = builder.allocationId;
this.instanceId = builder.instanceId;
this.instanceType = builder.instanceType;
this.standby = builder.standby;
}
public static Builder builder() {
return new Builder();
}
public static AssociateEnsEipAddressRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return instanceType
*/
public String getInstanceType() {
return this.instanceType;
}
/**
* @return standby
*/
public Boolean getStandby() {
return this.standby;
}
public static final class Builder extends Request.Builder {
private String allocationId;
private String instanceId;
private String instanceType;
private Boolean standby;
private Builder() {
super();
}
private Builder(AssociateEnsEipAddressRequest request) {
super(request);
this.allocationId = request.allocationId;
this.instanceId = request.instanceId;
this.instanceType = request.instanceType;
this.standby = request.standby;
}
/**
* The ID of the EIP that you want to associate.
* This parameter is required.
*
* example:
* eip-5sc1sgcrsrwgwdvx44hru3p63
*/
public Builder allocationId(String allocationId) {
this.putQueryParameter("AllocationId", allocationId);
this.allocationId = allocationId;
return this;
}
/**
* The ID of the cloud service with which the EIP is associated.
*
* You can specify the ID of an Edge Load Balancer (ELB) instance ID.
*
* This parameter is required.
*
* example:
* lb-5saivuir6b1mupxjfbhmk1xkb
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The type of instance with which you want to associate the EIP. Valid values:
*
* - Nat: a NAT gateway.
* - SlbInstance: an ELB instance.
* - NetworkInterface: a secondary elastic network interface (ENI).
* - NatSlbInstance: If you want to associate multiple EIPs to an ELB instance, you need to set the parameter to this value.
* - EnsInstance (default): an ENS instance.
*
*
* example:
* SlbInstance
*/
public Builder instanceType(String instanceType) {
this.putQueryParameter("InstanceType", instanceType);
this.instanceType = instanceType;
return this;
}
/**
* Specifies whether the EIP is a secondary EIP. Valid values:
*
* - true
* - false
*
*
* example:
* true
*/
public Builder standby(Boolean standby) {
this.putQueryParameter("Standby", standby);
this.standby = standby;
return this;
}
@Override
public AssociateEnsEipAddressRequest build() {
return new AssociateEnsEipAddressRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy