Class WebhookUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.WebhookUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WebhookUpdateProperties>
public final class WebhookUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<WebhookUpdateProperties>
The properties of the update webhook.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WebhookUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gets or sets the description of the webhook.static WebhookUpdateProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WebhookUpdateProperties from the JsonReader.Get the isEnabled property: Gets or sets the value of the enabled flag of webhook.Get the parameters property: Gets or sets the parameters of the job.runOn()
Get the runOn property: Gets or sets the name of the hybrid worker group the webhook job will run on.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDescription
(String description) Set the description property: Gets or sets the description of the webhook.withIsEnabled
(Boolean isEnabled) Set the isEnabled property: Gets or sets the value of the enabled flag of webhook.withParameters
(Map<String, String> parameters) Set the parameters property: Gets or sets the parameters of the job.Set the runOn property: Gets or sets the name of the hybrid worker group the webhook job will run on.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
-
WebhookUpdateProperties
public WebhookUpdateProperties()Creates an instance of WebhookUpdateProperties class.
-
-
Method Details
-
isEnabled
Get the isEnabled property: Gets or sets the value of the enabled flag of webhook.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Gets or sets the value of the enabled flag of webhook.- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the WebhookUpdateProperties object itself.
-
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
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 WebhookUpdateProperties object itself.
-
parameters
Get the parameters property: Gets or sets the parameters of the job.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Gets or sets the parameters of the job.- Parameters:
parameters
- the parameters value to set.- Returns:
- the WebhookUpdateProperties object itself.
-
description
Get the description property: Gets or sets the description of the webhook.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description of the webhook.- Parameters:
description
- the description value to set.- Returns:
- the WebhookUpdateProperties 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<WebhookUpdateProperties>
- Throws:
IOException
-
fromJson
public static WebhookUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WebhookUpdateProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WebhookUpdateProperties 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 WebhookUpdateProperties.
-