Class AzureFunctionReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.AzureFunctionReceiver
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureFunctionReceiver>
public final class AzureFunctionReceiver
extends Object
implements com.azure.json.JsonSerializable<AzureFunctionReceiver>
An azure function receiver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureFunctionReceiver
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AzureFunctionReceiver from the JsonReader.Get the functionAppResourceId property: The azure resource id of the function app.Get the functionName property: The function name in the function app.Get the httpTriggerUrl property: The http trigger url where http request sent to.name()
Get the name property: The name of the azure function receiver.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the useCommonAlertSchema property: Indicates whether to use common alert schema.void
validate()
Validates the instance.withFunctionAppResourceId
(String functionAppResourceId) Set the functionAppResourceId property: The azure resource id of the function app.withFunctionName
(String functionName) Set the functionName property: The function name in the function app.withHttpTriggerUrl
(String httpTriggerUrl) Set the httpTriggerUrl property: The http trigger url where http request sent to.Set the name property: The name of the azure function receiver.withUseCommonAlertSchema
(Boolean useCommonAlertSchema) Set the useCommonAlertSchema property: Indicates whether to use common alert schema.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
-
AzureFunctionReceiver
public AzureFunctionReceiver()Creates an instance of AzureFunctionReceiver class.
-
-
Method Details
-
name
Get the name property: The name of the azure function receiver. Names must be unique across all receivers within an action group.- Returns:
- the name value.
-
withName
Set the name property: The name of the azure function receiver. Names must be unique across all receivers within an action group.- Parameters:
name
- the name value to set.- Returns:
- the AzureFunctionReceiver object itself.
-
functionAppResourceId
Get the functionAppResourceId property: The azure resource id of the function app.- Returns:
- the functionAppResourceId value.
-
withFunctionAppResourceId
Set the functionAppResourceId property: The azure resource id of the function app.- Parameters:
functionAppResourceId
- the functionAppResourceId value to set.- Returns:
- the AzureFunctionReceiver object itself.
-
functionName
Get the functionName property: The function name in the function app.- Returns:
- the functionName value.
-
withFunctionName
Set the functionName property: The function name in the function app.- Parameters:
functionName
- the functionName value to set.- Returns:
- the AzureFunctionReceiver object itself.
-
httpTriggerUrl
Get the httpTriggerUrl property: The http trigger url where http request sent to.- Returns:
- the httpTriggerUrl value.
-
withHttpTriggerUrl
Set the httpTriggerUrl property: The http trigger url where http request sent to.- Parameters:
httpTriggerUrl
- the httpTriggerUrl value to set.- Returns:
- the AzureFunctionReceiver object itself.
-
useCommonAlertSchema
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.- Returns:
- the useCommonAlertSchema value.
-
withUseCommonAlertSchema
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.- Parameters:
useCommonAlertSchema
- the useCommonAlertSchema value to set.- Returns:
- the AzureFunctionReceiver 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<AzureFunctionReceiver>
- Throws:
IOException
-
fromJson
public static AzureFunctionReceiver fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureFunctionReceiver from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AzureFunctionReceiver 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 AzureFunctionReceiver.
-