Class BackendServiceOptions.Builder
- java.lang.Object
-
- org.jclouds.googlecomputeengine.options.BackendServiceOptions.Builder
-
- Enclosing class:
- BackendServiceOptions
public static class BackendServiceOptions.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackendServiceOptions.Builder
backends(List<BackendService.Backend> backends)
The list of backends that serve this BackendService.BackendServiceOptions
build()
BackendServiceOptions.Builder
description(String description)
An optional textual description of the BackendService.BackendServiceOptions.Builder
fingerprint(String fingerprint)
Fingerprint of this resource.BackendServiceOptions.Builder
healthChecks(List<URI> healthChecks)
HealthChecks - The list ofLinks
to the HttpHealthCheck resource for health checking this BackendService.BackendServiceOptions.Builder
port(Integer port)
The TCP port to connect on the backend.BackendServiceOptions.Builder
portName(String portName)
BackendServiceOptions.Builder
protocol(String protocol)
The protocol for incoming requests.BackendServiceOptions.Builder
timeoutSec(Integer timeoutSec)
How many seconds to wait for the backend before considering it a failed request.
-
-
-
Constructor Detail
-
Builder
public Builder(String name, List<URI> healthChecks)
- Parameters:
name
- , provided by the client.healthChecks
- The list ofLinks
to the HttpHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
-
Builder
public Builder()
Empty builder for use when patching or updating and existing BackendService Otherwise use the otherbuilder
-
-
Method Detail
-
description
public BackendServiceOptions.Builder description(String description)
An optional textual description of the BackendService.
-
healthChecks
public BackendServiceOptions.Builder healthChecks(List<URI> healthChecks)
HealthChecks - The list ofLinks
to the HttpHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
-
backends
public BackendServiceOptions.Builder backends(List<BackendService.Backend> backends)
The list of backends that serve this BackendService.
-
timeoutSec
public BackendServiceOptions.Builder timeoutSec(Integer timeoutSec)
How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
-
port
public BackendServiceOptions.Builder port(Integer port)
The TCP port to connect on the backend. The default value is 80.
-
protocol
public BackendServiceOptions.Builder protocol(String protocol)
The protocol for incoming requests.
-
fingerprint
public BackendServiceOptions.Builder fingerprint(String fingerprint)
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
-
portName
public BackendServiceOptions.Builder portName(String portName)
-
build
public BackendServiceOptions build()
-
-