com.aliyun.sdk.service.ecs20140526.models.DescribePrefixListsResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-ecs20140526 Show documentation
// 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 DescribePrefixListsResponseBody} extends {@link TeaModel}
*
* DescribePrefixListsResponseBody
*/
public class DescribePrefixListsResponseBody extends TeaModel {
@NameInMap("NextToken")
private String nextToken;
@NameInMap("PrefixLists")
private PrefixLists prefixLists;
@NameInMap("RequestId")
private String requestId;
private DescribePrefixListsResponseBody(Builder builder) {
this.nextToken = builder.nextToken;
this.prefixLists = builder.prefixLists;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static DescribePrefixListsResponseBody create() {
return builder().build();
}
/**
* @return nextToken
*/
public String getNextToken() {
return this.nextToken;
}
/**
* @return prefixLists
*/
public PrefixLists getPrefixLists() {
return this.prefixLists;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String nextToken;
private PrefixLists prefixLists;
private String requestId;
/**
* The query token returned in this call. If the return value is empty, no more data is returned.
*/
public Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
/**
* Details about the prefix lists.
*/
public Builder prefixLists(PrefixLists prefixLists) {
this.prefixLists = prefixLists;
return this;
}
/**
* The ID of the request.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public DescribePrefixListsResponseBody build() {
return new DescribePrefixListsResponseBody(this);
}
}
public static class PrefixList extends TeaModel {
@NameInMap("AddressFamily")
private String addressFamily;
@NameInMap("AssociationCount")
private Integer associationCount;
@NameInMap("CreationTime")
private String creationTime;
@NameInMap("Description")
private String description;
@NameInMap("MaxEntries")
private Integer maxEntries;
@NameInMap("PrefixListId")
private String prefixListId;
@NameInMap("PrefixListName")
private String prefixListName;
private PrefixList(Builder builder) {
this.addressFamily = builder.addressFamily;
this.associationCount = builder.associationCount;
this.creationTime = builder.creationTime;
this.description = builder.description;
this.maxEntries = builder.maxEntries;
this.prefixListId = builder.prefixListId;
this.prefixListName = builder.prefixListName;
}
public static Builder builder() {
return new Builder();
}
public static PrefixList create() {
return builder().build();
}
/**
* @return addressFamily
*/
public String getAddressFamily() {
return this.addressFamily;
}
/**
* @return associationCount
*/
public Integer getAssociationCount() {
return this.associationCount;
}
/**
* @return creationTime
*/
public String getCreationTime() {
return this.creationTime;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return maxEntries
*/
public Integer getMaxEntries() {
return this.maxEntries;
}
/**
* @return prefixListId
*/
public String getPrefixListId() {
return this.prefixListId;
}
/**
* @return prefixListName
*/
public String getPrefixListName() {
return this.prefixListName;
}
public static final class Builder {
private String addressFamily;
private Integer associationCount;
private String creationTime;
private String description;
private Integer maxEntries;
private String prefixListId;
private String prefixListName;
/**
* The IP address family of the prefix list. Valid values:
*
*
* * IPv4
* * IPv6
*/
public Builder addressFamily(String addressFamily) {
this.addressFamily = addressFamily;
return this;
}
/**
* The number of associated resources.
*/
public Builder associationCount(Integer associationCount) {
this.associationCount = associationCount;
return this;
}
/**
* The time when the prefix list was created.
*/
public Builder creationTime(String creationTime) {
this.creationTime = creationTime;
return this;
}
/**
* The description of the prefix list.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The maximum number of entries that the prefix list can contain.
*/
public Builder maxEntries(Integer maxEntries) {
this.maxEntries = maxEntries;
return this;
}
/**
* The ID of the prefix list.
*/
public Builder prefixListId(String prefixListId) {
this.prefixListId = prefixListId;
return this;
}
/**
* The name of the prefix list.
*/
public Builder prefixListName(String prefixListName) {
this.prefixListName = prefixListName;
return this;
}
public PrefixList build() {
return new PrefixList(this);
}
}
}
public static class PrefixLists extends TeaModel {
@NameInMap("PrefixList")
private java.util.List < PrefixList> prefixList;
private PrefixLists(Builder builder) {
this.prefixList = builder.prefixList;
}
public static Builder builder() {
return new Builder();
}
public static PrefixLists create() {
return builder().build();
}
/**
* @return prefixList
*/
public java.util.List < PrefixList> getPrefixList() {
return this.prefixList;
}
public static final class Builder {
private java.util.List < PrefixList> prefixList;
/**
* PrefixList.
*/
public Builder prefixList(java.util.List < PrefixList> prefixList) {
this.prefixList = prefixList;
return this;
}
public PrefixLists build() {
return new PrefixLists(this);
}
}
}
}