
com.aliyun.sdk.service.ecs20140526.models.CreatePrefixListRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-ecs20140526 Show documentation
Show all versions of alibabacloud-ecs20140526 Show documentation
Alibaba Cloud Ecs (20140526) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CreatePrefixListRequest} extends {@link RequestModel}
*
* CreatePrefixListRequest
*/
public class CreatePrefixListRequest extends Request {
@Host
@NameInMap("SourceRegionId")
private String sourceRegionId;
@Query
@NameInMap("AddressFamily")
@Validation(required = true)
private String addressFamily;
@Query
@NameInMap("ClientToken")
private String clientToken;
@Query
@NameInMap("Description")
private String description;
@Query
@NameInMap("Entry")
private java.util.List < Entry> entry;
@Query
@NameInMap("MaxEntries")
@Validation(required = true, maximum = 200, minimum = 1)
private Integer maxEntries;
@Query
@NameInMap("OwnerAccount")
private String ownerAccount;
@Query
@NameInMap("OwnerId")
private Long ownerId;
@Query
@NameInMap("PrefixListName")
@Validation(required = true)
private String prefixListName;
@Query
@NameInMap("RegionId")
@Validation(required = true)
private String regionId;
@Query
@NameInMap("ResourceOwnerAccount")
private String resourceOwnerAccount;
@Query
@NameInMap("ResourceOwnerId")
private Long resourceOwnerId;
private CreatePrefixListRequest(Builder builder) {
super(builder);
this.sourceRegionId = builder.sourceRegionId;
this.addressFamily = builder.addressFamily;
this.clientToken = builder.clientToken;
this.description = builder.description;
this.entry = builder.entry;
this.maxEntries = builder.maxEntries;
this.ownerAccount = builder.ownerAccount;
this.ownerId = builder.ownerId;
this.prefixListName = builder.prefixListName;
this.regionId = builder.regionId;
this.resourceOwnerAccount = builder.resourceOwnerAccount;
this.resourceOwnerId = builder.resourceOwnerId;
}
public static Builder builder() {
return new Builder();
}
public static CreatePrefixListRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return sourceRegionId
*/
public String getSourceRegionId() {
return this.sourceRegionId;
}
/**
* @return addressFamily
*/
public String getAddressFamily() {
return this.addressFamily;
}
/**
* @return clientToken
*/
public String getClientToken() {
return this.clientToken;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return entry
*/
public java.util.List < Entry> getEntry() {
return this.entry;
}
/**
* @return maxEntries
*/
public Integer getMaxEntries() {
return this.maxEntries;
}
/**
* @return ownerAccount
*/
public String getOwnerAccount() {
return this.ownerAccount;
}
/**
* @return ownerId
*/
public Long getOwnerId() {
return this.ownerId;
}
/**
* @return prefixListName
*/
public String getPrefixListName() {
return this.prefixListName;
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return resourceOwnerAccount
*/
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
/**
* @return resourceOwnerId
*/
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public static final class Builder extends Request.Builder {
private String sourceRegionId;
private String addressFamily;
private String clientToken;
private String description;
private java.util.List < Entry> entry;
private Integer maxEntries;
private String ownerAccount;
private Long ownerId;
private String prefixListName;
private String regionId;
private String resourceOwnerAccount;
private Long resourceOwnerId;
private Builder() {
super();
}
private Builder(CreatePrefixListRequest request) {
super(request);
this.sourceRegionId = request.sourceRegionId;
this.addressFamily = request.addressFamily;
this.clientToken = request.clientToken;
this.description = request.description;
this.entry = request.entry;
this.maxEntries = request.maxEntries;
this.ownerAccount = request.ownerAccount;
this.ownerId = request.ownerId;
this.prefixListName = request.prefixListName;
this.regionId = request.regionId;
this.resourceOwnerAccount = request.resourceOwnerAccount;
this.resourceOwnerId = request.resourceOwnerId;
}
/**
* SourceRegionId.
*/
public Builder sourceRegionId(String sourceRegionId) {
this.putHostParameter("SourceRegionId", sourceRegionId);
this.sourceRegionId = sourceRegionId;
return this;
}
/**
* AddressFamily.
*/
public Builder addressFamily(String addressFamily) {
this.putQueryParameter("AddressFamily", addressFamily);
this.addressFamily = addressFamily;
return this;
}
/**
* ClientToken.
*/
public Builder clientToken(String clientToken) {
this.putQueryParameter("ClientToken", clientToken);
this.clientToken = clientToken;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* Entry.
*/
public Builder entry(java.util.List < Entry> entry) {
this.putQueryParameter("Entry", entry);
this.entry = entry;
return this;
}
/**
* MaxEntries.
*/
public Builder maxEntries(Integer maxEntries) {
this.putQueryParameter("MaxEntries", maxEntries);
this.maxEntries = maxEntries;
return this;
}
/**
* OwnerAccount.
*/
public Builder ownerAccount(String ownerAccount) {
this.putQueryParameter("OwnerAccount", ownerAccount);
this.ownerAccount = ownerAccount;
return this;
}
/**
* OwnerId.
*/
public Builder ownerId(Long ownerId) {
this.putQueryParameter("OwnerId", ownerId);
this.ownerId = ownerId;
return this;
}
/**
* PrefixListName.
*/
public Builder prefixListName(String prefixListName) {
this.putQueryParameter("PrefixListName", prefixListName);
this.prefixListName = prefixListName;
return this;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putQueryParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ResourceOwnerAccount.
*/
public Builder resourceOwnerAccount(String resourceOwnerAccount) {
this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount);
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
/**
* ResourceOwnerId.
*/
public Builder resourceOwnerId(Long resourceOwnerId) {
this.putQueryParameter("ResourceOwnerId", resourceOwnerId);
this.resourceOwnerId = resourceOwnerId;
return this;
}
@Override
public CreatePrefixListRequest build() {
return new CreatePrefixListRequest(this);
}
}
public static class Entry extends TeaModel {
@NameInMap("Cidr")
@Validation(required = true)
private String cidr;
@NameInMap("Description")
private String description;
private Entry(Builder builder) {
this.cidr = builder.cidr;
this.description = builder.description;
}
public static Builder builder() {
return new Builder();
}
public static Entry create() {
return builder().build();
}
/**
* @return cidr
*/
public String getCidr() {
return this.cidr;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
public static final class Builder {
private String cidr;
private String description;
/**
* Cidr.
*/
public Builder cidr(String cidr) {
this.cidr = cidr;
return this;
}
/**
* Description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
public Entry build() {
return new Entry(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy