
com.aliyun.sdk.service.ens20171110.models.ModifyEnsEipAddressAttributeRequest Maven / Gradle / Ivy
// 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 ModifyEnsEipAddressAttributeRequest} extends {@link RequestModel}
*
* ModifyEnsEipAddressAttributeRequest
*/
public class ModifyEnsEipAddressAttributeRequest 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("Bandwidth")
@com.aliyun.core.annotation.Validation(maximum = 10000, minimum = 1)
private Integer bandwidth;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
@com.aliyun.core.annotation.Validation(maxLength = 256, minLength = 2)
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Name")
@com.aliyun.core.annotation.Validation(maxLength = 128, minLength = 2)
private String name;
private ModifyEnsEipAddressAttributeRequest(Builder builder) {
super(builder);
this.allocationId = builder.allocationId;
this.bandwidth = builder.bandwidth;
this.description = builder.description;
this.name = builder.name;
}
public static Builder builder() {
return new Builder();
}
public static ModifyEnsEipAddressAttributeRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return allocationId
*/
public String getAllocationId() {
return this.allocationId;
}
/**
* @return bandwidth
*/
public Integer getBandwidth() {
return this.bandwidth;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
public static final class Builder extends Request.Builder {
private String allocationId;
private Integer bandwidth;
private String description;
private String name;
private Builder() {
super();
}
private Builder(ModifyEnsEipAddressAttributeRequest request) {
super(request);
this.allocationId = request.allocationId;
this.bandwidth = request.bandwidth;
this.description = request.description;
this.name = request.name;
}
/**
* The ID of the EIP.
* This parameter is required.
*
* example:
* eip-5sw5dxzgi6umq4uexxkt8wpma
*/
public Builder allocationId(String allocationId) {
this.putQueryParameter("AllocationId", allocationId);
this.allocationId = allocationId;
return this;
}
/**
* The peak bandwidth of the EIP. Default value: 5. Valid values: 5 to 10000. Unit: Mbit/s.
*
* example:
* 50
*/
public Builder bandwidth(Integer bandwidth) {
this.putQueryParameter("Bandwidth", bandwidth);
this.bandwidth = bandwidth;
return this;
}
/**
* The new description of the EIP. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
*
* example:
* abc
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* The new name of the EIP. The name must be 2 to 128 characters in length and cannot start with http:// or https://.
*
* example:
* test-api-modify
*/
public Builder name(String name) {
this.putQueryParameter("Name", name);
this.name = name;
return this;
}
@Override
public ModifyEnsEipAddressAttributeRequest build() {
return new ModifyEnsEipAddressAttributeRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy