public class CreateEndpointServiceRequestBody extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateEndpointServiceRequestBody.ServerTypeEnum
资源类型。 ● VM:云服务器,适用于作为服务器使用。 ● VIP:虚拟IP,适用于作为虚拟资源的物理服务器使用。 ● LB:增强型负载均衡,适用于高访问量业务和对可靠性和容灾性要求较高的业务。
|
static class |
CreateEndpointServiceRequestBody.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 |
|---|
CreateEndpointServiceRequestBody() |
| Modifier and Type | Method and Description |
|---|---|
CreateEndpointServiceRequestBody |
addPortsItem(PortList portsItem) |
CreateEndpointServiceRequestBody |
addTagsItem(TagList tagsItem) |
boolean |
equals(Object o) |
Boolean |
getApprovalEnabled()
是否需要审批。 ● false:不需要审批,创建的终端节点连接直接为accepted状态。 ● true:需要审批,创建的终端节点连接为pendingAcceptance状态,需要终端节点服务所属用户审核后方可使用。 默认为true,需要审批。
|
String |
getPortId()
标识终端节点服务后端资源的ID,格式为通用唯一识别码 (Universally Unique Identifier,下文简称UUID)。 取值为: ● LB类型:增强型负载均衡器内网IP对应的端口ID。详细内容请参考《弹性负载均衡API参考》中的“查询负载均 衡详情”,详见响应消息中的“vip_port_id”字段。 ● VM类型:弹性云服务器IP地址对应的网卡ID。详细内容请参考《弹性云服务器API参考》中的“查询云服务器网 卡信息”,详见响应消息中的“port_id”字段。 ● VIP类型:虚拟资源所在物理服务器对应的网卡ID。 说明 ● 创建终端节点服务时,VPC的子网网段不能与198.19.128.0/17重叠。 ● VPC路由表中自定义路由的目的地址不能与198.19.128.0/17重叠
|
List<PortList> |
getPorts()
服务开放的端口映射列表,详细内容请参见表4-10。 同一个终端节点服务下,不允许重复的端口映射。若多个终端节点服务共用一个port_id, 则终端节点服务之间的所有端口映射的server_port和protocol的组合不能重复,单次最多添加200个。
|
CreateEndpointServiceRequestBody.ServerTypeEnum |
getServerType()
资源类型。 ● VM:云服务器,适用于作为服务器使用。 ● VIP:虚拟IP,适用于作为虚拟资源的物理服务器使用。 ● LB:增强型负载均衡,适用于高访问量业务和对可靠性和容灾性要求较高的业务。
|
String |
getServiceName()
终端节点服务的名称,长度不大于16,允许传入大小写字母、数字、下划线、中划线。 ● 传入为空,存入值为regionName+.+serviceId ● 传入不为空并校验通过,存入值为regionName+.+serviceName+.+serviceId
|
String |
getServiceType()
终端节点服务类型。仅支持将用户私有服务创建为interface类型的终端节点服务。 终端节点服务类型包括“网关(gataway)型”和“接口(interface)型”: ● gataway:由运维人员配置。用户无需创建,可直接使用。 ● interface:包括运维人员配置的云服务和用户自己创建的私有服务。其中,运维人员配置的云服务无需创建, 用户可直接使用。 您可以通过查询公共终端节点服务列表查看由运维人员配置的所有用户可见且可连接的终端节点服务,并通过创建终 端节点创建访问Gateway和Interface类型终端节点服务的终端节点。
|
List<TagList> |
getTags()
资源标签列表。同一个终端节点服务最多可添加10个标签。
|
CreateEndpointServiceRequestBody.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 |
getVipPortId()
虚拟IP的网卡ID。
|
String |
getVpcId()
终端节点服务对应后端资源所在的VPC的ID。 详细内容请参考《虚拟私有云API参考》中的“查询VPC”,详见响应消息中的“id”字段。
|
int |
hashCode() |
void |
setApprovalEnabled(Boolean approvalEnabled) |
void |
setPortId(String portId) |
void |
setPorts(List<PortList> ports) |
void |
setServerType(CreateEndpointServiceRequestBody.ServerTypeEnum serverType) |
void |
setServiceName(String serviceName) |
void |
setServiceType(String serviceType) |
void |
setTags(List<TagList> tags) |
void |
setTcpProxy(CreateEndpointServiceRequestBody.TcpProxyEnum tcpProxy) |
void |
setVipPortId(String vipPortId) |
void |
setVpcId(String vpcId) |
String |
toString() |
CreateEndpointServiceRequestBody |
withApprovalEnabled(Boolean approvalEnabled) |
CreateEndpointServiceRequestBody |
withPortId(String portId) |
CreateEndpointServiceRequestBody |
withPorts(java.util.function.Consumer<List<PortList>> portsSetter) |
CreateEndpointServiceRequestBody |
withPorts(List<PortList> ports) |
CreateEndpointServiceRequestBody |
withServerType(CreateEndpointServiceRequestBody.ServerTypeEnum serverType) |
CreateEndpointServiceRequestBody |
withServiceName(String serviceName) |
CreateEndpointServiceRequestBody |
withServiceType(String serviceType) |
CreateEndpointServiceRequestBody |
withTags(java.util.function.Consumer<List<TagList>> tagsSetter) |
CreateEndpointServiceRequestBody |
withTags(List<TagList> tags) |
CreateEndpointServiceRequestBody |
withTcpProxy(CreateEndpointServiceRequestBody.TcpProxyEnum tcpProxy) |
CreateEndpointServiceRequestBody |
withVipPortId(String vipPortId) |
CreateEndpointServiceRequestBody |
withVpcId(String vpcId) |
public CreateEndpointServiceRequestBody withPortId(String portId)
public String getPortId()
public void setPortId(String portId)
public CreateEndpointServiceRequestBody withVipPortId(String vipPortId)
public String getVipPortId()
public void setVipPortId(String vipPortId)
public CreateEndpointServiceRequestBody withServiceName(String serviceName)
public String getServiceName()
public void setServiceName(String serviceName)
public CreateEndpointServiceRequestBody withVpcId(String vpcId)
public String getVpcId()
public void setVpcId(String vpcId)
public CreateEndpointServiceRequestBody withApprovalEnabled(Boolean approvalEnabled)
public Boolean getApprovalEnabled()
public void setApprovalEnabled(Boolean approvalEnabled)
public CreateEndpointServiceRequestBody withServiceType(String serviceType)
public String getServiceType()
public void setServiceType(String serviceType)
public CreateEndpointServiceRequestBody withServerType(CreateEndpointServiceRequestBody.ServerTypeEnum serverType)
public CreateEndpointServiceRequestBody.ServerTypeEnum getServerType()
public void setServerType(CreateEndpointServiceRequestBody.ServerTypeEnum serverType)
public CreateEndpointServiceRequestBody withPorts(List<PortList> ports)
public CreateEndpointServiceRequestBody addPortsItem(PortList portsItem)
public CreateEndpointServiceRequestBody withPorts(java.util.function.Consumer<List<PortList>> portsSetter)
public List<PortList> getPorts()
public CreateEndpointServiceRequestBody withTcpProxy(CreateEndpointServiceRequestBody.TcpProxyEnum tcpProxy)
public CreateEndpointServiceRequestBody.TcpProxyEnum getTcpProxy()
public void setTcpProxy(CreateEndpointServiceRequestBody.TcpProxyEnum tcpProxy)
public CreateEndpointServiceRequestBody withTags(List<TagList> tags)
public CreateEndpointServiceRequestBody addTagsItem(TagList tagsItem)
public CreateEndpointServiceRequestBody withTags(java.util.function.Consumer<List<TagList>> tagsSetter)
Copyright © 2022. All rights reserved.