Class WebhookInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.automation.fluent.models.WebhookInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class WebhookInner
extends com.azure.core.management.ProxyResource
Definition of the webhook type.
-
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 WebhookInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of WebhookInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.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.name()
Get the name property: The name of the resource.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) type()
Get the type property: The type of the resource.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
-
WebhookInner
public WebhookInner()Creates an instance of WebhookInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
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 WebhookInner 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 WebhookInner 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 WebhookInner 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 WebhookInner 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 WebhookInner 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 WebhookInner 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 WebhookInner 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 WebhookInner 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 WebhookInner 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 WebhookInner 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 WebhookInner 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<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.ProxyResource
- Throws:
IOException
-
fromJson
Reads an instance of WebhookInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of WebhookInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the WebhookInner.
-