Class HttpProbe.Builder
- java.lang.Object
-
- com.oracle.bmc.healthchecks.model.HttpProbe.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpProbe
build()
HttpProbe.Builder
compartmentId(String compartmentId)
The OCID of the compartment.HttpProbe.Builder
copy(HttpProbe model)
HttpProbe.Builder
headers(Map<String,String> headers)
A dictionary of HTTP request headers.HttpProbe.Builder
homeRegion(String homeRegion)
The region where updates must be made and where results must be fetched from.HttpProbe.Builder
id(String id)
The OCID of the resource.HttpProbe.Builder
method(HttpProbeMethod method)
HttpProbe.Builder
path(String path)
The optional URL path to probe, including query parameters.HttpProbe.Builder
port(Integer port)
The port on which to probe endpoints.HttpProbe.Builder
protocol(HttpProbeProtocol protocol)
HttpProbe.Builder
resultsUrl(String resultsUrl)
A URL for fetching the probe results.HttpProbe.Builder
targets(List<String> targets)
A list of targets (hostnames or IP addresses) of the probe.HttpProbe.Builder
timeCreated(Date timeCreated)
The RFC 3339-formatted creation date and time of the probe.HttpProbe.Builder
timeoutInSeconds(Integer timeoutInSeconds)
The probe timeout in seconds.HttpProbe.Builder
vantagePointNames(List<String> vantagePointNames)
A list of names of vantage points from which to execute the probe.
-
-
-
Method Detail
-
id
public HttpProbe.Builder id(String id)
The OCID of the resource.- Parameters:
id
- the value to set- Returns:
- this builder
-
resultsUrl
public HttpProbe.Builder resultsUrl(String resultsUrl)
A URL for fetching the probe results.- Parameters:
resultsUrl
- the value to set- Returns:
- this builder
-
homeRegion
public HttpProbe.Builder homeRegion(String homeRegion)
The region where updates must be made and where results must be fetched from.- Parameters:
homeRegion
- the value to set- Returns:
- this builder
-
timeCreated
public HttpProbe.Builder timeCreated(Date timeCreated)
The RFC 3339-formatted creation date and time of the probe.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
compartmentId
public HttpProbe.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
targets
public HttpProbe.Builder targets(List<String> targets)
A list of targets (hostnames or IP addresses) of the probe.- Parameters:
targets
- the value to set- Returns:
- this builder
-
vantagePointNames
public HttpProbe.Builder vantagePointNames(List<String> vantagePointNames)
A list of names of vantage points from which to execute the probe.- Parameters:
vantagePointNames
- the value to set- Returns:
- this builder
-
port
public HttpProbe.Builder port(Integer port)
The port on which to probe endpoints.If unspecified, probes will use the default port of their protocol.
- Parameters:
port
- the value to set- Returns:
- this builder
-
timeoutInSeconds
public HttpProbe.Builder timeoutInSeconds(Integer timeoutInSeconds)
The probe timeout in seconds.Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal to intervalInSeconds for monitors.
- Parameters:
timeoutInSeconds
- the value to set- Returns:
- this builder
-
protocol
public HttpProbe.Builder protocol(HttpProbeProtocol protocol)
-
method
public HttpProbe.Builder method(HttpProbeMethod method)
-
path
public HttpProbe.Builder path(String path)
The optional URL path to probe, including query parameters.- Parameters:
path
- the value to set- Returns:
- this builder
-
headers
public HttpProbe.Builder headers(Map<String,String> headers)
A dictionary of HTTP request headers.Note:* Monitors and probes do not support the use of the Authorization HTTP header.
- Parameters:
headers
- the value to set- Returns:
- this builder
-
build
public HttpProbe build()
-
copy
public HttpProbe.Builder copy(HttpProbe model)
-
-