Class PingProbe.Builder
- java.lang.Object
-
- com.oracle.bmc.healthchecks.model.PingProbe.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PingProbebuild()PingProbe.BuildercompartmentId(String compartmentId)The OCID of the compartment.PingProbe.Buildercopy(PingProbe model)PingProbe.BuilderhomeRegion(String homeRegion)The region where updates must be made and where results must be fetched from.PingProbe.Builderid(String id)The OCID of the resource.PingProbe.Builderport(Integer port)The port on which to probe endpoints.PingProbe.Builderprotocol(PingProbeProtocol protocol)PingProbe.BuilderresultsUrl(String resultsUrl)A URL for fetching the probe results.PingProbe.Buildertargets(List<String> targets)A list of targets (hostnames or IP addresses) of the probe.PingProbe.BuildertimeCreated(Date timeCreated)The RFC 3339-formatted creation date and time of the probe.PingProbe.BuildertimeoutInSeconds(Integer timeoutInSeconds)The probe timeout in seconds.PingProbe.BuildervantagePointNames(List<String> vantagePointNames)A list of names of vantage points from which to execute the probe.
-
-
-
Method Detail
-
id
public PingProbe.Builder id(String id)
The OCID of the resource.- Parameters:
id- the value to set- Returns:
- this builder
-
resultsUrl
public PingProbe.Builder resultsUrl(String resultsUrl)
A URL for fetching the probe results.- Parameters:
resultsUrl- the value to set- Returns:
- this builder
-
homeRegion
public PingProbe.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 PingProbe.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 PingProbe.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
targets
public PingProbe.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 PingProbe.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 PingProbe.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 PingProbe.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 PingProbe.Builder protocol(PingProbeProtocol protocol)
-
build
public PingProbe build()
-
copy
public PingProbe.Builder copy(PingProbe model)
-
-