Class WebhookUpdateParameters

java.lang.Object
com.azure.resourcemanager.automation.models.WebhookUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<WebhookUpdateParameters>

public final class WebhookUpdateParameters extends Object implements com.azure.json.JsonSerializable<WebhookUpdateParameters>
The parameters supplied to the update webhook operation.
  • Constructor Details

    • WebhookUpdateParameters

      public WebhookUpdateParameters()
      Creates an instance of WebhookUpdateParameters class.
  • Method Details

    • name

      public String name()
      Get the name property: Gets or sets the name of the webhook.
      Returns:
      the name value.
    • withName

      public WebhookUpdateParameters withName(String name)
      Set the name property: Gets or sets the name of the webhook.
      Parameters:
      name - the name value to set.
      Returns:
      the WebhookUpdateParameters object itself.
    • isEnabled

      public Boolean isEnabled()
      Get the isEnabled property: Gets or sets the value of the enabled flag of webhook.
      Returns:
      the isEnabled value.
    • withIsEnabled

      public WebhookUpdateParameters withIsEnabled(Boolean isEnabled)
      Set the isEnabled property: Gets or sets the value of the enabled flag of webhook.
      Parameters:
      isEnabled - the isEnabled value to set.
      Returns:
      the WebhookUpdateParameters object itself.
    • runOn

      public String runOn()
      Get the runOn property: Gets or sets the name of the hybrid worker group the webhook job will run on.
      Returns:
      the runOn value.
    • withRunOn

      public WebhookUpdateParameters withRunOn(String runOn)
      Set the runOn property: Gets or sets the name of the hybrid worker group the webhook job will run on.
      Parameters:
      runOn - the runOn value to set.
      Returns:
      the WebhookUpdateParameters object itself.
    • parameters

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

      public WebhookUpdateParameters withParameters(Map<String,String> parameters)
      Set the parameters property: Gets or sets the parameters of the job.
      Parameters:
      parameters - the parameters value to set.
      Returns:
      the WebhookUpdateParameters object itself.
    • description

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

      public WebhookUpdateParameters withDescription(String description)
      Set the description property: Gets or sets the description of the webhook.
      Parameters:
      description - the description value to set.
      Returns:
      the WebhookUpdateParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WebhookUpdateParameters>
      Throws:
      IOException
    • fromJson

      public static WebhookUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WebhookUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WebhookUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the WebhookUpdateParameters.