All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.ListGlobalEips 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.time.OffsetDateTime;
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;
/**
* ListGlobalEips
*/
public class ListGlobalEips {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private String id;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private String name;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "description")
private String description;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "domain_id")
private String domainId;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "access_site")
private String accessSite;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "geip_pool_name")
private String geipPoolName;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "isp")
private String isp;
/**
* - 功能说明:全域弹性公网IP的版本 - 取值范围:4、6
*/
public static final class IpVersionEnum {
/**
* Enum NUMBER_4 for value: 4
*/
public static final IpVersionEnum NUMBER_4 = new IpVersionEnum(4);
/**
* Enum NUMBER_6 for value: 6
*/
public static final IpVersionEnum NUMBER_6 = new IpVersionEnum(6);
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put(4, NUMBER_4);
map.put(6, NUMBER_6);
return Collections.unmodifiableMap(map);
}
private Integer value;
IpVersionEnum(Integer value) {
this.value = value;
}
@JsonValue
public Integer getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static IpVersionEnum fromValue(Integer value) {
if (value == null) {
return null;
}
return java.util.Optional.ofNullable(STATIC_FIELDS.get(value)).orElse(new IpVersionEnum(value));
}
public static IpVersionEnum valueOf(Integer 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 IpVersionEnum ipVersion;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ip_address")
private String ipAddress;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ipv6_address")
private String ipv6Address;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "freezen")
private Boolean freezen;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "freezen_info")
private String freezenInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "polluted")
private Boolean polluted;
/**
* 状态
*/
public static final class StatusEnum {
/**
* Enum PENDING_CREATE for value: "PENDING_CREATE"
*/
public static final StatusEnum PENDING_CREATE = new StatusEnum("PENDING_CREATE");
/**
* Enum IDLE for value: "IDLE"
*/
public static final StatusEnum IDLE = new StatusEnum("IDLE");
/**
* Enum INUSE for value: "INUSE"
*/
public static final StatusEnum INUSE = new StatusEnum("INUSE");
/**
* Enum PENDING_UPDATE for value: "PENDING_UPDATE"
*/
public static final StatusEnum PENDING_UPDATE = new StatusEnum("PENDING_UPDATE");
private static final Map STATIC_FIELDS = createStaticFields();
private static Map createStaticFields() {
Map map = new HashMap<>();
map.put("PENDING_CREATE", PENDING_CREATE);
map.put("IDLE", IDLE);
map.put("INUSE", INUSE);
map.put("PENDING_UPDATE", PENDING_UPDATE);
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 StatusEnum status;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "created_at")
private OffsetDateTime createdAt;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "updated_at")
private OffsetDateTime updatedAt;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "internet_bandwidth_info")
private InternetBandwidthInfo internetBandwidthInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "global_connection_bandwidth_info")
private GlobalConnectionBandwidthInfo globalConnectionBandwidthInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "associate_instance_info")
private InstanceInfo associateInstanceInfo;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "is_pre_paid")
private Boolean isPrePaid;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "tags")
private List tags = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "sys_tags")
private List sysTags = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "enterprise_project_id")
private String enterpriseProjectId;
public ListGlobalEips withId(String id) {
this.id = id;
return this;
}
/**
* 全域弹性公网IP的ID
* @return id
*/
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public ListGlobalEips withName(String name) {
this.name = name;
return this;
}
/**
* - 功能说明:全域弹性公网IP名称 - 取值范围:1-64,支持数字、字母、中文、_(下划线)、-(中划线)、.(点)
* @return name
*/
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ListGlobalEips withDescription(String description) {
this.description = description;
return this;
}
/**
* - 功能说明:用户自定义的资源描述 - 约束: - 值的长度最大512字符,由数字、字母、中文、_(下划线)、-(中划线)、.(点)组成。
* @return description
*/
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ListGlobalEips withDomainId(String domainId) {
this.domainId = domainId;
return this;
}
/**
* - 租户账号ID,获取租户账号ID请参见[租户账号ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)
* @return domainId
*/
public String getDomainId() {
return domainId;
}
public void setDomainId(String domainId) {
this.domainId = domainId;
}
public ListGlobalEips withAccessSite(String accessSite) {
this.accessSite = accessSite;
return this;
}
/**
* 接入点信息
* @return accessSite
*/
public String getAccessSite() {
return accessSite;
}
public void setAccessSite(String accessSite) {
this.accessSite = accessSite;
}
public ListGlobalEips withGeipPoolName(String geipPoolName) {
this.geipPoolName = geipPoolName;
return this;
}
/**
* 全域弹性公网IP池子名称
* @return geipPoolName
*/
public String getGeipPoolName() {
return geipPoolName;
}
public void setGeipPoolName(String geipPoolName) {
this.geipPoolName = geipPoolName;
}
public ListGlobalEips withIsp(String isp) {
this.isp = isp;
return this;
}
/**
* 全域弹性公网IP所属线路
* @return isp
*/
public String getIsp() {
return isp;
}
public void setIsp(String isp) {
this.isp = isp;
}
public ListGlobalEips withIpVersion(IpVersionEnum ipVersion) {
this.ipVersion = ipVersion;
return this;
}
/**
* - 功能说明:全域弹性公网IP的版本 - 取值范围:4、6
* @return ipVersion
*/
public IpVersionEnum getIpVersion() {
return ipVersion;
}
public void setIpVersion(IpVersionEnum ipVersion) {
this.ipVersion = ipVersion;
}
public ListGlobalEips withIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
return this;
}
/**
* IPv4地址
* @return ipAddress
*/
public String getIpAddress() {
return ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public ListGlobalEips withIpv6Address(String ipv6Address) {
this.ipv6Address = ipv6Address;
return this;
}
/**
* IPv6地址
* @return ipv6Address
*/
public String getIpv6Address() {
return ipv6Address;
}
public void setIpv6Address(String ipv6Address) {
this.ipv6Address = ipv6Address;
}
public ListGlobalEips withFreezen(Boolean freezen) {
this.freezen = freezen;
return this;
}
/**
* 是否冻结
* @return freezen
*/
public Boolean getFreezen() {
return freezen;
}
public void setFreezen(Boolean freezen) {
this.freezen = freezen;
}
public ListGlobalEips withFreezenInfo(String freezenInfo) {
this.freezenInfo = freezenInfo;
return this;
}
/**
* 冻结原因
* @return freezenInfo
*/
public String getFreezenInfo() {
return freezenInfo;
}
public void setFreezenInfo(String freezenInfo) {
this.freezenInfo = freezenInfo;
}
public ListGlobalEips withPolluted(Boolean polluted) {
this.polluted = polluted;
return this;
}
/**
* 是否污染
* @return polluted
*/
public Boolean getPolluted() {
return polluted;
}
public void setPolluted(Boolean polluted) {
this.polluted = polluted;
}
public ListGlobalEips withStatus(StatusEnum status) {
this.status = status;
return this;
}
/**
* 状态
* @return status
*/
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
public ListGlobalEips withCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* 创建时间
* @return createdAt
*/
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public ListGlobalEips withUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* 更新时间
* @return updatedAt
*/
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
public ListGlobalEips withInternetBandwidthInfo(InternetBandwidthInfo internetBandwidthInfo) {
this.internetBandwidthInfo = internetBandwidthInfo;
return this;
}
public ListGlobalEips withInternetBandwidthInfo(Consumer internetBandwidthInfoSetter) {
if (this.internetBandwidthInfo == null) {
this.internetBandwidthInfo = new InternetBandwidthInfo();
internetBandwidthInfoSetter.accept(this.internetBandwidthInfo);
}
return this;
}
/**
* Get internetBandwidthInfo
* @return internetBandwidthInfo
*/
public InternetBandwidthInfo getInternetBandwidthInfo() {
return internetBandwidthInfo;
}
public void setInternetBandwidthInfo(InternetBandwidthInfo internetBandwidthInfo) {
this.internetBandwidthInfo = internetBandwidthInfo;
}
public ListGlobalEips withGlobalConnectionBandwidthInfo(
GlobalConnectionBandwidthInfo globalConnectionBandwidthInfo) {
this.globalConnectionBandwidthInfo = globalConnectionBandwidthInfo;
return this;
}
public ListGlobalEips withGlobalConnectionBandwidthInfo(
Consumer globalConnectionBandwidthInfoSetter) {
if (this.globalConnectionBandwidthInfo == null) {
this.globalConnectionBandwidthInfo = new GlobalConnectionBandwidthInfo();
globalConnectionBandwidthInfoSetter.accept(this.globalConnectionBandwidthInfo);
}
return this;
}
/**
* Get globalConnectionBandwidthInfo
* @return globalConnectionBandwidthInfo
*/
public GlobalConnectionBandwidthInfo getGlobalConnectionBandwidthInfo() {
return globalConnectionBandwidthInfo;
}
public void setGlobalConnectionBandwidthInfo(GlobalConnectionBandwidthInfo globalConnectionBandwidthInfo) {
this.globalConnectionBandwidthInfo = globalConnectionBandwidthInfo;
}
public ListGlobalEips withAssociateInstanceInfo(InstanceInfo associateInstanceInfo) {
this.associateInstanceInfo = associateInstanceInfo;
return this;
}
public ListGlobalEips withAssociateInstanceInfo(Consumer associateInstanceInfoSetter) {
if (this.associateInstanceInfo == null) {
this.associateInstanceInfo = new InstanceInfo();
associateInstanceInfoSetter.accept(this.associateInstanceInfo);
}
return this;
}
/**
* Get associateInstanceInfo
* @return associateInstanceInfo
*/
public InstanceInfo getAssociateInstanceInfo() {
return associateInstanceInfo;
}
public void setAssociateInstanceInfo(InstanceInfo associateInstanceInfo) {
this.associateInstanceInfo = associateInstanceInfo;
}
public ListGlobalEips withIsPrePaid(Boolean isPrePaid) {
this.isPrePaid = isPrePaid;
return this;
}
/**
* 是否包周期
* @return isPrePaid
*/
public Boolean getIsPrePaid() {
return isPrePaid;
}
public void setIsPrePaid(Boolean isPrePaid) {
this.isPrePaid = isPrePaid;
}
public ListGlobalEips withTags(List tags) {
this.tags = tags;
return this;
}
public ListGlobalEips addTagsItem(Tag tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
public ListGlobalEips withTags(Consumer> tagsSetter) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
tagsSetter.accept(this.tags);
return this;
}
/**
* 全域弹性公网IP标签
* @return tags
*/
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
public ListGlobalEips withSysTags(List sysTags) {
this.sysTags = sysTags;
return this;
}
public ListGlobalEips addSysTagsItem(Tag sysTagsItem) {
if (this.sysTags == null) {
this.sysTags = new ArrayList<>();
}
this.sysTags.add(sysTagsItem);
return this;
}
public ListGlobalEips withSysTags(Consumer> sysTagsSetter) {
if (this.sysTags == null) {
this.sysTags = new ArrayList<>();
}
sysTagsSetter.accept(this.sysTags);
return this;
}
/**
* 系统标签
* @return sysTags
*/
public List getSysTags() {
return sysTags;
}
public void setSysTags(List sysTags) {
this.sysTags = sysTags;
}
public ListGlobalEips withEnterpriseProjectId(String enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
return this;
}
/**
* - 企业项目ID。最大长度36字节,带“-”连字符的UUID格式,或者是字符串“0”。 - 创建全域弹性公网IP时,给全域弹性公网IP绑定企业项目ID。 - 不指定该参数时,默认值是 0 - 关于企业项目ID的获取及企业项目特性的详细信息,请参见[《企业管理用户指南》](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0126101490.html)。
* @return enterpriseProjectId
*/
public String getEnterpriseProjectId() {
return enterpriseProjectId;
}
public void setEnterpriseProjectId(String enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
ListGlobalEips that = (ListGlobalEips) obj;
return Objects.equals(this.id, that.id) && Objects.equals(this.name, that.name)
&& Objects.equals(this.description, that.description) && Objects.equals(this.domainId, that.domainId)
&& Objects.equals(this.accessSite, that.accessSite) && Objects.equals(this.geipPoolName, that.geipPoolName)
&& Objects.equals(this.isp, that.isp) && Objects.equals(this.ipVersion, that.ipVersion)
&& Objects.equals(this.ipAddress, that.ipAddress) && Objects.equals(this.ipv6Address, that.ipv6Address)
&& Objects.equals(this.freezen, that.freezen) && Objects.equals(this.freezenInfo, that.freezenInfo)
&& Objects.equals(this.polluted, that.polluted) && Objects.equals(this.status, that.status)
&& Objects.equals(this.createdAt, that.createdAt) && Objects.equals(this.updatedAt, that.updatedAt)
&& Objects.equals(this.internetBandwidthInfo, that.internetBandwidthInfo)
&& Objects.equals(this.globalConnectionBandwidthInfo, that.globalConnectionBandwidthInfo)
&& Objects.equals(this.associateInstanceInfo, that.associateInstanceInfo)
&& Objects.equals(this.isPrePaid, that.isPrePaid) && Objects.equals(this.tags, that.tags)
&& Objects.equals(this.sysTags, that.sysTags)
&& Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId);
}
@Override
public int hashCode() {
return Objects.hash(id,
name,
description,
domainId,
accessSite,
geipPoolName,
isp,
ipVersion,
ipAddress,
ipv6Address,
freezen,
freezenInfo,
polluted,
status,
createdAt,
updatedAt,
internetBandwidthInfo,
globalConnectionBandwidthInfo,
associateInstanceInfo,
isPrePaid,
tags,
sysTags,
enterpriseProjectId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ListGlobalEips {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n");
sb.append(" accessSite: ").append(toIndentedString(accessSite)).append("\n");
sb.append(" geipPoolName: ").append(toIndentedString(geipPoolName)).append("\n");
sb.append(" isp: ").append(toIndentedString(isp)).append("\n");
sb.append(" ipVersion: ").append(toIndentedString(ipVersion)).append("\n");
sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n");
sb.append(" ipv6Address: ").append(toIndentedString(ipv6Address)).append("\n");
sb.append(" freezen: ").append(toIndentedString(freezen)).append("\n");
sb.append(" freezenInfo: ").append(toIndentedString(freezenInfo)).append("\n");
sb.append(" polluted: ").append(toIndentedString(polluted)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" internetBandwidthInfo: ").append(toIndentedString(internetBandwidthInfo)).append("\n");
sb.append(" globalConnectionBandwidthInfo: ")
.append(toIndentedString(globalConnectionBandwidthInfo))
.append("\n");
sb.append(" associateInstanceInfo: ").append(toIndentedString(associateInstanceInfo)).append("\n");
sb.append(" isPrePaid: ").append(toIndentedString(isPrePaid)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
sb.append(" sysTags: ").append(toIndentedString(sysTags)).append("\n");
sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).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 ");
}
}