ItsmReceiver Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.ItsmReceiver

Implements

public final class ItsmReceiver
implements JsonSerializable<ItsmReceiver>

An Itsm receiver.

Constructor Summary

Constructor Description
ItsmReceiver()

Creates an instance of ItsmReceiver class.

Method Summary

Modifier and Type Method and Description
String connectionId()

Get the connectionId property: Unique identification of ITSM connection among multiple defined in above workspace.

static ItsmReceiver fromJson(JsonReader jsonReader)

Reads an instance of ItsmReceiver from the JsonReader.

String name()

Get the name property: The name of the Itsm receiver.

String region()

Get the region property: Region in which workspace resides.

String ticketConfiguration()

Get the ticketConfiguration property: JSON blob for the configurations of the ITSM action.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ItsmReceiver withConnectionId(String connectionId)

Set the connectionId property: Unique identification of ITSM connection among multiple defined in above workspace.

ItsmReceiver withName(String name)

Set the name property: The name of the Itsm receiver.

ItsmReceiver withRegion(String region)

Set the region property: Region in which workspace resides.

ItsmReceiver withTicketConfiguration(String ticketConfiguration)

Set the ticketConfiguration property: JSON blob for the configurations of the ITSM action.

ItsmReceiver withWorkspaceId(String workspaceId)

Set the workspaceId property: OMS LA instance identifier.

String workspaceId()

Get the workspaceId property: OMS LA instance identifier.

Methods inherited from java.lang.Object

Constructor Details

ItsmReceiver

public ItsmReceiver()

Creates an instance of ItsmReceiver class.

Method Details

connectionId

public String connectionId()

Get the connectionId property: Unique identification of ITSM connection among multiple defined in above workspace.

Returns:

the connectionId value.

fromJson

public static ItsmReceiver fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

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.

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

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.

workspaceId

public String workspaceId()

Get the workspaceId property: OMS LA instance identifier.

Returns:

the workspaceId value.

Applies to