com.aliyun.sdk.service.ens20171110.models.CreateHaVipRequest 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 CreateHaVipRequest} extends {@link RequestModel}
*
* CreateHaVipRequest
*/
public class CreateHaVipRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Amount")
@com.aliyun.core.annotation.Validation(maximum = 10, minimum = 1)
private Integer amount;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
@com.aliyun.core.annotation.Validation(maxLength = 128)
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("IpAddress")
private String ipAddress;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(maxLength = 256)
private String name;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("VSwitchId")
@com.aliyun.core.annotation.Validation(maxLength = 256)
private String vSwitchId;
private CreateHaVipRequest(Builder builder) {
super(builder);
this.amount = builder.amount;
this.description = builder.description;
this.ipAddress = builder.ipAddress;
this.name = builder.name;
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static CreateHaVipRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return amount
*/
public Integer getAmount() {
return this.amount;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return ipAddress
*/
public String getIpAddress() {
return this.ipAddress;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder extends Request.Builder {
private Integer amount;
private String description;
private String ipAddress;
private String name;
private String vSwitchId;
private Builder() {
super();
}
private Builder(CreateHaVipRequest request) {
super(request);
this.amount = request.amount;
this.description = request.description;
this.ipAddress = request.ipAddress;
this.name = request.name;
this.vSwitchId = request.vSwitchId;
}
/**
* Amount.
*/
public Builder amount(Integer amount) {
this.putQueryParameter("Amount", amount);
this.amount = amount;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* IpAddress.
*/
public Builder ipAddress(String ipAddress) {
this.putQueryParameter("IpAddress", ipAddress);
this.ipAddress = ipAddress;
return this;
}
/**
* Name.
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
/**
* VSwitchId.
*/
public Builder vSwitchId(String vSwitchId) {
this.putQueryParameter("VSwitchId", vSwitchId);
this.vSwitchId = vSwitchId;
return this;
}
@Override
public CreateHaVipRequest build() {
return new CreateHaVipRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy