java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.automation.fluent.models.WatcherInner

public final class WatcherInner extends com.azure.core.management.ProxyResource
Definition of the watcher type.
  • Constructor Details

    • WatcherInner

      public WatcherInner()
  • Method Details

    • etag

      public String etag()
      Get the etag property: Gets or sets the etag of the resource.
      Returns:
      the etag value.
    • withEtag

      public WatcherInner withEtag(String etag)
      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

      public Map<String,String> tags()
      Get the tags property: Resource tags.
      Returns:
      the tags value.
    • withTags

      public WatcherInner withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Parameters:
      tags - the tags value to set.
      Returns:
      the WatcherInner object itself.
    • location

      public String location()
      Get the location property: The geo-location where the resource lives.
      Returns:
      the location value.
    • withLocation

      public WatcherInner withLocation(String location)
      Set the location property: The geo-location where the resource lives.
      Parameters:
      location - the location value to set.
      Returns:
      the WatcherInner object itself.
    • executionFrequencyInSeconds

      public Long executionFrequencyInSeconds()
      Get the executionFrequencyInSeconds property: Gets or sets the frequency at which the watcher is invoked.
      Returns:
      the executionFrequencyInSeconds value.
    • withExecutionFrequencyInSeconds

      public WatcherInner withExecutionFrequencyInSeconds(Long executionFrequencyInSeconds)
      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

      public String 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

      public WatcherInner 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.
      Parameters:
      scriptName - the scriptName value to set.
      Returns:
      the WatcherInner object itself.
    • scriptParameters

      public Map<String,String> scriptParameters()
      Get the scriptParameters property: Gets or sets the parameters of the script.
      Returns:
      the scriptParameters value.
    • withScriptParameters

      public WatcherInner withScriptParameters(Map<String,String> scriptParameters)
      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

      public String 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

      public WatcherInner withScriptRunOn(String scriptRunOn)
      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

      public String status()
      Get the status property: Gets the current status of the watcher.
      Returns:
      the status value.
    • creationTime

      public OffsetDateTime creationTime()
      Get the creationTime property: Gets or sets the creation time.
      Returns:
      the creationTime value.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: Gets or sets the last modified time.
      Returns:
      the lastModifiedTime value.
    • lastModifiedBy

      public String lastModifiedBy()
      Get the lastModifiedBy property: Details of the user who last modified the watcher.
      Returns:
      the lastModifiedBy value.
    • description

      public String description()
      Get the description property: Gets or sets the description.
      Returns:
      the description value.
    • withDescription

      public WatcherInner withDescription(String description)
      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.