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 Details

    • ItsmReceiver

      public ItsmReceiver()
      Creates an instance of ItsmReceiver class.
  • Method Details

    • name

      public String 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

      public ItsmReceiver withName(String name)
      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

      public String workspaceId()
      Get the workspaceId property: OMS LA instance identifier.
      Returns:
      the workspaceId value.
    • withWorkspaceId

      public ItsmReceiver withWorkspaceId(String workspaceId)
      Set the workspaceId property: OMS LA instance identifier.
      Parameters:
      workspaceId - the workspaceId value to set.
      Returns:
      the ItsmReceiver object itself.
    • connectionId

      public String connectionId()
      Get the connectionId property: Unique identification of ITSM connection among multiple defined in above workspace.
      Returns:
      the connectionId value.
    • withConnectionId

      public ItsmReceiver withConnectionId(String connectionId)
      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

      public String 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

      public ItsmReceiver withTicketConfiguration(String ticketConfiguration)
      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

      public String 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

      public ItsmReceiver withRegion(String region)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ItsmReceiver>
      Throws:
      IOException
    • fromJson

      public static ItsmReceiver fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.