AvsScriptExecutionFailedEventData Class

@Deprecated
public final class AvsScriptExecutionFailedEventData
extends AvsScriptExecutionEventData

Note

This class has been deprecated. This class is deprecated and may be removed in future releases. System events are now available in the azure-messaging-eventgrid-systemevents package.

Schema of the Data property of an EventGridEvent for a Microsoft.AVS.ScriptExecutionFailed event.

Constructor Summary

Constructor Description
AvsScriptExecutionFailedEventData()

Creates an instance of AvsScriptExecutionFailedEventData class.

Method Summary

Modifier and Type Method and Description
static AvsScriptExecutionFailedEventData fromJson(JsonReader jsonReader)

Reads an instance of AvsScriptExecutionFailedEventData from the JsonReader.

String getFailureMessage()

Get the failureMessage property: Failure reason of an event.

AvsScriptExecutionFailedEventData setCmdletId(String cmdletId)

Set the cmdletId property: Cmdlet referenced in the execution that caused this event.

AvsScriptExecutionFailedEventData setFailureMessage(String failureMessage)

Set the failureMessage property: Failure reason of an event.

AvsScriptExecutionFailedEventData setOperationId(String operationId)

Set the operationId property: Id of the operation that caused this event.

AvsScriptExecutionFailedEventData setOutput(List<String> output)

Set the output property: Stdout outputs from the execution, if any.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from AvsScriptExecutionEventData

Methods inherited from java.lang.Object

Constructor Details

AvsScriptExecutionFailedEventData

public AvsScriptExecutionFailedEventData()

Creates an instance of AvsScriptExecutionFailedEventData class.

Method Details

fromJson

public static AvsScriptExecutionFailedEventData fromJson(JsonReader jsonReader)

Reads an instance of AvsScriptExecutionFailedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getFailureMessage

public String getFailureMessage()

Get the failureMessage property: Failure reason of an event.

Returns:

the failureMessage value.

setCmdletId

public AvsScriptExecutionFailedEventData setCmdletId(String cmdletId)

Set the cmdletId property: Cmdlet referenced in the execution that caused this event.

Overrides:

AvsScriptExecutionFailedEventData.setCmdletId(String cmdletId)

Parameters:

cmdletId

setFailureMessage

public AvsScriptExecutionFailedEventData setFailureMessage(String failureMessage)

Set the failureMessage property: Failure reason of an event.

Parameters:

failureMessage - the failureMessage value to set.

Returns:

the AvsScriptExecutionFailedEventData object itself.

setOperationId

public AvsScriptExecutionFailedEventData setOperationId(String operationId)

Set the operationId property: Id of the operation that caused this event.

Overrides:

AvsScriptExecutionFailedEventData.setOperationId(String operationId)

Parameters:

operationId

setOutput

public AvsScriptExecutionFailedEventData setOutput(List<String> output)

Set the output property: Stdout outputs from the execution, if any.

Overrides:

AvsScriptExecutionFailedEventData.setOutput(List<String> output)

Parameters:

output

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AvsScriptExecutionFailedEventData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to