Partager via


ActionDetail Class

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

Implements

public final class ActionDetail
implements JsonSerializable<ActionDetail>

The action detail.

Constructor Summary

Constructor Description
ActionDetail()

Creates an instance of ActionDetail class.

Method Summary

Modifier and Type Method and Description
String detail()

Get the detail property: The detail of the friendly error message.

static ActionDetail fromJson(JsonReader jsonReader)

Reads an instance of ActionDetail from the JsonReader.

String mechanismType()

Get the mechanismType property: The mechanism type.

String name()

Get the name property: The name of the action.

String sendTime()

Get the sendTime property: The send time.

String status()

Get the status property: The status of the action.

String subState()

Get the subState property: The substatus of the action.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ActionDetail withDetail(String detail)

Set the detail property: The detail of the friendly error message.

ActionDetail withMechanismType(String mechanismType)

Set the mechanismType property: The mechanism type.

ActionDetail withName(String name)

Set the name property: The name of the action.

ActionDetail withSendTime(String sendTime)

Set the sendTime property: The send time.

ActionDetail withStatus(String status)

Set the status property: The status of the action.

ActionDetail withSubState(String subState)

Set the subState property: The substatus of the action.

Methods inherited from java.lang.Object

Constructor Details

ActionDetail

public ActionDetail()

Creates an instance of ActionDetail class.

Method Details

detail

public String detail()

Get the detail property: The detail of the friendly error message.

Returns:

the detail value.

fromJson

public static ActionDetail fromJson(JsonReader jsonReader)

Reads an instance of ActionDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ActionDetail if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ActionDetail.

mechanismType

public String mechanismType()

Get the mechanismType property: The mechanism type.

Returns:

the mechanismType value.

name

public String name()

Get the name property: The name of the action.

Returns:

the name value.

sendTime

public String sendTime()

Get the sendTime property: The send time.

Returns:

the sendTime value.

status

public String status()

Get the status property: The status of the action.

Returns:

the status value.

subState

public String subState()

Get the subState property: The substatus of the action.

Returns:

the subState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDetail

public ActionDetail withDetail(String detail)

Set the detail property: The detail of the friendly error message.

Parameters:

detail - the detail value to set.

Returns:

the ActionDetail object itself.

withMechanismType

public ActionDetail withMechanismType(String mechanismType)

Set the mechanismType property: The mechanism type.

Parameters:

mechanismType - the mechanismType value to set.

Returns:

the ActionDetail object itself.

withName

public ActionDetail withName(String name)

Set the name property: The name of the action.

Parameters:

name - the name value to set.

Returns:

the ActionDetail object itself.

withSendTime

public ActionDetail withSendTime(String sendTime)

Set the sendTime property: The send time.

Parameters:

sendTime - the sendTime value to set.

Returns:

the ActionDetail object itself.

withStatus

public ActionDetail withStatus(String status)

Set the status property: The status of the action.

Parameters:

status - the status value to set.

Returns:

the ActionDetail object itself.

withSubState

public ActionDetail withSubState(String subState)

Set the subState property: The substatus of the action.

Parameters:

subState - the subState value to set.

Returns:

the ActionDetail object itself.

Applies to