Class WebhookProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.WebhookProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WebhookProperties>
public final class WebhookProperties
extends Object
implements com.azure.json.JsonSerializable<WebhookProperties>
Definition of the webhook properties.
-
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.Get the expiryTime property: Gets or sets the expiry time.static WebhookProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WebhookProperties from the JsonReader.Get the isEnabled property: Gets or sets the value of the enabled flag of the webhook.Get the lastInvokedTime property: Gets or sets the last invoked time.Get the lastModifiedBy property: Details of the user who last modified the Webhook.Get the lastModifiedTime property: Gets or sets the last modified time.Get the parameters property: Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.runbook()
Get the runbook property: Gets or sets the runbook the webhook is associated with.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) uri()
Get the uri property: Gets or sets the webhook uri.void
validate()
Validates the instance.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: Gets or sets the creation time.withDescription
(String description) Set the description property: Gets or sets the description.withExpiryTime
(OffsetDateTime expiryTime) Set the expiryTime property: Gets or sets the expiry time.withIsEnabled
(Boolean isEnabled) Set the isEnabled property: Gets or sets the value of the enabled flag of the webhook.withLastInvokedTime
(OffsetDateTime lastInvokedTime) Set the lastInvokedTime property: Gets or sets the last invoked time.withLastModifiedBy
(String lastModifiedBy) Set the lastModifiedBy property: Details of the user who last modified the Webhook.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Gets or sets the last modified time.withParameters
(Map<String, String> parameters) Set the parameters property: Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.withRunbook
(RunbookAssociationProperty runbook) Set the runbook property: Gets or sets the runbook the webhook is associated with.Set the runOn property: Gets or sets the name of the hybrid worker group the webhook job will run on.Set the uri property: Gets or sets the webhook uri.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
-
WebhookProperties
public WebhookProperties()Creates an instance of WebhookProperties class.
-
-
Method Details
-
isEnabled
Get the isEnabled property: Gets or sets the value of the enabled flag of the webhook.- Returns:
- the isEnabled value.
-
withIsEnabled
Set the isEnabled property: Gets or sets the value of the enabled flag of the webhook.- Parameters:
isEnabled
- the isEnabled value to set.- Returns:
- the WebhookProperties object itself.
-
uri
Get the uri property: Gets or sets the webhook uri.- Returns:
- the uri value.
-
withUri
Set the uri property: Gets or sets the webhook uri.- Parameters:
uri
- the uri value to set.- Returns:
- the WebhookProperties object itself.
-
expiryTime
Get the expiryTime property: Gets or sets the expiry time.- Returns:
- the expiryTime value.
-
withExpiryTime
Set the expiryTime property: Gets or sets the expiry time.- Parameters:
expiryTime
- the expiryTime value to set.- Returns:
- the WebhookProperties object itself.
-
lastInvokedTime
Get the lastInvokedTime property: Gets or sets the last invoked time.- Returns:
- the lastInvokedTime value.
-
withLastInvokedTime
Set the lastInvokedTime property: Gets or sets the last invoked time.- Parameters:
lastInvokedTime
- the lastInvokedTime value to set.- Returns:
- the WebhookProperties object itself.
-
parameters
Get the parameters property: Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with.- Parameters:
parameters
- the parameters value to set.- Returns:
- the WebhookProperties object itself.
-
runbook
Get the runbook property: Gets or sets the runbook the webhook is associated with.- Returns:
- the runbook value.
-
withRunbook
Set the runbook property: Gets or sets the runbook the webhook is associated with.- Parameters:
runbook
- the runbook value to set.- Returns:
- the WebhookProperties 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 WebhookProperties object itself.
-
creationTime
Get the creationTime property: Gets or sets the creation time.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: Gets or sets the creation time.- Parameters:
creationTime
- the creationTime value to set.- Returns:
- the WebhookProperties object itself.
-
lastModifiedTime
Get the lastModifiedTime property: Gets or sets the last modified time.- Returns:
- the lastModifiedTime value.
-
withLastModifiedTime
Set the lastModifiedTime property: Gets or sets the last modified time.- Parameters:
lastModifiedTime
- the lastModifiedTime value to set.- Returns:
- the WebhookProperties object itself.
-
lastModifiedBy
Get the lastModifiedBy property: Details of the user who last modified the Webhook.- Returns:
- the lastModifiedBy value.
-
withLastModifiedBy
Set the lastModifiedBy property: Details of the user who last modified the Webhook.- Parameters:
lastModifiedBy
- the lastModifiedBy value to set.- Returns:
- the WebhookProperties object itself.
-
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 WebhookProperties 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<WebhookProperties>
- Throws:
IOException
-
fromJson
Reads an instance of WebhookProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WebhookProperties 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 WebhookProperties.
-