public static final class LbVirtualServer.Builder
extends java.lang.Object
LbVirtualServer
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
LbVirtualServer . |
Modifier and Type | Method and Description |
---|---|
LbVirtualServer |
build() |
LbVirtualServer.Builder |
setAccessListControl(LbAccessListControl accessListControl) |
LbVirtualServer.Builder |
setAccessLogEnabled(java.lang.Boolean accessLogEnabled)
Whether access log is enabled
|
LbVirtualServer.Builder |
setApplicationProfileId(java.lang.String applicationProfileId)
The application profile defines the application protocol characteristics.
|
LbVirtualServer.Builder |
setClientSslProfileBinding(ClientSslProfileBinding clientSslProfileBinding) |
LbVirtualServer.Builder |
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
LbVirtualServer.Builder |
setCreateUser(java.lang.String createUser)
ID of the user who created this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
LbVirtualServer.Builder |
setDefaultPoolMemberPort(java.lang.String defaultPoolMemberPort)
This is a deprecated property, please use 'default_pool_member_ports' instead.
|
LbVirtualServer.Builder |
setDefaultPoolMemberPorts(java.util.List<java.lang.String> defaultPoolMemberPorts)
If default_pool_member_ports are configured, both default_pool_member_port and
default_pool_member_ports in the response payload would include port settings,
notice that the value of default_pool_member_port is the first element of
default_pool_member_ports.
|
LbVirtualServer.Builder |
setDescription(java.lang.String description)
Description of this resource
|
LbVirtualServer.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
LbVirtualServer.Builder |
setEnabled(java.lang.Boolean enabled)
whether the virtual server is enabled
|
LbVirtualServer.Builder |
setId(java.lang.String id)
Unique identifier of this resource
|
LbVirtualServer.Builder |
setIpAddress(java.lang.String ipAddress)
virtual server IP address format: ip
|
LbVirtualServer.Builder |
setIpProtocol(java.lang.String ipProtocol)
Possible values are:
LbVirtualServer.IP_PROTOCOL_TCP LbVirtualServer.IP_PROTOCOL_UDP Assigned
Internet Protocol in IP header, TCP, UDP are supported. |
LbVirtualServer.Builder |
setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
LbVirtualServer.Builder |
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
LbVirtualServer.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
LbVirtualServer.Builder |
setLogSignificantEventOnly(java.lang.Boolean logSignificantEventOnly)
The property log_significant_event_only can take effect only when
access_log_enabled is true.
|
LbVirtualServer.Builder |
setMaxConcurrentConnections(java.lang.Long maxConcurrentConnections)
To ensure one virtual server does not over consume resources, affecting other
applications hosted on the same LBS, connections to a virtual server can be
capped.
|
LbVirtualServer.Builder |
setMaxNewConnectionRate(java.lang.Long maxNewConnectionRate)
To ensure one virtual server does not over consume resources, connections to a
member can be rate limited.
|
LbVirtualServer.Builder |
setPersistenceProfileId(java.lang.String persistenceProfileId)
Persistence profile is used to allow related client connections to be sent to
the same backend server.
|
LbVirtualServer.Builder |
setPoolId(java.lang.String poolId)
The server pool(LbPool) contains backend servers.
|
LbVirtualServer.Builder |
setPort(java.lang.String port)
This is a deprecated property, please use 'ports' instead.
|
LbVirtualServer.Builder |
setPorts(java.util.List<java.lang.String> ports)
Port setting could be a single port for both L7 mode and L4 mode.
|
LbVirtualServer.Builder |
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
LbVirtualServer.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
LbVirtualServer.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
LbVirtualServer.Builder |
setRuleIds(java.util.List<java.lang.String> ruleIds)
Load balancer rules allow customization of load balancing behavior using
match/action rules.
|
LbVirtualServer.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
LbVirtualServer.Builder |
setSelf(SelfResourceLink self) |
LbVirtualServer.Builder |
setServerSslProfileBinding(ServerSslProfileBinding serverSslProfileBinding) |
LbVirtualServer.Builder |
setSorryPoolId(java.lang.String sorryPoolId)
When load balancer can not select a backend server to serve the request in
default pool or pool in rules, the request would be served by sorry server pool.
|
LbVirtualServer.Builder |
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
LbVirtualServer.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
public Builder()
LbVirtualServer
.public LbVirtualServer.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public LbVirtualServer.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public LbVirtualServer.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public LbVirtualServer.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public LbVirtualServer.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public LbVirtualServer.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public LbVirtualServer.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public LbVirtualServer.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public LbVirtualServer.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public LbVirtualServer.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public LbVirtualServer.Builder setDescription(java.lang.String description)
description
- New value for the property.public LbVirtualServer.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public LbVirtualServer.Builder setId(java.lang.String id)
id
- New value for the property.public LbVirtualServer.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public LbVirtualServer.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public LbVirtualServer.Builder setAccessListControl(LbAccessListControl accessListControl)
accessListControl
- New value for the property.public LbVirtualServer.Builder setAccessLogEnabled(java.lang.Boolean accessLogEnabled)
accessLogEnabled
- New value for the property.public LbVirtualServer.Builder setApplicationProfileId(java.lang.String applicationProfileId)
applicationProfileId
- New value for the property.public LbVirtualServer.Builder setClientSslProfileBinding(ClientSslProfileBinding clientSslProfileBinding)
clientSslProfileBinding
- New value for the property.public LbVirtualServer.Builder setDefaultPoolMemberPort(java.lang.String defaultPoolMemberPort)
defaultPoolMemberPort
- New value for the property.public LbVirtualServer.Builder setDefaultPoolMemberPorts(java.util.List<java.lang.String> defaultPoolMemberPorts)
defaultPoolMemberPorts
- New value for the property.public LbVirtualServer.Builder setEnabled(java.lang.Boolean enabled)
enabled
- New value for the property.public LbVirtualServer.Builder setIpAddress(java.lang.String ipAddress)
ipAddress
- New value for the property.public LbVirtualServer.Builder setIpProtocol(java.lang.String ipProtocol)
ipProtocol
- New value for the property.public LbVirtualServer.Builder setLogSignificantEventOnly(java.lang.Boolean logSignificantEventOnly)
logSignificantEventOnly
- New value for the property.public LbVirtualServer.Builder setMaxConcurrentConnections(java.lang.Long maxConcurrentConnections)
maxConcurrentConnections
- New value for the property.public LbVirtualServer.Builder setMaxNewConnectionRate(java.lang.Long maxNewConnectionRate)
maxNewConnectionRate
- New value for the property.public LbVirtualServer.Builder setPersistenceProfileId(java.lang.String persistenceProfileId)
persistenceProfileId
- New value for the property.public LbVirtualServer.Builder setPoolId(java.lang.String poolId)
poolId
- New value for the property.public LbVirtualServer.Builder setPort(java.lang.String port)
port
- New value for the property.public LbVirtualServer.Builder setPorts(java.util.List<java.lang.String> ports)
ports
- New value for the property.public LbVirtualServer.Builder setRuleIds(java.util.List<java.lang.String> ruleIds)
ruleIds
- New value for the property.public LbVirtualServer.Builder setServerSslProfileBinding(ServerSslProfileBinding serverSslProfileBinding)
serverSslProfileBinding
- New value for the property.public LbVirtualServer.Builder setSorryPoolId(java.lang.String sorryPoolId)
sorryPoolId
- New value for the property.public LbVirtualServer build()