Class UpdateMonitorDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.apmsynthetics.model.UpdateMonitorDetails.Builder
 
- 
- Enclosing class:
- UpdateMonitorDetails
 
 public static class UpdateMonitorDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateMonitorDetails.BuilderavailabilityConfiguration(AvailabilityConfiguration availabilityConfiguration)UpdateMonitorDetails.BuilderbatchIntervalInSeconds(Integer batchIntervalInSeconds)Time interval between two runs in round robin batch mode (SchedulingPolicy - BATCHED_ROUND_ROBIN).UpdateMonitorDetailsbuild()UpdateMonitorDetails.Builderconfiguration(MonitorConfiguration configuration)UpdateMonitorDetails.Buildercopy(UpdateMonitorDetails model)UpdateMonitorDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.UpdateMonitorDetails.BuilderdisplayName(String displayName)Unique name that can be edited.UpdateMonitorDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.UpdateMonitorDetails.BuilderisIPv6(Boolean isIPv6)If enabled, domain name will resolve to an IPv6 address.UpdateMonitorDetails.BuilderisRunNow(Boolean isRunNow)If isRunNow is enabled, then the monitor will run immediately.UpdateMonitorDetails.BuilderisRunOnce(Boolean isRunOnce)If runOnce is enabled, then the monitor will run once.UpdateMonitorDetails.BuildermaintenanceWindowSchedule(MaintenanceWindowSchedule maintenanceWindowSchedule)UpdateMonitorDetails.BuilderrepeatIntervalInSeconds(Integer repeatIntervalInSeconds)Interval in seconds after the start time when the job should be repeated.UpdateMonitorDetails.BuilderschedulingPolicy(SchedulingPolicy schedulingPolicy)Scheduling policy to decide the distribution of monitor executions on vantage points.UpdateMonitorDetails.BuilderscriptId(String scriptId)The OCID of the script.UpdateMonitorDetails.BuilderscriptParameters(List<MonitorScriptParameter> scriptParameters)List of script parameters in the monitor.UpdateMonitorDetails.Builderstatus(MonitorStatus status)Enables or disables the monitor.UpdateMonitorDetails.Buildertarget(String target)Specify the endpoint on which to run the monitor.UpdateMonitorDetails.BuildertimeoutInSeconds(Integer timeoutInSeconds)Timeout in seconds.UpdateMonitorDetails.BuildervantagePoints(List<String> vantagePoints)A list of public and dedicated vantage points from which to execute the monitor.
 
- 
- 
- 
Method Detail- 
displayNamepublic UpdateMonitorDetails.Builder displayName(String displayName) Unique name that can be edited.The name should not contain any confidential information. - Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
vantagePointspublic UpdateMonitorDetails.Builder vantagePoints(List<String> vantagePoints) A list of public and dedicated vantage points from which to execute the monitor.Use /publicVantagePoints to fetch public vantage points, and /dedicatedVantagePoints to fetch dedicated vantage points. - Parameters:
- vantagePoints- the value to set
- Returns:
- this builder
 
 - 
scriptIdpublic UpdateMonitorDetails.Builder scriptId(String scriptId) The OCID of the script.scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. - Parameters:
- scriptId- the value to set
- Returns:
- this builder
 
 - 
statuspublic UpdateMonitorDetails.Builder status(MonitorStatus status) Enables or disables the monitor.- Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
repeatIntervalInSecondspublic UpdateMonitorDetails.Builder repeatIntervalInSeconds(Integer repeatIntervalInSeconds) Interval in seconds after the start time when the job should be repeated.Minimum repeatIntervalInSeconds should be 300 seconds for Scripted REST, Scripted Browser and Browser monitors, and 60 seconds for REST monitor. - Parameters:
- repeatIntervalInSeconds- the value to set
- Returns:
- this builder
 
 - 
isRunOncepublic UpdateMonitorDetails.Builder isRunOnce(Boolean isRunOnce) If runOnce is enabled, then the monitor will run once.- Parameters:
- isRunOnce- the value to set
- Returns:
- this builder
 
 - 
timeoutInSecondspublic UpdateMonitorDetails.Builder timeoutInSeconds(Integer timeoutInSeconds) Timeout in seconds.If isFailureRetried is true, then timeout cannot be more than 30% of repeatIntervalInSeconds time for monitors. If isFailureRetried is false, then timeout cannot be more than 50% of repeatIntervalInSeconds time for monitors. Also, timeoutInSeconds should be a multiple of 60 for Scripted REST, Scripted Browser and Browser monitors. Monitor will be allowed to run only for timeoutInSeconds time. It would be terminated after that. - Parameters:
- timeoutInSeconds- the value to set
- Returns:
- this builder
 
 - 
targetpublic UpdateMonitorDetails.Builder target(String target) Specify the endpoint on which to run the monitor.For BROWSER, REST, NETWORK, DNS and FTP monitor types, target is mandatory. If target is specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script (specified by scriptId in monitor) against the specified target endpoint. If target is not specified in the SCRIPTED_BROWSER monitor type, then the monitor will run the selected script as it is. For NETWORK monitor with TCP protocol, a port needs to be provided along with target. Example: 192.168.0.1:80. - Parameters:
- target- the value to set
- Returns:
- this builder
 
 - 
scriptParameterspublic UpdateMonitorDetails.Builder scriptParameters(List<MonitorScriptParameter> scriptParameters) List of script parameters in the monitor.This is valid only for SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. Example: [{“paramName”: “userid”, “paramValue”:“testuser”}] - Parameters:
- scriptParameters- the value to set
- Returns:
- this builder
 
 - 
configurationpublic UpdateMonitorDetails.Builder configuration(MonitorConfiguration configuration) 
 - 
availabilityConfigurationpublic UpdateMonitorDetails.Builder availabilityConfiguration(AvailabilityConfiguration availabilityConfiguration) 
 - 
maintenanceWindowSchedulepublic UpdateMonitorDetails.Builder maintenanceWindowSchedule(MaintenanceWindowSchedule maintenanceWindowSchedule) 
 - 
freeformTagspublic UpdateMonitorDetails.Builder freeformTags(Map<String,String> freeformTags) Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic UpdateMonitorDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
isRunNowpublic UpdateMonitorDetails.Builder isRunNow(Boolean isRunNow) If isRunNow is enabled, then the monitor will run immediately.- Parameters:
- isRunNow- the value to set
- Returns:
- this builder
 
 - 
schedulingPolicypublic UpdateMonitorDetails.Builder schedulingPolicy(SchedulingPolicy schedulingPolicy) Scheduling policy to decide the distribution of monitor executions on vantage points.- Parameters:
- schedulingPolicy- the value to set
- Returns:
- this builder
 
 - 
batchIntervalInSecondspublic UpdateMonitorDetails.Builder batchIntervalInSeconds(Integer batchIntervalInSeconds) Time interval between two runs in round robin batch mode (SchedulingPolicy - BATCHED_ROUND_ROBIN).- Parameters:
- batchIntervalInSeconds- the value to set
- Returns:
- this builder
 
 - 
isIPv6public UpdateMonitorDetails.Builder isIPv6(Boolean isIPv6) If enabled, domain name will resolve to an IPv6 address.- Parameters:
- isIPv6- the value to set
- Returns:
- this builder
 
 - 
buildpublic UpdateMonitorDetails build() 
 - 
copypublic UpdateMonitorDetails.Builder copy(UpdateMonitorDetails model) 
 
- 
 
-