Class WatcherInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.automation.fluent.models.WatcherInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class WatcherInner
extends com.azure.core.management.ProxyResource
Definition of the watcher type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Gets or sets the creation time.Get the description property: Gets or sets the description.etag()
Get the etag property: Gets or sets the etag of the resource.Get the executionFrequencyInSeconds property: Gets or sets the frequency at which the watcher is invoked.static WatcherInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WatcherInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.Get the lastModifiedBy property: Details of the user who last modified the watcher.Get the lastModifiedTime property: Gets or sets the last modified time.location()
Get the location property: The geo-location where the resource lives.name()
Get the name property: The name of the resource.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.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.tags()
Get the tags property: Resource tags.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.void
validate()
Validates the instance.withDescription
(String description) Set the description property: Gets or sets the description.Set the etag property: Gets or sets the etag of the resource.withExecutionFrequencyInSeconds
(Long executionFrequencyInSeconds) Set the executionFrequencyInSeconds property: Gets or sets the frequency at which the watcher is invoked.withLocation
(String location) Set the location property: The geo-location where the resource lives.withScriptName
(String scriptName) 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.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.Set the tags property: Resource tags.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WatcherInner
public WatcherInner()Creates an instance of WatcherInner class.
-
-
Method Details
-
etag
Get the etag property: Gets or sets the etag of the resource.- Returns:
- the etag value.
-
withEtag
Set the etag property: Gets or sets the etag of the resource.- Parameters:
etag
- the etag value to set.- Returns:
- the WatcherInner object itself.
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource tags.- Parameters:
tags
- the tags value to set.- Returns:
- the WatcherInner object itself.
-
location
Get the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
withLocation
Set the location property: The geo-location where the resource lives.- Parameters:
location
- the location value to set.- Returns:
- the WatcherInner object itself.
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
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 WatcherInner 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 WatcherInner 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 WatcherInner 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 WatcherInner 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 WatcherInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.ProxyResource
- Throws:
IOException
-
fromJson
Reads an instance of WatcherInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WatcherInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the WatcherInner.
-