Class WatcherProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.WatcherProperties
Definition of the watcher properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Gets or sets the creation time.Get the description property: Gets or sets the description.Get the executionFrequencyInSeconds property: Gets or sets the frequency at which the watcher is invoked.Get the lastModifiedBy property: Details of the user who last modified the watcher.Get the lastModifiedTime property: Gets or sets the last modified time.Get the scriptName property: Gets or sets the name of the script the watcher is attached to, i.e.Get the scriptParameters property: Gets or sets the parameters of the script.Get the scriptRunOn property: Gets or sets the name of the hybrid worker group the watcher will run on.status()
Get the status property: Gets the current status of the watcher.void
validate()
Validates the instance.withDescription
(String description) Set the description property: Gets or sets the description.withExecutionFrequencyInSeconds
(Long executionFrequencyInSeconds) Set the executionFrequencyInSeconds property: Gets or sets the frequency at which the watcher is invoked.withScriptName
(String scriptName) Set the scriptName property: Gets or sets the name of the script the watcher is attached to, i.e.withScriptParameters
(Map<String, String> scriptParameters) Set the scriptParameters property: Gets or sets the parameters of the script.withScriptRunOn
(String scriptRunOn) Set the scriptRunOn property: Gets or sets the name of the hybrid worker group the watcher will run on.
-
Constructor Details
-
WatcherProperties
public WatcherProperties()
-
-
Method Details
-
executionFrequencyInSeconds
Get the executionFrequencyInSeconds property: Gets or sets the frequency at which the watcher is invoked.- Returns:
- the executionFrequencyInSeconds value.
-
withExecutionFrequencyInSeconds
Set the executionFrequencyInSeconds property: Gets or sets the frequency at which the watcher is invoked.- Parameters:
executionFrequencyInSeconds
- the executionFrequencyInSeconds value to set.- Returns:
- the WatcherProperties object itself.
-
scriptName
Get the scriptName property: Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.- Returns:
- the scriptName value.
-
withScriptName
Set the scriptName property: Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.- Parameters:
scriptName
- the scriptName value to set.- Returns:
- the WatcherProperties object itself.
-
scriptParameters
Get the scriptParameters property: Gets or sets the parameters of the script.- Returns:
- the scriptParameters value.
-
withScriptParameters
Set the scriptParameters property: Gets or sets the parameters of the script.- Parameters:
scriptParameters
- the scriptParameters value to set.- Returns:
- the WatcherProperties object itself.
-
scriptRunOn
Get the scriptRunOn property: Gets or sets the name of the hybrid worker group the watcher will run on.- Returns:
- the scriptRunOn value.
-
withScriptRunOn
Set the scriptRunOn property: Gets or sets the name of the hybrid worker group the watcher will run on.- Parameters:
scriptRunOn
- the scriptRunOn value to set.- Returns:
- the WatcherProperties object itself.
-
status
Get the status property: Gets the current status of the watcher.- Returns:
- the status value.
-
creationTime
Get the creationTime property: Gets or sets the creation time.- Returns:
- the creationTime value.
-
lastModifiedTime
Get the lastModifiedTime property: Gets or sets the last modified time.- Returns:
- the lastModifiedTime value.
-
lastModifiedBy
Get the lastModifiedBy property: Details of the user who last modified the watcher.- Returns:
- the lastModifiedBy value.
-
description
Get the description property: Gets or sets the description.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description.- Parameters:
description
- the description value to set.- Returns:
- the WatcherProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-