Class LogicAppReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.LogicAppReceiver
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LogicAppReceiver>
public final class LogicAppReceiver
extends Object
implements com.azure.json.JsonSerializable<LogicAppReceiver>
A logic app receiver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the callbackUrl property: The callback url where http request sent to.static LogicAppReceiverfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LogicAppReceiver from the JsonReader.name()Get the name property: The name of the logic app receiver.Get the resourceId property: The azure resource id of the logic app receiver.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the useCommonAlertSchema property: Indicates whether to use common alert schema.voidvalidate()Validates the instance.withCallbackUrl(String callbackUrl) Set the callbackUrl property: The callback url where http request sent to.Set the name property: The name of the logic app receiver.withResourceId(String resourceId) Set the resourceId property: The azure resource id of the logic app 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, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LogicAppReceiver
public LogicAppReceiver()Creates an instance of LogicAppReceiver class.
-
-
Method Details
-
name
Get the name property: The name of the logic app 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 logic app receiver. Names must be unique across all receivers within an action group.- Parameters:
name- the name value to set.- Returns:
- the LogicAppReceiver object itself.
-
resourceId
Get the resourceId property: The azure resource id of the logic app receiver.- Returns:
- the resourceId value.
-
withResourceId
Set the resourceId property: The azure resource id of the logic app receiver.- Parameters:
resourceId- the resourceId value to set.- Returns:
- the LogicAppReceiver object itself.
-
callbackUrl
Get the callbackUrl property: The callback url where http request sent to.- Returns:
- the callbackUrl value.
-
withCallbackUrl
Set the callbackUrl property: The callback url where http request sent to.- Parameters:
callbackUrl- the callbackUrl value to set.- Returns:
- the LogicAppReceiver 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 LogicAppReceiver object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LogicAppReceiver>- Throws:
IOException
-
fromJson
Reads an instance of LogicAppReceiver from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LogicAppReceiver 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 LogicAppReceiver.
-