public class ServiceList extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceList.ServerTypeEnum
终端节点服务类型。 终端节点服务类型包括“网关(gataway) 型”和“接口(interface)型”: ● gataway:由运维人员配置。用户无需创 建,可直接使用。 ● interface:包括运维人员配置的云服务和用 户自己创建的私有服务。其中,运维人员配 置的云服务无需创建,用户可直接使用。 您可以通过创建终端节点创建访问Gateway和 Interface类型终端节点服务的终端节点。
|
static class |
ServiceList.StatusEnum
终端节点服务的状态。 ● creating:创建中 ● available:可连接 ● failed:失败 ● deleting:删除中
|
static class |
ServiceList.TcpProxyEnum
用于控制是否将客户端的源IP、源端口、 marker_id等信息携带到服务端。信息携带支 持两种方式: ● TCP TOA:表示将客户端信息插入到tcp option字段中携带至服务端。 说明 仅当后端资源为OBS时,支持TCP TOA类型信息 携带方式。 ● Proxy Protocol:表示将客户端相关信息插 入到tcp payload字段中携带至服务端。 仅当服务端支持解析上述字段时,该参数设置 才有效。 参数的取值包括: ● close:表示关闭代理协议。 ● toa_open:表示开启代理协议 “tcp_toa”。 ● proxy_open:表示开启代理协议 “proxy_protocol”。 ● open:表示同时开启代理协议“tcp_toa” 和“proxy_protocol”。 默认值为“close”。
|
| Constructor and Description |
|---|
ServiceList() |
| Modifier and Type | Method and Description |
|---|---|
ServiceList |
addErrorItem(Error errorItem) |
ServiceList |
addPortsItem(PortList portsItem) |
ServiceList |
addTagsItem(TagList tagsItem) |
boolean |
equals(Object o) |
Boolean |
getApprovalEnabled()
是否需要审批。 ● false:不需要审批,创建的终端节点连接直 接为accepted状态。 ● true:需要审批,创建的终端节点连接为 pendingAcceptance状态,需要终端节点服 务所属用户审核后方可使用。
|
Integer |
getConnectionCount()
终端节点服务下连接的状态为“创建中”或“已接受”的终端节点的个数。
|
String |
getCreatedAt()
终端节点服务的创建时间。 采用UTC时间格式,格式为:YYYY-MMDDTHH: MM:SSZ
|
String |
getDomainId()
Domain ID
|
List<Error> |
getError()
提交任务异常时返回的异常信息
|
String |
getId()
终端节点服务的ID,唯一标识。
|
String |
getPortId()
标识终端节点服务后端资源的ID,格式为通用 唯一识别码(Universally Unique Identifier, 下文简称UUID)。取值为: ● LB类型:增强型负载均衡器内网IP对应的端 口ID。 ● VM类型:弹性云服务器IP地址对应的网卡 ID。 ● VIP类型:虚拟资源所在物理服务器对应的 网卡ID。
|
List<PortList> |
getPorts()
服务开放的端口映射列表,详细内容请参见表 4-17 同一个终端节点服务下,不允许重复的端口映 射。若多个终端节点服务共用一个port_id,则 终端节点服务之间的所有端口映射的 server_port和protocol的组合不能重复。
|
String |
getProjectId()
项目ID,获取方法请参见获取项目ID。
|
ServiceList.ServerTypeEnum |
getServerType()
终端节点服务类型。 终端节点服务类型包括“网关(gataway) 型”和“接口(interface)型”: ● gataway:由运维人员配置。用户无需创 建,可直接使用。 ● interface:包括运维人员配置的云服务和用 户自己创建的私有服务。其中,运维人员配 置的云服务无需创建,用户可直接使用。 您可以通过创建终端节点创建访问Gateway和 Interface类型终端节点服务的终端节点。
|
String |
getServiceName()
终端节点服务的名称。
|
String |
getServiceType()
资源类型。 ● VM:云服务器。 ● VIP:虚拟IP。 ● LB:增强负载均衡型。
|
ServiceList.StatusEnum |
getStatus()
终端节点服务的状态。 ● creating:创建中 ● available:可连接 ● failed:失败 ● deleting:删除中
|
List<TagList> |
getTags()
资源标签列表
|
ServiceList.TcpProxyEnum |
getTcpProxy()
用于控制是否将客户端的源IP、源端口、 marker_id等信息携带到服务端。信息携带支 持两种方式: ● TCP TOA:表示将客户端信息插入到tcp option字段中携带至服务端。 说明 仅当后端资源为OBS时,支持TCP TOA类型信息 携带方式。 ● Proxy Protocol:表示将客户端相关信息插 入到tcp payload字段中携带至服务端。 仅当服务端支持解析上述字段时,该参数设置 才有效。 参数的取值包括: ● close:表示关闭代理协议。 ● toa_open:表示开启代理协议 “tcp_toa”。 ● proxy_open:表示开启代理协议 “proxy_protocol”。 ● open:表示同时开启代理协议“tcp_toa” 和“proxy_protocol”。 默认值为“close”。
|
String |
getUpdatedAt()
终端节点服务的更新时间。 采用UTC时间格式,格式为:YYYY-MMDDTHH: MM:SSZ
|
String |
getVipPortId()
虚拟IP的网卡ID。 仅当“port_id”为“VIP类型”时,返回该参 数。
|
String |
getVpcId()
终端节点服务对应后端资源所在的VPC的ID。
|
int |
hashCode() |
void |
setApprovalEnabled(Boolean approvalEnabled) |
void |
setConnectionCount(Integer connectionCount) |
void |
setCreatedAt(String createdAt) |
void |
setDomainId(String domainId) |
void |
setError(List<Error> error) |
void |
setId(String id) |
void |
setPortId(String portId) |
void |
setPorts(List<PortList> ports) |
void |
setProjectId(String projectId) |
void |
setServerType(ServiceList.ServerTypeEnum serverType) |
void |
setServiceName(String serviceName) |
void |
setServiceType(String serviceType) |
void |
setStatus(ServiceList.StatusEnum status) |
void |
setTags(List<TagList> tags) |
void |
setTcpProxy(ServiceList.TcpProxyEnum tcpProxy) |
void |
setUpdatedAt(String updatedAt) |
void |
setVipPortId(String vipPortId) |
void |
setVpcId(String vpcId) |
String |
toString() |
ServiceList |
withApprovalEnabled(Boolean approvalEnabled) |
ServiceList |
withConnectionCount(Integer connectionCount) |
ServiceList |
withCreatedAt(String createdAt) |
ServiceList |
withDomainId(String domainId) |
ServiceList |
withError(java.util.function.Consumer<List<Error>> errorSetter) |
ServiceList |
withError(List<Error> error) |
ServiceList |
withId(String id) |
ServiceList |
withPortId(String portId) |
ServiceList |
withPorts(java.util.function.Consumer<List<PortList>> portsSetter) |
ServiceList |
withPorts(List<PortList> ports) |
ServiceList |
withProjectId(String projectId) |
ServiceList |
withServerType(ServiceList.ServerTypeEnum serverType) |
ServiceList |
withServiceName(String serviceName) |
ServiceList |
withServiceType(String serviceType) |
ServiceList |
withStatus(ServiceList.StatusEnum status) |
ServiceList |
withTags(java.util.function.Consumer<List<TagList>> tagsSetter) |
ServiceList |
withTags(List<TagList> tags) |
ServiceList |
withTcpProxy(ServiceList.TcpProxyEnum tcpProxy) |
ServiceList |
withUpdatedAt(String updatedAt) |
ServiceList |
withVipPortId(String vipPortId) |
ServiceList |
withVpcId(String vpcId) |
public ServiceList withId(String id)
public String getId()
public void setId(String id)
public ServiceList withPortId(String portId)
public String getPortId()
public void setPortId(String portId)
public ServiceList withVipPortId(String vipPortId)
public String getVipPortId()
public void setVipPortId(String vipPortId)
public ServiceList withServiceName(String serviceName)
public String getServiceName()
public void setServiceName(String serviceName)
public ServiceList withServiceType(String serviceType)
public String getServiceType()
public void setServiceType(String serviceType)
public ServiceList withVpcId(String vpcId)
public String getVpcId()
public void setVpcId(String vpcId)
public ServiceList withApprovalEnabled(Boolean approvalEnabled)
public Boolean getApprovalEnabled()
public void setApprovalEnabled(Boolean approvalEnabled)
public ServiceList withStatus(ServiceList.StatusEnum status)
public ServiceList.StatusEnum getStatus()
public void setStatus(ServiceList.StatusEnum status)
public ServiceList withServerType(ServiceList.ServerTypeEnum serverType)
public ServiceList.ServerTypeEnum getServerType()
public void setServerType(ServiceList.ServerTypeEnum serverType)
public ServiceList withCreatedAt(String createdAt)
public String getCreatedAt()
public void setCreatedAt(String createdAt)
public ServiceList withUpdatedAt(String updatedAt)
public String getUpdatedAt()
public void setUpdatedAt(String updatedAt)
public ServiceList withProjectId(String projectId)
public String getProjectId()
public void setProjectId(String projectId)
public ServiceList withDomainId(String domainId)
public String getDomainId()
public void setDomainId(String domainId)
public ServiceList withPorts(List<PortList> ports)
public ServiceList addPortsItem(PortList portsItem)
public ServiceList withPorts(java.util.function.Consumer<List<PortList>> portsSetter)
public List<PortList> getPorts()
public ServiceList withTags(List<TagList> tags)
public ServiceList addTagsItem(TagList tagsItem)
public ServiceList withTags(java.util.function.Consumer<List<TagList>> tagsSetter)
public ServiceList withConnectionCount(Integer connectionCount)
public Integer getConnectionCount()
public void setConnectionCount(Integer connectionCount)
public ServiceList withTcpProxy(ServiceList.TcpProxyEnum tcpProxy)
public ServiceList.TcpProxyEnum getTcpProxy()
public void setTcpProxy(ServiceList.TcpProxyEnum tcpProxy)
public ServiceList withError(List<Error> error)
public ServiceList addErrorItem(Error errorItem)
public ServiceList withError(java.util.function.Consumer<List<Error>> errorSetter)
Copyright © 2022. All rights reserved.