Class HttpMonitor.Builder
- java.lang.Object
- 
- com.oracle.bmc.healthchecks.model.HttpMonitor.Builder
 
- 
- Enclosing class:
- HttpMonitor
 
 public static class HttpMonitor.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpMonitorbuild()HttpMonitor.BuildercompartmentId(String compartmentId)The OCID of the compartment.HttpMonitor.Buildercopy(HttpMonitor model)HttpMonitor.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.HttpMonitor.BuilderdisplayName(String displayName)A user-friendly and mutable name suitable for display in a user interface.HttpMonitor.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.HttpMonitor.Builderheaders(Map<String,String> headers)A dictionary of HTTP request headers.HttpMonitor.BuilderhomeRegion(String homeRegion)The region where updates must be made and where results must be fetched from.HttpMonitor.Builderid(String id)The OCID of the resource.HttpMonitor.BuilderintervalInSeconds(Integer intervalInSeconds)The monitor interval in seconds.HttpMonitor.BuilderisEnabled(Boolean isEnabled)Enables or disables the monitor.HttpMonitor.Buildermethod(HttpProbeMethod method)HttpMonitor.Builderpath(String path)The optional URL path to probe, including query parameters.HttpMonitor.Builderport(Integer port)The port on which to probe endpoints.HttpMonitor.Builderprotocol(HttpProbeProtocol protocol)HttpMonitor.BuilderresultsUrl(String resultsUrl)A URL for fetching the probe results.HttpMonitor.Buildertargets(List<String> targets)A list of targets (hostnames or IP addresses) of the probe.HttpMonitor.BuildertimeCreated(Date timeCreated)The RFC 3339-formatted creation date and time of the probe.HttpMonitor.BuildertimeoutInSeconds(Integer timeoutInSeconds)The probe timeout in seconds.HttpMonitor.BuildervantagePointNames(List<String> vantagePointNames)A list of names of vantage points from which to execute the probe.
 
- 
- 
- 
Method Detail- 
idpublic HttpMonitor.Builder id(String id) The OCID of the resource.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
resultsUrlpublic HttpMonitor.Builder resultsUrl(String resultsUrl) A URL for fetching the probe results.- Parameters:
- resultsUrl- the value to set
- Returns:
- this builder
 
 - 
homeRegionpublic HttpMonitor.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
 
 - 
timeCreatedpublic HttpMonitor.Builder timeCreated(Date timeCreated) The RFC 3339-formatted creation date and time of the probe.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic HttpMonitor.Builder compartmentId(String compartmentId) The OCID of the compartment.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
targetspublic HttpMonitor.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
 
 - 
vantagePointNamespublic HttpMonitor.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
 
 - 
portpublic HttpMonitor.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
 
 - 
timeoutInSecondspublic HttpMonitor.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
 
 - 
protocolpublic HttpMonitor.Builder protocol(HttpProbeProtocol protocol) 
 - 
methodpublic HttpMonitor.Builder method(HttpProbeMethod method) 
 - 
pathpublic HttpMonitor.Builder path(String path) The optional URL path to probe, including query parameters.- Parameters:
- path- the value to set
- Returns:
- this builder
 
 - 
headerspublic HttpMonitor.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
 
 - 
displayNamepublic HttpMonitor.Builder displayName(String displayName) A user-friendly and mutable name suitable for display in a user interface.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
intervalInSecondspublic HttpMonitor.Builder intervalInSeconds(Integer intervalInSeconds) The monitor interval in seconds.Valid values: 10, 30, and 60. - Parameters:
- intervalInSeconds- the value to set
- Returns:
- this builder
 
 - 
isEnabledpublic HttpMonitor.Builder isEnabled(Boolean isEnabled) Enables or disables the monitor.Set to ‘true’ to launch monitoring. - Parameters:
- isEnabled- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic HttpMonitor.Builder freeformTags(Map<String,String> freeformTags) Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic HttpMonitor.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic HttpMonitor build() 
 - 
copypublic HttpMonitor.Builder copy(HttpMonitor model) 
 
- 
 
-