CreateMonitorAction Class

public final class CreateMonitorAction
extends ScheduleActionBase

The CreateMonitorAction model.

Constructor Summary

Constructor Description
CreateMonitorAction()

Creates an instance of CreateMonitorAction class.

Method Summary

Modifier and Type Method and Description
ScheduleActionType actionType()

Get the actionType property: [Required] Specifies the action type of the schedule.

static CreateMonitorAction fromJson(JsonReader jsonReader)

Reads an instance of CreateMonitorAction from the JsonReader.

MonitorDefinition monitorDefinition()

Get the monitorDefinition property: [Required] Defines the monitor.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CreateMonitorAction withMonitorDefinition(MonitorDefinition monitorDefinition)

Set the monitorDefinition property: [Required] Defines the monitor.

Methods inherited from ScheduleActionBase

Methods inherited from java.lang.Object

Constructor Details

CreateMonitorAction

public CreateMonitorAction()

Creates an instance of CreateMonitorAction class.

Method Details

actionType

public ScheduleActionType actionType()

Get the actionType property: [Required] Specifies the action type of the schedule.

Overrides:

CreateMonitorAction.actionType()

Returns:

the actionType value.

fromJson

public static CreateMonitorAction fromJson(JsonReader jsonReader)

Reads an instance of CreateMonitorAction from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CreateMonitorAction 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.

monitorDefinition

public MonitorDefinition monitorDefinition()

Get the monitorDefinition property: [Required] Defines the monitor.

Returns:

the monitorDefinition value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CreateMonitorAction.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

CreateMonitorAction.validate()

withMonitorDefinition

public CreateMonitorAction withMonitorDefinition(MonitorDefinition monitorDefinition)

Set the monitorDefinition property: [Required] Defines the monitor.

Parameters:

monitorDefinition - the monitorDefinition value to set.

Returns:

the CreateMonitorAction object itself.

Applies to