Class ItsmReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.ItsmReceiver
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ItsmReceiver>
public final class ItsmReceiver
extends Object
implements com.azure.json.JsonSerializable<ItsmReceiver>
An Itsm receiver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionId property: Unique identification of ITSM connection among multiple defined in above workspace.static ItsmReceiver
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ItsmReceiver from the JsonReader.name()
Get the name property: The name of the Itsm receiver.region()
Get the region property: Region in which workspace resides.Get the ticketConfiguration property: JSON blob for the configurations of the ITSM action.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withConnectionId
(String connectionId) Set the connectionId property: Unique identification of ITSM connection among multiple defined in above workspace.Set the name property: The name of the Itsm receiver.withRegion
(String region) Set the region property: Region in which workspace resides.withTicketConfiguration
(String ticketConfiguration) Set the ticketConfiguration property: JSON blob for the configurations of the ITSM action.withWorkspaceId
(String workspaceId) Set the workspaceId property: OMS LA instance identifier.Get the workspaceId property: OMS LA instance identifier.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
-
ItsmReceiver
public ItsmReceiver()Creates an instance of ItsmReceiver class.
-
-
Method Details
-
name
Get the name property: The name of the Itsm 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 Itsm receiver. Names must be unique across all receivers within an action group.- Parameters:
name
- the name value to set.- Returns:
- the ItsmReceiver object itself.
-
workspaceId
Get the workspaceId property: OMS LA instance identifier.- Returns:
- the workspaceId value.
-
withWorkspaceId
Set the workspaceId property: OMS LA instance identifier.- Parameters:
workspaceId
- the workspaceId value to set.- Returns:
- the ItsmReceiver object itself.
-
connectionId
Get the connectionId property: Unique identification of ITSM connection among multiple defined in above workspace.- Returns:
- the connectionId value.
-
withConnectionId
Set the connectionId property: Unique identification of ITSM connection among multiple defined in above workspace.- Parameters:
connectionId
- the connectionId value to set.- Returns:
- the ItsmReceiver object itself.
-
ticketConfiguration
Get the ticketConfiguration property: JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.- Returns:
- the ticketConfiguration value.
-
withTicketConfiguration
Set the ticketConfiguration property: JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.- Parameters:
ticketConfiguration
- the ticketConfiguration value to set.- Returns:
- the ItsmReceiver object itself.
-
region
Get the region property: Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'.- Returns:
- the region value.
-
withRegion
Set the region property: Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'.- Parameters:
region
- the region value to set.- Returns:
- the ItsmReceiver 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<ItsmReceiver>
- Throws:
IOException
-
fromJson
Reads an instance of ItsmReceiver from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ItsmReceiver 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 ItsmReceiver.
-