Class CreateOnDemandHttpProbeDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.healthchecks.model.CreateOnDemandHttpProbeDetails.Builder
-
- Enclosing class:
- CreateOnDemandHttpProbeDetails
public static class CreateOnDemandHttpProbeDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
compartmentId
public CreateOnDemandHttpProbeDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
targets
public CreateOnDemandHttpProbeDetails.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 CreateOnDemandHttpProbeDetails.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 CreateOnDemandHttpProbeDetails.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 CreateOnDemandHttpProbeDetails.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 CreateOnDemandHttpProbeDetails.Builder protocol(HttpProbeProtocol protocol)
-
method
public CreateOnDemandHttpProbeDetails.Builder method(HttpProbeMethod method)
-
path
public CreateOnDemandHttpProbeDetails.Builder path(String path)
The optional URL path to probe, including query parameters.- Parameters:
path
- the value to set- Returns:
- this builder
-
headers
public CreateOnDemandHttpProbeDetails.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 CreateOnDemandHttpProbeDetails build()
-
copy
public CreateOnDemandHttpProbeDetails.Builder copy(CreateOnDemandHttpProbeDetails model)
-
-