Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.huaweicloud.sdk.geip.v3.model.ListGeipPoolsRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.geip.v3.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.function.Consumer;
/**
* Request Object
*/
public class ListGeipPoolsRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "limit")
private Integer limit;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "offset")
private Integer offset;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "marker")
private String marker;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "page_reverse")
private Boolean pageReverse;
/**
* Gets or Sets fields
*/
public static final class FieldsEnum {
/**
* Enum ID for value: "id"
*/
public static final FieldsEnum ID = new FieldsEnum("id");
/**
* Enum NAME for value: "name"
*/
public static final FieldsEnum NAME = new FieldsEnum("name");
/**
* Enum ISP for value: "isp"
*/
public static final FieldsEnum ISP = new FieldsEnum("isp");
/**
* Enum ACCESS_SITE for value: "access_site"
*/
public static final FieldsEnum ACCESS_SITE = new FieldsEnum("access_site");
/**
* Enum TYPE for value: "type"
*/
public static final FieldsEnum TYPE = new FieldsEnum("type");
/**
* Enum IP_VERSION for value: "ip_version"
*/
public static final FieldsEnum IP_VERSION = new FieldsEnum("ip_version");
/**
* Enum EN_NAME for value: "en_name"
*/
public static final FieldsEnum EN_NAME = new FieldsEnum("en_name");
/**
* Enum CN_NAME for value: "cn_name"
*/
public static final FieldsEnum CN_NAME = new FieldsEnum("cn_name");
/**
* Enum STATUS for value: "status"
*/
public static final FieldsEnum STATUS = new FieldsEnum("status");
/**
* Enum CREATED_AT for value: "created_at"
*/
public static final FieldsEnum CREATED_AT = new FieldsEnum("created_at");
/**
* Enum UPDATED_AT for value: "updated_at"
*/
public static final FieldsEnum UPDATED_AT = new FieldsEnum("updated_at");
/**
* Enum DESCRIPTION for value: "description"
*/
public static final FieldsEnum DESCRIPTION = new FieldsEnum("description");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("id", ID);
map.put("name", NAME);
map.put("isp", ISP);
map.put("access_site", ACCESS_SITE);
map.put("type", TYPE);
map.put("ip_version", IP_VERSION);
map.put("en_name", EN_NAME);
map.put("cn_name", CN_NAME);
map.put("status", STATUS);
map.put("created_at", CREATED_AT);
map.put("updated_at", UPDATED_AT);
map.put("description", DESCRIPTION);
return Collections.unmodifiableMap(map);
}
private String value;
FieldsEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static FieldsEnum fromValue(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new FieldsEnum(value));
}
public static FieldsEnum valueOf(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value))
.orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'"));
}
@Override
public boolean equals(Object obj) {
if (obj instanceof FieldsEnum) {
return this.value.equals(((FieldsEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "fields")
private List fields = null;
/**
* Gets or Sets sortKey
*/
public static final class SortKeyEnum {
/**
* Enum ID for value: "id"
*/
public static final SortKeyEnum ID = new SortKeyEnum("id");
/**
* Enum NAME for value: "name"
*/
public static final SortKeyEnum NAME = new SortKeyEnum("name");
/**
* Enum TYPE for value: "type"
*/
public static final SortKeyEnum TYPE = new SortKeyEnum("type");
/**
* Enum ACCESS_SITE for value: "access_site"
*/
public static final SortKeyEnum ACCESS_SITE = new SortKeyEnum("access_site");
/**
* Enum CREATED_AT for value: "created_at"
*/
public static final SortKeyEnum CREATED_AT = new SortKeyEnum("created_at");
/**
* Enum UPDATED_AT for value: "updated_at"
*/
public static final SortKeyEnum UPDATED_AT = new SortKeyEnum("updated_at");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("id", ID);
map.put("name", NAME);
map.put("type", TYPE);
map.put("access_site", ACCESS_SITE);
map.put("created_at", CREATED_AT);
map.put("updated_at", UPDATED_AT);
return Collections.unmodifiableMap(map);
}
private String value;
SortKeyEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SortKeyEnum fromValue(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SortKeyEnum(value));
}
public static SortKeyEnum valueOf(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value))
.orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'"));
}
@Override
public boolean equals(Object obj) {
if (obj instanceof SortKeyEnum) {
return this.value.equals(((SortKeyEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "sort_key")
private List sortKey = null;
/**
* Gets or Sets sortDir
*/
public static final class SortDirEnum {
/**
* Enum ASC for value: "asc"
*/
public static final SortDirEnum ASC = new SortDirEnum("asc");
/**
* Enum DESC for value: "desc"
*/
public static final SortDirEnum DESC = new SortDirEnum("desc");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("asc", ASC);
map.put("desc", DESC);
return Collections.unmodifiableMap(map);
}
private String value;
SortDirEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static SortDirEnum fromValue(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new SortDirEnum(value));
}
public static SortDirEnum valueOf(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value))
.orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'"));
}
@Override
public boolean equals(Object obj) {
if (obj instanceof SortDirEnum) {
return this.value.equals(((SortDirEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "sort_dir")
private List sortDir = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private List id = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "code")
private List code = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "access_site")
private List accessSite = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "isp")
private List isp = null;
/**
* Gets or Sets ipVersion
*/
public static final class IpVersionEnum {
/**
* Enum _4 for value: "4"
*/
public static final IpVersionEnum _4 = new IpVersionEnum("4");
/**
* Enum _6 for value: "6"
*/
public static final IpVersionEnum _6 = new IpVersionEnum("6");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("4", _4);
map.put("6", _6);
return Collections.unmodifiableMap(map);
}
private String value;
IpVersionEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static IpVersionEnum fromValue(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new IpVersionEnum(value));
}
public static IpVersionEnum valueOf(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value))
.orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'"));
}
@Override
public boolean equals(Object obj) {
if (obj instanceof IpVersionEnum) {
return this.value.equals(((IpVersionEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ip_version")
private List ipVersion = null;
/**
* Gets or Sets status
*/
public static final class StatusEnum {
/**
* Enum ACTIVE for value: "active"
*/
public static final StatusEnum ACTIVE = new StatusEnum("active");
/**
* Enum INACTIVE for value: "inactive"
*/
public static final StatusEnum INACTIVE = new StatusEnum("inactive");
/**
* Enum SOLDOUT for value: "soldout"
*/
public static final StatusEnum SOLDOUT = new StatusEnum("soldout");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("active", ACTIVE);
map.put("inactive", INACTIVE);
map.put("soldout", SOLDOUT);
return Collections.unmodifiableMap(map);
}
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new StatusEnum(value));
}
public static StatusEnum valueOf(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value))
.orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'"));
}
@Override
public boolean equals(Object obj) {
if (obj instanceof StatusEnum) {
return this.value.equals(((StatusEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "status")
private List status = null;
/**
* Gets or Sets type
*/
public static final class TypeEnum {
/**
* Enum GEIP for value: "GEIP"
*/
public static final TypeEnum GEIP = new TypeEnum("GEIP");
/**
* Enum GEIP_SEGMENT for value: "GEIP_SEGMENT"
*/
public static final TypeEnum GEIP_SEGMENT = new TypeEnum("GEIP_SEGMENT");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("GEIP", GEIP);
map.put("GEIP_SEGMENT", GEIP_SEGMENT);
return Collections.unmodifiableMap(map);
}
private String value;
TypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new TypeEnum(value));
}
public static TypeEnum valueOf(String value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value))
.orElseThrow(() -> new IllegalArgumentException("Unexpected value '" + value + "'"));
}
@Override
public boolean equals(Object obj) {
if (obj instanceof TypeEnum) {
return this.value.equals(((TypeEnum) obj).value);
}
return false;
}
@Override
public int hashCode() {
return this.value.hashCode();
}
}
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "type")
private List type = null;
public ListGeipPoolsRequest withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* 每页条数
* minimum: 0
* maximum: 2000
* @return limit
*/
public Integer getLimit() {
return limit;
}
public void setLimit(Integer limit) {
this.limit = limit;
}
public ListGeipPoolsRequest withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* 分页起始点
* @return offset
*/
public Integer getOffset() {
return offset;
}
public void setOffset(Integer offset) {
this.offset = offset;
}
public ListGeipPoolsRequest withMarker(String marker) {
this.marker = marker;
return this;
}
/**
* 分页起始点
* @return marker
*/
public String getMarker() {
return marker;
}
public void setMarker(String marker) {
this.marker = marker;
}
public ListGeipPoolsRequest withPageReverse(Boolean pageReverse) {
this.pageReverse = pageReverse;
return this;
}
/**
* 翻页方向
* @return pageReverse
*/
public Boolean getPageReverse() {
return pageReverse;
}
public void setPageReverse(Boolean pageReverse) {
this.pageReverse = pageReverse;
}
public ListGeipPoolsRequest withFields(List fields) {
this.fields = fields;
return this;
}
public ListGeipPoolsRequest addFieldsItem(FieldsEnum fieldsItem) {
if (this.fields == null) {
this.fields = new ArrayList<>();
}
this.fields.add(fieldsItem);
return this;
}
public ListGeipPoolsRequest withFields(Consumer> fieldsSetter) {
if (this.fields == null) {
this.fields = new ArrayList<>();
}
fieldsSetter.accept(this.fields);
return this;
}
/**
* Get fields
* @return fields
*/
public List getFields() {
return fields;
}
public void setFields(List fields) {
this.fields = fields;
}
public ListGeipPoolsRequest withSortKey(List sortKey) {
this.sortKey = sortKey;
return this;
}
public ListGeipPoolsRequest addSortKeyItem(SortKeyEnum sortKeyItem) {
if (this.sortKey == null) {
this.sortKey = new ArrayList<>();
}
this.sortKey.add(sortKeyItem);
return this;
}
public ListGeipPoolsRequest withSortKey(Consumer> sortKeySetter) {
if (this.sortKey == null) {
this.sortKey = new ArrayList<>();
}
sortKeySetter.accept(this.sortKey);
return this;
}
/**
* 按照sort_key指定的字段排序
* @return sortKey
*/
public List getSortKey() {
return sortKey;
}
public void setSortKey(List sortKey) {
this.sortKey = sortKey;
}
public ListGeipPoolsRequest withSortDir(List sortDir) {
this.sortDir = sortDir;
return this;
}
public ListGeipPoolsRequest addSortDirItem(SortDirEnum sortDirItem) {
if (this.sortDir == null) {
this.sortDir = new ArrayList<>();
}
this.sortDir.add(sortDirItem);
return this;
}
public ListGeipPoolsRequest withSortDir(Consumer> sortDirSetter) {
if (this.sortDir == null) {
this.sortDir = new ArrayList<>();
}
sortDirSetter.accept(this.sortDir);
return this;
}
/**
* 排序的方向,倒序或者正序
* @return sortDir
*/
public List getSortDir() {
return sortDir;
}
public void setSortDir(List sortDir) {
this.sortDir = sortDir;
}
public ListGeipPoolsRequest withId(List id) {
this.id = id;
return this;
}
public ListGeipPoolsRequest addIdItem(String idItem) {
if (this.id == null) {
this.id = new ArrayList<>();
}
this.id.add(idItem);
return this;
}
public ListGeipPoolsRequest withId(Consumer> idSetter) {
if (this.id == null) {
this.id = new ArrayList<>();
}
idSetter.accept(this.id);
return this;
}
/**
* Get id
* @return id
*/
public List getId() {
return id;
}
public void setId(List id) {
this.id = id;
}
public ListGeipPoolsRequest withCode(List code) {
this.code = code;
return this;
}
public ListGeipPoolsRequest addCodeItem(String codeItem) {
if (this.code == null) {
this.code = new ArrayList<>();
}
this.code.add(codeItem);
return this;
}
public ListGeipPoolsRequest withCode(Consumer> codeSetter) {
if (this.code == null) {
this.code = new ArrayList<>();
}
codeSetter.accept(this.code);
return this;
}
/**
* Get code
* @return code
*/
public List getCode() {
return code;
}
public void setCode(List code) {
this.code = code;
}
public ListGeipPoolsRequest withAccessSite(List accessSite) {
this.accessSite = accessSite;
return this;
}
public ListGeipPoolsRequest addAccessSiteItem(String accessSiteItem) {
if (this.accessSite == null) {
this.accessSite = new ArrayList<>();
}
this.accessSite.add(accessSiteItem);
return this;
}
public ListGeipPoolsRequest withAccessSite(Consumer> accessSiteSetter) {
if (this.accessSite == null) {
this.accessSite = new ArrayList<>();
}
accessSiteSetter.accept(this.accessSite);
return this;
}
/**
* Get accessSite
* @return accessSite
*/
public List getAccessSite() {
return accessSite;
}
public void setAccessSite(List accessSite) {
this.accessSite = accessSite;
}
public ListGeipPoolsRequest withIsp(List isp) {
this.isp = isp;
return this;
}
public ListGeipPoolsRequest addIspItem(String ispItem) {
if (this.isp == null) {
this.isp = new ArrayList<>();
}
this.isp.add(ispItem);
return this;
}
public ListGeipPoolsRequest withIsp(Consumer> ispSetter) {
if (this.isp == null) {
this.isp = new ArrayList<>();
}
ispSetter.accept(this.isp);
return this;
}
/**
* Get isp
* @return isp
*/
public List getIsp() {
return isp;
}
public void setIsp(List isp) {
this.isp = isp;
}
public ListGeipPoolsRequest withIpVersion(List ipVersion) {
this.ipVersion = ipVersion;
return this;
}
public ListGeipPoolsRequest addIpVersionItem(IpVersionEnum ipVersionItem) {
if (this.ipVersion == null) {
this.ipVersion = new ArrayList<>();
}
this.ipVersion.add(ipVersionItem);
return this;
}
public ListGeipPoolsRequest withIpVersion(Consumer> ipVersionSetter) {
if (this.ipVersion == null) {
this.ipVersion = new ArrayList<>();
}
ipVersionSetter.accept(this.ipVersion);
return this;
}
/**
* Get ipVersion
* @return ipVersion
*/
public List getIpVersion() {
return ipVersion;
}
public void setIpVersion(List ipVersion) {
this.ipVersion = ipVersion;
}
public ListGeipPoolsRequest withStatus(List status) {
this.status = status;
return this;
}
public ListGeipPoolsRequest addStatusItem(StatusEnum statusItem) {
if (this.status == null) {
this.status = new ArrayList<>();
}
this.status.add(statusItem);
return this;
}
public ListGeipPoolsRequest withStatus(Consumer> statusSetter) {
if (this.status == null) {
this.status = new ArrayList<>();
}
statusSetter.accept(this.status);
return this;
}
/**
* Get status
* @return status
*/
public List getStatus() {
return status;
}
public void setStatus(List status) {
this.status = status;
}
public ListGeipPoolsRequest withType(List type) {
this.type = type;
return this;
}
public ListGeipPoolsRequest addTypeItem(TypeEnum typeItem) {
if (this.type == null) {
this.type = new ArrayList<>();
}
this.type.add(typeItem);
return this;
}
public ListGeipPoolsRequest withType(Consumer> typeSetter) {
if (this.type == null) {
this.type = new ArrayList<>();
}
typeSetter.accept(this.type);
return this;
}
/**
* Get type
* @return type
*/
public List getType() {
return type;
}
public void setType(List type) {
this.type = type;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListGeipPoolsRequest that = (ListGeipPoolsRequest) obj;
return Objects.equals(this.limit, that.limit) && Objects.equals(this.offset, that.offset)
&& Objects.equals(this.marker, that.marker) && Objects.equals(this.pageReverse, that.pageReverse)
&& Objects.equals(this.fields, that.fields) && Objects.equals(this.sortKey, that.sortKey)
&& Objects.equals(this.sortDir, that.sortDir) && Objects.equals(this.id, that.id)
&& Objects.equals(this.code, that.code) && Objects.equals(this.accessSite, that.accessSite)
&& Objects.equals(this.isp, that.isp) && Objects.equals(this.ipVersion, that.ipVersion)
&& Objects.equals(this.status, that.status) && Objects.equals(this.type, that.type);
}
@Override
public int hashCode() {
return Objects.hash(limit,
offset,
marker,
pageReverse,
fields,
sortKey,
sortDir,
id,
code,
accessSite,
isp,
ipVersion,
status,
type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListGeipPoolsRequest {\n");
sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
sb.append(" marker: ").append(toIndentedString(marker)).append("\n");
sb.append(" pageReverse: ").append(toIndentedString(pageReverse)).append("\n");
sb.append(" fields: ").append(toIndentedString(fields)).append("\n");
sb.append(" sortKey: ").append(toIndentedString(sortKey)).append("\n");
sb.append(" sortDir: ").append(toIndentedString(sortDir)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" accessSite: ").append(toIndentedString(accessSite)).append("\n");
sb.append(" isp: ").append(toIndentedString(isp)).append("\n");
sb.append(" ipVersion: ").append(toIndentedString(ipVersion)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}