Class WebhookCreateOrUpdateProperties

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

public final class WebhookCreateOrUpdateProperties extends Object implements com.azure.json.JsonSerializable<WebhookCreateOrUpdateProperties>
The properties of the create webhook operation.
  • Constructor Details

    • WebhookCreateOrUpdateProperties

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

    • 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 WebhookCreateOrUpdateProperties 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 WebhookCreateOrUpdateProperties object itself.
    • uri

      public String uri()
      Get the uri property: Gets or sets the uri.
      Returns:
      the uri value.
    • withUri

      Set the uri property: Gets or sets the uri.
      Parameters:
      uri - the uri value to set.
      Returns:
      the WebhookCreateOrUpdateProperties object itself.
    • expiryTime

      public OffsetDateTime expiryTime()
      Get the expiryTime property: Gets or sets the expiry time.
      Returns:
      the expiryTime value.
    • withExpiryTime

      public WebhookCreateOrUpdateProperties withExpiryTime(OffsetDateTime expiryTime)
      Set the expiryTime property: Gets or sets the expiry time.
      Parameters:
      expiryTime - the expiryTime value to set.
      Returns:
      the WebhookCreateOrUpdateProperties 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 WebhookCreateOrUpdateProperties 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 WebhookCreateOrUpdateProperties object itself.
    • runbook

      public RunbookAssociationProperty runbook()
      Get the runbook property: Gets or sets the runbook.
      Returns:
      the runbook value.
    • withRunbook

      Set the runbook property: Gets or sets the runbook.
      Parameters:
      runbook - the runbook value to set.
      Returns:
      the WebhookCreateOrUpdateProperties 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 WebhookCreateOrUpdateProperties 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 WebhookCreateOrUpdateProperties 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<WebhookCreateOrUpdateProperties>
      Throws:
      IOException
    • fromJson

      public static WebhookCreateOrUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of WebhookCreateOrUpdateProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of WebhookCreateOrUpdateProperties 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 WebhookCreateOrUpdateProperties.