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.CountGlobalEipsRequest 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 CountGlobalEipsRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "id")
private List id = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "internet_bandwidth_id")
private List internetBandwidthId = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name")
private List name = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "name_like")
private String nameLike;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "access_site")
private List accessSite = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "geip_pool_name")
private List geipPoolName = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "isp")
private List isp = null;
/**
* Gets or Sets ipVersion
*/
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 List ipVersion = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ip_address")
private List ipAddress = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "ipv6_address")
private List ipv6Address = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "freezen")
private List freezen = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "polluted")
private List polluted = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "internet_bandwidth_is_null")
private List internetBandwidthIsNull = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "gcb_bandwidth_is_null")
private List gcbBandwidthIsNull = null;
/**
* Gets or Sets status
*/
public static final class StatusEnum {
/**
* 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_CREATE for value: "pending_create"
*/
public static final StatusEnum PENDING_CREATE = new StatusEnum("pending_create");
/**
* 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("idle", IDLE);
map.put("inuse", INUSE);
map.put("pending_create", PENDING_CREATE);
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 List status = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "associate_instance_info.region")
private List associateInstanceInfoRegion = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "associate_instance_info.public_border_group")
private List associateInstanceInfoPublicBorderGroup = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "associate_instance_info.instance_site")
private List associateInstanceInfoInstanceSite = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "associate_instance_info.instance_type")
private List associateInstanceInfoInstanceType = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "associate_instance_info.instance_id")
private List associateInstanceInfoInstanceId = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "associate_instance_info.project_id")
private List associateInstanceInfoProjectId = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "enterprise_project_id")
private List enterpriseProjectId = null;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "tags")
private List tags = null;
public CountGlobalEipsRequest withId(List id) {
this.id = id;
return this;
}
public CountGlobalEipsRequest addIdItem(String idItem) {
if (this.id == null) {
this.id = new ArrayList<>();
}
this.id.add(idItem);
return this;
}
public CountGlobalEipsRequest 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 CountGlobalEipsRequest withInternetBandwidthId(List internetBandwidthId) {
this.internetBandwidthId = internetBandwidthId;
return this;
}
public CountGlobalEipsRequest addInternetBandwidthIdItem(String internetBandwidthIdItem) {
if (this.internetBandwidthId == null) {
this.internetBandwidthId = new ArrayList<>();
}
this.internetBandwidthId.add(internetBandwidthIdItem);
return this;
}
public CountGlobalEipsRequest withInternetBandwidthId(Consumer> internetBandwidthIdSetter) {
if (this.internetBandwidthId == null) {
this.internetBandwidthId = new ArrayList<>();
}
internetBandwidthIdSetter.accept(this.internetBandwidthId);
return this;
}
/**
* Get internetBandwidthId
* @return internetBandwidthId
*/
public List getInternetBandwidthId() {
return internetBandwidthId;
}
public void setInternetBandwidthId(List internetBandwidthId) {
this.internetBandwidthId = internetBandwidthId;
}
public CountGlobalEipsRequest withName(List name) {
this.name = name;
return this;
}
public CountGlobalEipsRequest addNameItem(String nameItem) {
if (this.name == null) {
this.name = new ArrayList<>();
}
this.name.add(nameItem);
return this;
}
public CountGlobalEipsRequest withName(Consumer> nameSetter) {
if (this.name == null) {
this.name = new ArrayList<>();
}
nameSetter.accept(this.name);
return this;
}
/**
* Get name
* @return name
*/
public List getName() {
return name;
}
public void setName(List name) {
this.name = name;
}
public CountGlobalEipsRequest withNameLike(String nameLike) {
this.nameLike = nameLike;
return this;
}
/**
* Get nameLike
* @return nameLike
*/
public String getNameLike() {
return nameLike;
}
public void setNameLike(String nameLike) {
this.nameLike = nameLike;
}
public CountGlobalEipsRequest withAccessSite(List accessSite) {
this.accessSite = accessSite;
return this;
}
public CountGlobalEipsRequest addAccessSiteItem(String accessSiteItem) {
if (this.accessSite == null) {
this.accessSite = new ArrayList<>();
}
this.accessSite.add(accessSiteItem);
return this;
}
public CountGlobalEipsRequest 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 CountGlobalEipsRequest withGeipPoolName(List geipPoolName) {
this.geipPoolName = geipPoolName;
return this;
}
public CountGlobalEipsRequest addGeipPoolNameItem(String geipPoolNameItem) {
if (this.geipPoolName == null) {
this.geipPoolName = new ArrayList<>();
}
this.geipPoolName.add(geipPoolNameItem);
return this;
}
public CountGlobalEipsRequest withGeipPoolName(Consumer> geipPoolNameSetter) {
if (this.geipPoolName == null) {
this.geipPoolName = new ArrayList<>();
}
geipPoolNameSetter.accept(this.geipPoolName);
return this;
}
/**
* Get geipPoolName
* @return geipPoolName
*/
public List getGeipPoolName() {
return geipPoolName;
}
public void setGeipPoolName(List geipPoolName) {
this.geipPoolName = geipPoolName;
}
public CountGlobalEipsRequest withIsp(List isp) {
this.isp = isp;
return this;
}
public CountGlobalEipsRequest addIspItem(String ispItem) {
if (this.isp == null) {
this.isp = new ArrayList<>();
}
this.isp.add(ispItem);
return this;
}
public CountGlobalEipsRequest 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 CountGlobalEipsRequest withIpVersion(List ipVersion) {
this.ipVersion = ipVersion;
return this;
}
public CountGlobalEipsRequest addIpVersionItem(IpVersionEnum ipVersionItem) {
if (this.ipVersion == null) {
this.ipVersion = new ArrayList<>();
}
this.ipVersion.add(ipVersionItem);
return this;
}
public CountGlobalEipsRequest 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 CountGlobalEipsRequest withIpAddress(List ipAddress) {
this.ipAddress = ipAddress;
return this;
}
public CountGlobalEipsRequest addIpAddressItem(String ipAddressItem) {
if (this.ipAddress == null) {
this.ipAddress = new ArrayList<>();
}
this.ipAddress.add(ipAddressItem);
return this;
}
public CountGlobalEipsRequest withIpAddress(Consumer> ipAddressSetter) {
if (this.ipAddress == null) {
this.ipAddress = new ArrayList<>();
}
ipAddressSetter.accept(this.ipAddress);
return this;
}
/**
* Get ipAddress
* @return ipAddress
*/
public List getIpAddress() {
return ipAddress;
}
public void setIpAddress(List ipAddress) {
this.ipAddress = ipAddress;
}
public CountGlobalEipsRequest withIpv6Address(List ipv6Address) {
this.ipv6Address = ipv6Address;
return this;
}
public CountGlobalEipsRequest addIpv6AddressItem(String ipv6AddressItem) {
if (this.ipv6Address == null) {
this.ipv6Address = new ArrayList<>();
}
this.ipv6Address.add(ipv6AddressItem);
return this;
}
public CountGlobalEipsRequest withIpv6Address(Consumer> ipv6AddressSetter) {
if (this.ipv6Address == null) {
this.ipv6Address = new ArrayList<>();
}
ipv6AddressSetter.accept(this.ipv6Address);
return this;
}
/**
* Get ipv6Address
* @return ipv6Address
*/
public List getIpv6Address() {
return ipv6Address;
}
public void setIpv6Address(List ipv6Address) {
this.ipv6Address = ipv6Address;
}
public CountGlobalEipsRequest withFreezen(List freezen) {
this.freezen = freezen;
return this;
}
public CountGlobalEipsRequest addFreezenItem(Boolean freezenItem) {
if (this.freezen == null) {
this.freezen = new ArrayList<>();
}
this.freezen.add(freezenItem);
return this;
}
public CountGlobalEipsRequest withFreezen(Consumer> freezenSetter) {
if (this.freezen == null) {
this.freezen = new ArrayList<>();
}
freezenSetter.accept(this.freezen);
return this;
}
/**
* Get freezen
* @return freezen
*/
public List getFreezen() {
return freezen;
}
public void setFreezen(List freezen) {
this.freezen = freezen;
}
public CountGlobalEipsRequest withPolluted(List polluted) {
this.polluted = polluted;
return this;
}
public CountGlobalEipsRequest addPollutedItem(Boolean pollutedItem) {
if (this.polluted == null) {
this.polluted = new ArrayList<>();
}
this.polluted.add(pollutedItem);
return this;
}
public CountGlobalEipsRequest withPolluted(Consumer> pollutedSetter) {
if (this.polluted == null) {
this.polluted = new ArrayList<>();
}
pollutedSetter.accept(this.polluted);
return this;
}
/**
* Get polluted
* @return polluted
*/
public List getPolluted() {
return polluted;
}
public void setPolluted(List polluted) {
this.polluted = polluted;
}
public CountGlobalEipsRequest withInternetBandwidthIsNull(List internetBandwidthIsNull) {
this.internetBandwidthIsNull = internetBandwidthIsNull;
return this;
}
public CountGlobalEipsRequest addInternetBandwidthIsNullItem(Boolean internetBandwidthIsNullItem) {
if (this.internetBandwidthIsNull == null) {
this.internetBandwidthIsNull = new ArrayList<>();
}
this.internetBandwidthIsNull.add(internetBandwidthIsNullItem);
return this;
}
public CountGlobalEipsRequest withInternetBandwidthIsNull(Consumer> internetBandwidthIsNullSetter) {
if (this.internetBandwidthIsNull == null) {
this.internetBandwidthIsNull = new ArrayList<>();
}
internetBandwidthIsNullSetter.accept(this.internetBandwidthIsNull);
return this;
}
/**
* Get internetBandwidthIsNull
* @return internetBandwidthIsNull
*/
public List getInternetBandwidthIsNull() {
return internetBandwidthIsNull;
}
public void setInternetBandwidthIsNull(List internetBandwidthIsNull) {
this.internetBandwidthIsNull = internetBandwidthIsNull;
}
public CountGlobalEipsRequest withGcbBandwidthIsNull(List gcbBandwidthIsNull) {
this.gcbBandwidthIsNull = gcbBandwidthIsNull;
return this;
}
public CountGlobalEipsRequest addGcbBandwidthIsNullItem(Boolean gcbBandwidthIsNullItem) {
if (this.gcbBandwidthIsNull == null) {
this.gcbBandwidthIsNull = new ArrayList<>();
}
this.gcbBandwidthIsNull.add(gcbBandwidthIsNullItem);
return this;
}
public CountGlobalEipsRequest withGcbBandwidthIsNull(Consumer> gcbBandwidthIsNullSetter) {
if (this.gcbBandwidthIsNull == null) {
this.gcbBandwidthIsNull = new ArrayList<>();
}
gcbBandwidthIsNullSetter.accept(this.gcbBandwidthIsNull);
return this;
}
/**
* Get gcbBandwidthIsNull
* @return gcbBandwidthIsNull
*/
public List getGcbBandwidthIsNull() {
return gcbBandwidthIsNull;
}
public void setGcbBandwidthIsNull(List gcbBandwidthIsNull) {
this.gcbBandwidthIsNull = gcbBandwidthIsNull;
}
public CountGlobalEipsRequest withStatus(List status) {
this.status = status;
return this;
}
public CountGlobalEipsRequest addStatusItem(StatusEnum statusItem) {
if (this.status == null) {
this.status = new ArrayList<>();
}
this.status.add(statusItem);
return this;
}
public CountGlobalEipsRequest 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 CountGlobalEipsRequest withAssociateInstanceInfoRegion(List associateInstanceInfoRegion) {
this.associateInstanceInfoRegion = associateInstanceInfoRegion;
return this;
}
public CountGlobalEipsRequest addAssociateInstanceInfoRegionItem(String associateInstanceInfoRegionItem) {
if (this.associateInstanceInfoRegion == null) {
this.associateInstanceInfoRegion = new ArrayList<>();
}
this.associateInstanceInfoRegion.add(associateInstanceInfoRegionItem);
return this;
}
public CountGlobalEipsRequest withAssociateInstanceInfoRegion(
Consumer> associateInstanceInfoRegionSetter) {
if (this.associateInstanceInfoRegion == null) {
this.associateInstanceInfoRegion = new ArrayList<>();
}
associateInstanceInfoRegionSetter.accept(this.associateInstanceInfoRegion);
return this;
}
/**
* Get associateInstanceInfoRegion
* @return associateInstanceInfoRegion
*/
public List getAssociateInstanceInfoRegion() {
return associateInstanceInfoRegion;
}
public void setAssociateInstanceInfoRegion(List associateInstanceInfoRegion) {
this.associateInstanceInfoRegion = associateInstanceInfoRegion;
}
public CountGlobalEipsRequest withAssociateInstanceInfoPublicBorderGroup(
List associateInstanceInfoPublicBorderGroup) {
this.associateInstanceInfoPublicBorderGroup = associateInstanceInfoPublicBorderGroup;
return this;
}
public CountGlobalEipsRequest addAssociateInstanceInfoPublicBorderGroupItem(
String associateInstanceInfoPublicBorderGroupItem) {
if (this.associateInstanceInfoPublicBorderGroup == null) {
this.associateInstanceInfoPublicBorderGroup = new ArrayList<>();
}
this.associateInstanceInfoPublicBorderGroup.add(associateInstanceInfoPublicBorderGroupItem);
return this;
}
public CountGlobalEipsRequest withAssociateInstanceInfoPublicBorderGroup(
Consumer> associateInstanceInfoPublicBorderGroupSetter) {
if (this.associateInstanceInfoPublicBorderGroup == null) {
this.associateInstanceInfoPublicBorderGroup = new ArrayList<>();
}
associateInstanceInfoPublicBorderGroupSetter.accept(this.associateInstanceInfoPublicBorderGroup);
return this;
}
/**
* Get associateInstanceInfoPublicBorderGroup
* @return associateInstanceInfoPublicBorderGroup
*/
public List getAssociateInstanceInfoPublicBorderGroup() {
return associateInstanceInfoPublicBorderGroup;
}
public void setAssociateInstanceInfoPublicBorderGroup(List associateInstanceInfoPublicBorderGroup) {
this.associateInstanceInfoPublicBorderGroup = associateInstanceInfoPublicBorderGroup;
}
public CountGlobalEipsRequest withAssociateInstanceInfoInstanceSite(
List associateInstanceInfoInstanceSite) {
this.associateInstanceInfoInstanceSite = associateInstanceInfoInstanceSite;
return this;
}
public CountGlobalEipsRequest addAssociateInstanceInfoInstanceSiteItem(
String associateInstanceInfoInstanceSiteItem) {
if (this.associateInstanceInfoInstanceSite == null) {
this.associateInstanceInfoInstanceSite = new ArrayList<>();
}
this.associateInstanceInfoInstanceSite.add(associateInstanceInfoInstanceSiteItem);
return this;
}
public CountGlobalEipsRequest withAssociateInstanceInfoInstanceSite(
Consumer> associateInstanceInfoInstanceSiteSetter) {
if (this.associateInstanceInfoInstanceSite == null) {
this.associateInstanceInfoInstanceSite = new ArrayList<>();
}
associateInstanceInfoInstanceSiteSetter.accept(this.associateInstanceInfoInstanceSite);
return this;
}
/**
* Get associateInstanceInfoInstanceSite
* @return associateInstanceInfoInstanceSite
*/
public List getAssociateInstanceInfoInstanceSite() {
return associateInstanceInfoInstanceSite;
}
public void setAssociateInstanceInfoInstanceSite(List associateInstanceInfoInstanceSite) {
this.associateInstanceInfoInstanceSite = associateInstanceInfoInstanceSite;
}
public CountGlobalEipsRequest withAssociateInstanceInfoInstanceType(
List associateInstanceInfoInstanceType) {
this.associateInstanceInfoInstanceType = associateInstanceInfoInstanceType;
return this;
}
public CountGlobalEipsRequest addAssociateInstanceInfoInstanceTypeItem(
String associateInstanceInfoInstanceTypeItem) {
if (this.associateInstanceInfoInstanceType == null) {
this.associateInstanceInfoInstanceType = new ArrayList<>();
}
this.associateInstanceInfoInstanceType.add(associateInstanceInfoInstanceTypeItem);
return this;
}
public CountGlobalEipsRequest withAssociateInstanceInfoInstanceType(
Consumer> associateInstanceInfoInstanceTypeSetter) {
if (this.associateInstanceInfoInstanceType == null) {
this.associateInstanceInfoInstanceType = new ArrayList<>();
}
associateInstanceInfoInstanceTypeSetter.accept(this.associateInstanceInfoInstanceType);
return this;
}
/**
* Get associateInstanceInfoInstanceType
* @return associateInstanceInfoInstanceType
*/
public List getAssociateInstanceInfoInstanceType() {
return associateInstanceInfoInstanceType;
}
public void setAssociateInstanceInfoInstanceType(List associateInstanceInfoInstanceType) {
this.associateInstanceInfoInstanceType = associateInstanceInfoInstanceType;
}
public CountGlobalEipsRequest withAssociateInstanceInfoInstanceId(List associateInstanceInfoInstanceId) {
this.associateInstanceInfoInstanceId = associateInstanceInfoInstanceId;
return this;
}
public CountGlobalEipsRequest addAssociateInstanceInfoInstanceIdItem(String associateInstanceInfoInstanceIdItem) {
if (this.associateInstanceInfoInstanceId == null) {
this.associateInstanceInfoInstanceId = new ArrayList<>();
}
this.associateInstanceInfoInstanceId.add(associateInstanceInfoInstanceIdItem);
return this;
}
public CountGlobalEipsRequest withAssociateInstanceInfoInstanceId(
Consumer> associateInstanceInfoInstanceIdSetter) {
if (this.associateInstanceInfoInstanceId == null) {
this.associateInstanceInfoInstanceId = new ArrayList<>();
}
associateInstanceInfoInstanceIdSetter.accept(this.associateInstanceInfoInstanceId);
return this;
}
/**
* Get associateInstanceInfoInstanceId
* @return associateInstanceInfoInstanceId
*/
public List getAssociateInstanceInfoInstanceId() {
return associateInstanceInfoInstanceId;
}
public void setAssociateInstanceInfoInstanceId(List associateInstanceInfoInstanceId) {
this.associateInstanceInfoInstanceId = associateInstanceInfoInstanceId;
}
public CountGlobalEipsRequest withAssociateInstanceInfoProjectId(List associateInstanceInfoProjectId) {
this.associateInstanceInfoProjectId = associateInstanceInfoProjectId;
return this;
}
public CountGlobalEipsRequest addAssociateInstanceInfoProjectIdItem(String associateInstanceInfoProjectIdItem) {
if (this.associateInstanceInfoProjectId == null) {
this.associateInstanceInfoProjectId = new ArrayList<>();
}
this.associateInstanceInfoProjectId.add(associateInstanceInfoProjectIdItem);
return this;
}
public CountGlobalEipsRequest withAssociateInstanceInfoProjectId(
Consumer> associateInstanceInfoProjectIdSetter) {
if (this.associateInstanceInfoProjectId == null) {
this.associateInstanceInfoProjectId = new ArrayList<>();
}
associateInstanceInfoProjectIdSetter.accept(this.associateInstanceInfoProjectId);
return this;
}
/**
* Get associateInstanceInfoProjectId
* @return associateInstanceInfoProjectId
*/
public List getAssociateInstanceInfoProjectId() {
return associateInstanceInfoProjectId;
}
public void setAssociateInstanceInfoProjectId(List associateInstanceInfoProjectId) {
this.associateInstanceInfoProjectId = associateInstanceInfoProjectId;
}
public CountGlobalEipsRequest withEnterpriseProjectId(List enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
return this;
}
public CountGlobalEipsRequest addEnterpriseProjectIdItem(String enterpriseProjectIdItem) {
if (this.enterpriseProjectId == null) {
this.enterpriseProjectId = new ArrayList<>();
}
this.enterpriseProjectId.add(enterpriseProjectIdItem);
return this;
}
public CountGlobalEipsRequest withEnterpriseProjectId(Consumer> enterpriseProjectIdSetter) {
if (this.enterpriseProjectId == null) {
this.enterpriseProjectId = new ArrayList<>();
}
enterpriseProjectIdSetter.accept(this.enterpriseProjectId);
return this;
}
/**
* Get enterpriseProjectId
* @return enterpriseProjectId
*/
public List getEnterpriseProjectId() {
return enterpriseProjectId;
}
public void setEnterpriseProjectId(List enterpriseProjectId) {
this.enterpriseProjectId = enterpriseProjectId;
}
public CountGlobalEipsRequest withTags(List tags) {
this.tags = tags;
return this;
}
public CountGlobalEipsRequest addTagsItem(String tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
this.tags.add(tagsItem);
return this;
}
public CountGlobalEipsRequest withTags(Consumer> tagsSetter) {
if (this.tags == null) {
this.tags = new ArrayList<>();
}
tagsSetter.accept(this.tags);
return this;
}
/**
* Get tags
* @return tags
*/
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
@Override
public boolean equals(java.lang.Object obj) {
if (this == obj) {
return true;
}
if (obj == null || getClass() != obj.getClass()) {
return false;
}
CountGlobalEipsRequest that = (CountGlobalEipsRequest) obj;
return Objects.equals(this.id, that.id) && Objects.equals(this.internetBandwidthId, that.internetBandwidthId)
&& Objects.equals(this.name, that.name) && Objects.equals(this.nameLike, that.nameLike)
&& 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.polluted, that.polluted)
&& Objects.equals(this.internetBandwidthIsNull, that.internetBandwidthIsNull)
&& Objects.equals(this.gcbBandwidthIsNull, that.gcbBandwidthIsNull)
&& Objects.equals(this.status, that.status)
&& Objects.equals(this.associateInstanceInfoRegion, that.associateInstanceInfoRegion)
&& Objects.equals(this.associateInstanceInfoPublicBorderGroup, that.associateInstanceInfoPublicBorderGroup)
&& Objects.equals(this.associateInstanceInfoInstanceSite, that.associateInstanceInfoInstanceSite)
&& Objects.equals(this.associateInstanceInfoInstanceType, that.associateInstanceInfoInstanceType)
&& Objects.equals(this.associateInstanceInfoInstanceId, that.associateInstanceInfoInstanceId)
&& Objects.equals(this.associateInstanceInfoProjectId, that.associateInstanceInfoProjectId)
&& Objects.equals(this.enterpriseProjectId, that.enterpriseProjectId)
&& Objects.equals(this.tags, that.tags);
}
@Override
public int hashCode() {
return Objects.hash(id,
internetBandwidthId,
name,
nameLike,
accessSite,
geipPoolName,
isp,
ipVersion,
ipAddress,
ipv6Address,
freezen,
polluted,
internetBandwidthIsNull,
gcbBandwidthIsNull,
status,
associateInstanceInfoRegion,
associateInstanceInfoPublicBorderGroup,
associateInstanceInfoInstanceSite,
associateInstanceInfoInstanceType,
associateInstanceInfoInstanceId,
associateInstanceInfoProjectId,
enterpriseProjectId,
tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CountGlobalEipsRequest {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" internetBandwidthId: ").append(toIndentedString(internetBandwidthId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" nameLike: ").append(toIndentedString(nameLike)).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(" polluted: ").append(toIndentedString(polluted)).append("\n");
sb.append(" internetBandwidthIsNull: ").append(toIndentedString(internetBandwidthIsNull)).append("\n");
sb.append(" gcbBandwidthIsNull: ").append(toIndentedString(gcbBandwidthIsNull)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" associateInstanceInfoRegion: ")
.append(toIndentedString(associateInstanceInfoRegion))
.append("\n");
sb.append(" associateInstanceInfoPublicBorderGroup: ")
.append(toIndentedString(associateInstanceInfoPublicBorderGroup))
.append("\n");
sb.append(" associateInstanceInfoInstanceSite: ")
.append(toIndentedString(associateInstanceInfoInstanceSite))
.append("\n");
sb.append(" associateInstanceInfoInstanceType: ")
.append(toIndentedString(associateInstanceInfoInstanceType))
.append("\n");
sb.append(" associateInstanceInfoInstanceId: ")
.append(toIndentedString(associateInstanceInfoInstanceId))
.append("\n");
sb.append(" associateInstanceInfoProjectId: ")
.append(toIndentedString(associateInstanceInfoProjectId))
.append("\n");
sb.append(" enterpriseProjectId: ").append(toIndentedString(enterpriseProjectId)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).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 ");
}
}