com.aliyun.sdk.service.apig20240327.models.ListGatewaysResponseBody Maven / Gradle / Ivy
Show all versions of alibabacloud-apig20240327 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.apig20240327.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public class ListGatewaysResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("code")
private String code;
@com.aliyun.core.annotation.NameInMap("data")
private Data data;
@com.aliyun.core.annotation.NameInMap("message")
private String message;
@com.aliyun.core.annotation.NameInMap("requestId")
private String requestId;
private ListGatewaysResponseBody(Builder builder) {
this.code = builder.code;
this.data = builder.data;
this.message = builder.message;
this.requestId = builder.requestId;
}
public static Builder builder() {
return new Builder();
}
public static ListGatewaysResponseBody create() {
return builder().build();
}
/**
* @return code
*/
public String getCode() {
return this.code;
}
/**
* @return data
*/
public Data getData() {
return this.data;
}
/**
* @return message
*/
public String getMessage() {
return this.message;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
public static final class Builder {
private String code;
private Data data;
private String message;
private String requestId;
/**
* Response status code.
*
* example:
* Ok
*/
public Builder code(String code) {
this.code = code;
return this;
}
/**
* Result of the gateway list query.
*/
public Builder data(Data data) {
this.data = data;
return this;
}
/**
* Response message.
*
* example:
* success
*/
public Builder message(String message) {
this.message = message;
return this;
}
/**
* Request ID.
*
* example:
* 5B626361-070A-56A7-B127-ADAC8F3655DB
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
public ListGatewaysResponseBody build() {
return new ListGatewaysResponseBody(this);
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class Ports extends TeaModel {
@com.aliyun.core.annotation.NameInMap("port")
private Integer port;
@com.aliyun.core.annotation.NameInMap("protocol")
private String protocol;
private Ports(Builder builder) {
this.port = builder.port;
this.protocol = builder.protocol;
}
public static Builder builder() {
return new Builder();
}
public static Ports create() {
return builder().build();
}
/**
* @return port
*/
public Integer getPort() {
return this.port;
}
/**
* @return protocol
*/
public String getProtocol() {
return this.protocol;
}
public static final class Builder {
private Integer port;
private String protocol;
/**
* Port number.
*
* example:
* 443
*/
public Builder port(Integer port) {
this.port = port;
return this;
}
/**
* Protocol:
*
* - TCP
* - UDP
*
*
* example:
* TCP
*/
public Builder protocol(String protocol) {
this.protocol = protocol;
return this;
}
public Ports build() {
return new Ports(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class LoadBalancers extends TeaModel {
@com.aliyun.core.annotation.NameInMap("address")
private String address;
@com.aliyun.core.annotation.NameInMap("addressIpVersion")
private String addressIpVersion;
@com.aliyun.core.annotation.NameInMap("addressType")
private String addressType;
@com.aliyun.core.annotation.NameInMap("gatewayDefault")
private Boolean gatewayDefault;
@com.aliyun.core.annotation.NameInMap("loadBalancerId")
private String loadBalancerId;
@com.aliyun.core.annotation.NameInMap("mode")
private String mode;
@com.aliyun.core.annotation.NameInMap("ports")
private java.util.List < Ports> ports;
@com.aliyun.core.annotation.NameInMap("status")
private String status;
@com.aliyun.core.annotation.NameInMap("type")
private String type;
private LoadBalancers(Builder builder) {
this.address = builder.address;
this.addressIpVersion = builder.addressIpVersion;
this.addressType = builder.addressType;
this.gatewayDefault = builder.gatewayDefault;
this.loadBalancerId = builder.loadBalancerId;
this.mode = builder.mode;
this.ports = builder.ports;
this.status = builder.status;
this.type = builder.type;
}
public static Builder builder() {
return new Builder();
}
public static LoadBalancers create() {
return builder().build();
}
/**
* @return address
*/
public String getAddress() {
return this.address;
}
/**
* @return addressIpVersion
*/
public String getAddressIpVersion() {
return this.addressIpVersion;
}
/**
* @return addressType
*/
public String getAddressType() {
return this.addressType;
}
/**
* @return gatewayDefault
*/
public Boolean getGatewayDefault() {
return this.gatewayDefault;
}
/**
* @return loadBalancerId
*/
public String getLoadBalancerId() {
return this.loadBalancerId;
}
/**
* @return mode
*/
public String getMode() {
return this.mode;
}
/**
* @return ports
*/
public java.util.List < Ports> getPorts() {
return this.ports;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return type
*/
public String getType() {
return this.type;
}
public static final class Builder {
private String address;
private String addressIpVersion;
private String addressType;
private Boolean gatewayDefault;
private String loadBalancerId;
private String mode;
private java.util.List < Ports> ports;
private String status;
private String type;
/**
* Load balancer address.
*
* example:
* nlb-xoh3pghr***.cn-hangzhou.nlb.aliyuncs.com
*/
public Builder address(String address) {
this.address = address;
return this;
}
/**
* IP version:
*
* - ipv4: IPv4.
* - ipv6: IPv6.
*
*
* example:
* ipv4
*/
public Builder addressIpVersion(String addressIpVersion) {
this.addressIpVersion = addressIpVersion;
return this;
}
/**
* Load balancer address type:
*
* - Internet: Public network.
* - Intranet: Private network.
*
*
* example:
* Internet
*/
public Builder addressType(String addressType) {
this.addressType = addressType;
return this;
}
/**
* Indicates whether this is the default entry address for the gateway.
*
* example:
* true
*/
public Builder gatewayDefault(Boolean gatewayDefault) {
this.gatewayDefault = gatewayDefault;
return this;
}
/**
* Load balancer ID.
*
* example:
* nlb-xqwioje1c91r***
*/
public Builder loadBalancerId(String loadBalancerId) {
this.loadBalancerId = loadBalancerId;
return this;
}
/**
* Mode of load balancer provision for the gateway:
*
* - Managed: Managed by the Cloud Native API Gateway.
*
*
* example:
* Managed
*/
public Builder mode(String mode) {
this.mode = mode;
return this;
}
/**
* List of listening ports.
*/
public Builder ports(java.util.List < Ports> ports) {
this.ports = ports;
return this;
}
/**
* Status of the load balancer:
*
* - Ready: Available.
* - NotCreate: No associated instance.
*
*
* example:
* Ready
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* Type of load balancer for the gateway:
*
* - NLB: Network Load Balancer.
* - CLB: Classic Load Balancer.
*
*
* example:
* NLB
*/
public Builder type(String type) {
this.type = type;
return this;
}
public LoadBalancers build() {
return new LoadBalancers(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class SecurityGroup extends TeaModel {
@com.aliyun.core.annotation.NameInMap("securityGroupId")
private String securityGroupId;
private SecurityGroup(Builder builder) {
this.securityGroupId = builder.securityGroupId;
}
public static Builder builder() {
return new Builder();
}
public static SecurityGroup create() {
return builder().build();
}
/**
* @return securityGroupId
*/
public String getSecurityGroupId() {
return this.securityGroupId;
}
public static final class Builder {
private String securityGroupId;
/**
* The Security Group ID.
*/
public Builder securityGroupId(String securityGroupId) {
this.securityGroupId = securityGroupId;
return this;
}
public SecurityGroup build() {
return new SecurityGroup(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class Tags extends TeaModel {
@com.aliyun.core.annotation.NameInMap("tagKey")
private String tagKey;
@com.aliyun.core.annotation.NameInMap("tagValue")
private String tagValue;
private Tags(Builder builder) {
this.tagKey = builder.tagKey;
this.tagValue = builder.tagValue;
}
public static Builder builder() {
return new Builder();
}
public static Tags create() {
return builder().build();
}
/**
* @return tagKey
*/
public String getTagKey() {
return this.tagKey;
}
/**
* @return tagValue
*/
public String getTagValue() {
return this.tagValue;
}
public static final class Builder {
private String tagKey;
private String tagValue;
/**
* tagKey.
*/
public Builder tagKey(String tagKey) {
this.tagKey = tagKey;
return this;
}
/**
* tagValue.
*/
public Builder tagValue(String tagValue) {
this.tagValue = tagValue;
return this;
}
public Tags build() {
return new Tags(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class VSwitch extends TeaModel {
@com.aliyun.core.annotation.NameInMap("vSwitchId")
private String vSwitchId;
private VSwitch(Builder builder) {
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static VSwitch create() {
return builder().build();
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder {
private String vSwitchId;
/**
* The vSwitch ID.
*
* example:
* vsw-xxxxx
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public VSwitch build() {
return new VSwitch(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class Vpc extends TeaModel {
@com.aliyun.core.annotation.NameInMap("vpcId")
private String vpcId;
private Vpc(Builder builder) {
this.vpcId = builder.vpcId;
}
public static Builder builder() {
return new Builder();
}
public static Vpc create() {
return builder().build();
}
/**
* @return vpcId
*/
public String getVpcId() {
return this.vpcId;
}
public static final class Builder {
private String vpcId;
/**
* The VPC ID.
*
* example:
* vpc-xxxxx
*/
public Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
public Vpc build() {
return new Vpc(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class ZonesVSwitch extends TeaModel {
@com.aliyun.core.annotation.NameInMap("vSwitchId")
private String vSwitchId;
private ZonesVSwitch(Builder builder) {
this.vSwitchId = builder.vSwitchId;
}
public static Builder builder() {
return new Builder();
}
public static ZonesVSwitch create() {
return builder().build();
}
/**
* @return vSwitchId
*/
public String getVSwitchId() {
return this.vSwitchId;
}
public static final class Builder {
private String vSwitchId;
/**
* The vSwitch ID.
*
* example:
* vsw-xxxxx
*/
public Builder vSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public ZonesVSwitch build() {
return new ZonesVSwitch(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class Zones extends TeaModel {
@com.aliyun.core.annotation.NameInMap("vSwitch")
private ZonesVSwitch vSwitch;
@com.aliyun.core.annotation.NameInMap("zoneId")
private String zoneId;
private Zones(Builder builder) {
this.vSwitch = builder.vSwitch;
this.zoneId = builder.zoneId;
}
public static Builder builder() {
return new Builder();
}
public static Zones create() {
return builder().build();
}
/**
* @return vSwitch
*/
public ZonesVSwitch getVSwitch() {
return this.vSwitch;
}
/**
* @return zoneId
*/
public String getZoneId() {
return this.zoneId;
}
public static final class Builder {
private ZonesVSwitch vSwitch;
private String zoneId;
/**
* The vSwitch.
*/
public Builder vSwitch(ZonesVSwitch vSwitch) {
this.vSwitch = vSwitch;
return this;
}
/**
* The ID of the current zone.
*
* example:
* cn-hangzhou
*/
public Builder zoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public Zones build() {
return new Zones(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class Items extends TeaModel {
@com.aliyun.core.annotation.NameInMap("chargeType")
private String chargeType;
@com.aliyun.core.annotation.NameInMap("createFrom")
private String createFrom;
@com.aliyun.core.annotation.NameInMap("createTimestamp")
private Long createTimestamp;
@com.aliyun.core.annotation.NameInMap("expireTimestamp")
private Long expireTimestamp;
@com.aliyun.core.annotation.NameInMap("gatewayId")
private String gatewayId;
@com.aliyun.core.annotation.NameInMap("loadBalancers")
private java.util.List < LoadBalancers> loadBalancers;
@com.aliyun.core.annotation.NameInMap("name")
private String name;
@com.aliyun.core.annotation.NameInMap("replicas")
private String replicas;
@com.aliyun.core.annotation.NameInMap("resourceGroupId")
private String resourceGroupId;
@com.aliyun.core.annotation.NameInMap("securityGroup")
private SecurityGroup securityGroup;
@com.aliyun.core.annotation.NameInMap("spec")
private String spec;
@com.aliyun.core.annotation.NameInMap("status")
private String status;
@com.aliyun.core.annotation.NameInMap("tags")
private java.util.List < Tags> tags;
@com.aliyun.core.annotation.NameInMap("targetVersion")
private String targetVersion;
@com.aliyun.core.annotation.NameInMap("updateTimestamp")
private Long updateTimestamp;
@com.aliyun.core.annotation.NameInMap("vSwitch")
private VSwitch vSwitch;
@com.aliyun.core.annotation.NameInMap("version")
private String version;
@com.aliyun.core.annotation.NameInMap("vpc")
private Vpc vpc;
@com.aliyun.core.annotation.NameInMap("zones")
private java.util.List < Zones> zones;
private Items(Builder builder) {
this.chargeType = builder.chargeType;
this.createFrom = builder.createFrom;
this.createTimestamp = builder.createTimestamp;
this.expireTimestamp = builder.expireTimestamp;
this.gatewayId = builder.gatewayId;
this.loadBalancers = builder.loadBalancers;
this.name = builder.name;
this.replicas = builder.replicas;
this.resourceGroupId = builder.resourceGroupId;
this.securityGroup = builder.securityGroup;
this.spec = builder.spec;
this.status = builder.status;
this.tags = builder.tags;
this.targetVersion = builder.targetVersion;
this.updateTimestamp = builder.updateTimestamp;
this.vSwitch = builder.vSwitch;
this.version = builder.version;
this.vpc = builder.vpc;
this.zones = builder.zones;
}
public static Builder builder() {
return new Builder();
}
public static Items create() {
return builder().build();
}
/**
* @return chargeType
*/
public String getChargeType() {
return this.chargeType;
}
/**
* @return createFrom
*/
public String getCreateFrom() {
return this.createFrom;
}
/**
* @return createTimestamp
*/
public Long getCreateTimestamp() {
return this.createTimestamp;
}
/**
* @return expireTimestamp
*/
public Long getExpireTimestamp() {
return this.expireTimestamp;
}
/**
* @return gatewayId
*/
public String getGatewayId() {
return this.gatewayId;
}
/**
* @return loadBalancers
*/
public java.util.List < LoadBalancers> getLoadBalancers() {
return this.loadBalancers;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return replicas
*/
public String getReplicas() {
return this.replicas;
}
/**
* @return resourceGroupId
*/
public String getResourceGroupId() {
return this.resourceGroupId;
}
/**
* @return securityGroup
*/
public SecurityGroup getSecurityGroup() {
return this.securityGroup;
}
/**
* @return spec
*/
public String getSpec() {
return this.spec;
}
/**
* @return status
*/
public String getStatus() {
return this.status;
}
/**
* @return tags
*/
public java.util.List < Tags> getTags() {
return this.tags;
}
/**
* @return targetVersion
*/
public String getTargetVersion() {
return this.targetVersion;
}
/**
* @return updateTimestamp
*/
public Long getUpdateTimestamp() {
return this.updateTimestamp;
}
/**
* @return vSwitch
*/
public VSwitch getVSwitch() {
return this.vSwitch;
}
/**
* @return version
*/
public String getVersion() {
return this.version;
}
/**
* @return vpc
*/
public Vpc getVpc() {
return this.vpc;
}
/**
* @return zones
*/
public java.util.List < Zones> getZones() {
return this.zones;
}
public static final class Builder {
private String chargeType;
private String createFrom;
private Long createTimestamp;
private Long expireTimestamp;
private String gatewayId;
private java.util.List < LoadBalancers> loadBalancers;
private String name;
private String replicas;
private String resourceGroupId;
private SecurityGroup securityGroup;
private String spec;
private String status;
private java.util.List < Tags> tags;
private String targetVersion;
private Long updateTimestamp;
private VSwitch vSwitch;
private String version;
private Vpc vpc;
private java.util.List < Zones> zones;
/**
* Charge type
*
* - POSTPAY: Postpaid (pay-as-you-go)
* - PREPAY: Prepaid (subscription)
*
*
* example:
* POSTPAY
*/
public Builder chargeType(String chargeType) {
this.chargeType = chargeType;
return this;
}
/**
* Source of gateway creation:
*
* - Console: Console.
*
*
* example:
* Console
*/
public Builder createFrom(String createFrom) {
this.createFrom = createFrom;
return this;
}
/**
* Creation timestamp, in milliseconds.
*
* example:
* 1719386834548
*/
public Builder createTimestamp(Long createTimestamp) {
this.createTimestamp = createTimestamp;
return this;
}
/**
* Expiration timestamp for the prepaid (annual or monthly) plan. Unit: milliseconds.
*
* example:
* 172086834548
*/
public Builder expireTimestamp(Long expireTimestamp) {
this.expireTimestamp = expireTimestamp;
return this;
}
/**
* Gateway ID.
*
* example:
* gw-cpv54p5***
*/
public Builder gatewayId(String gatewayId) {
this.gatewayId = gatewayId;
return this;
}
/**
* List of gateway entry addresses.
*/
public Builder loadBalancers(java.util.List < LoadBalancers> loadBalancers) {
this.loadBalancers = loadBalancers;
return this;
}
/**
* Gateway name.
*
* example:
* itemcenter-gateway
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* Number of gateway instance nodes.
*
* example:
* 2
*/
public Builder replicas(String replicas) {
this.replicas = replicas;
return this;
}
/**
* resourceGroupId.
*/
public Builder resourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
/**
* The Security Group.
*/
public Builder securityGroup(SecurityGroup securityGroup) {
this.securityGroup = securityGroup;
return this;
}
/**
* Gateway specification:
*
* - apigw.small.x1: Small specification.
*
*
* example:
* apigw.small.x1
*/
public Builder spec(String spec) {
this.spec = spec;
return this;
}
/**
* Gateway status:
*
* - Running: Running.
* - Creating: Creating.
* - CreateFailed: Creation failed.
* - Upgrading: Upgrading.
* - UpgradeFailed: Upgrade failed.
* - Restarting: Restarting.
* - RestartFailed: Restart failed.
* - Deleting: Deleting.
* - DeleteFailed: Deletion failed.
*
*
* example:
* Running
*/
public Builder status(String status) {
this.status = status;
return this;
}
/**
* tags.
*/
public Builder tags(java.util.List < Tags> tags) {
this.tags = tags;
return this;
}
/**
* Target version of the gateway. When it is inconsistent with version
, a version upgrade can be performed.
*
* example:
* 2.0.2
*/
public Builder targetVersion(String targetVersion) {
this.targetVersion = targetVersion;
return this;
}
/**
* Update timestamp. Unit: milliseconds.
*
* example:
* 1719386834548
*/
public Builder updateTimestamp(Long updateTimestamp) {
this.updateTimestamp = updateTimestamp;
return this;
}
/**
* The vSwitch.
*/
public Builder vSwitch(VSwitch vSwitch) {
this.vSwitch = vSwitch;
return this;
}
/**
* Gateway version.
*
* example:
* 2.0.2
*/
public Builder version(String version) {
this.version = version;
return this;
}
/**
* vpc.
*/
public Builder vpc(Vpc vpc) {
this.vpc = vpc;
return this;
}
/**
* zones.
*/
public Builder zones(java.util.List < Zones> zones) {
this.zones = zones;
return this;
}
public Items build() {
return new Items(this);
}
}
}
/**
*
* {@link ListGatewaysResponseBody} extends {@link TeaModel}
*
* ListGatewaysResponseBody
*/
public static class Data extends TeaModel {
@com.aliyun.core.annotation.NameInMap("items")
private java.util.List < Items> items;
@com.aliyun.core.annotation.NameInMap("pageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("pageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("totalSize")
private Long totalSize;
private Data(Builder builder) {
this.items = builder.items;
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.totalSize = builder.totalSize;
}
public static Builder builder() {
return new Builder();
}
public static Data create() {
return builder().build();
}
/**
* @return items
*/
public java.util.List < Items> getItems() {
return this.items;
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return totalSize
*/
public Long getTotalSize() {
return this.totalSize;
}
public static final class Builder {
private java.util.List < Items> items;
private Integer pageNumber;
private Integer pageSize;
private Long totalSize;
/**
* Gateway list
*/
public Builder items(java.util.List < Items> items) {
this.items = items;
return this;
}
/**
* Page number.
*
* example:
* 1
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* Page size.
*
* example:
* 10
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* Total count.
*
* example:
* 6
*/
public Builder totalSize(Long totalSize) {
this.totalSize = totalSize;
return this;
}
public Data build() {
return new Data(this);
}
}
}
}