Class WebhookCreateOrUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.WebhookCreateOrUpdateParameters
The parameters supplied to the create or update webhook operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the expiryTime property: Gets or sets the expiry time.Get the isEnabled property: Gets or sets the value of the enabled flag of webhook.name()
Get the name property: Gets or sets the name of the webhook.Get the parameters property: Gets or sets the parameters of the job.runbook()
Get the runbook property: Gets or sets the runbook.runOn()
Get the runOn property: Gets or sets the name of the hybrid worker group the webhook job will run on.uri()
Get the uri property: Gets or sets the uri.void
validate()
Validates the instance.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 webhook.Set the name property: Gets or sets the name of the webhook.withParameters
(Map<String, String> parameters) Set the parameters property: Gets or sets the parameters of the job.withRunbook
(RunbookAssociationProperty runbook) Set the runbook property: Gets or sets the runbook.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 uri.
-
Constructor Details
-
WebhookCreateOrUpdateParameters
public WebhookCreateOrUpdateParameters()
-
-
Method Details
-
name
Get the name property: Gets or sets the name of the webhook.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the webhook.- Parameters:
name
- the name value to set.- Returns:
- the WebhookCreateOrUpdateParameters object itself.
-
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 WebhookCreateOrUpdateParameters object itself.
-
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 WebhookCreateOrUpdateParameters 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 WebhookCreateOrUpdateParameters 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 WebhookCreateOrUpdateParameters object itself.
-
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 WebhookCreateOrUpdateParameters 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 WebhookCreateOrUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-