Share via


RunCommandResultInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner

Implements

public final class RunCommandResultInner
implements JsonSerializable<RunCommandResultInner>

run command result.

Method Summary

Modifier and Type Method and Description
Integer exitCode()

Get the exitCode property: The exit code of the command.

OffsetDateTime finishedAt()

Get the finishedAt property: The time when the command finished.

static RunCommandResultInner fromJson(JsonReader jsonReader)

Reads an instance of RunCommandResultInner from the JsonReader.

String id()

Get the id property: The command id.

String logs()

Get the logs property: The command output.

String provisioningState()

Get the provisioningState property: provisioning State.

String reason()

Get the reason property: An explanation of why provisioningState is set to failed (if so).

OffsetDateTime startedAt()

Get the startedAt property: The time when the command started.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

exitCode

public Integer exitCode()

Get the exitCode property: The exit code of the command.

Returns:

the exitCode value.

finishedAt

public OffsetDateTime finishedAt()

Get the finishedAt property: The time when the command finished.

Returns:

the finishedAt value.

fromJson

public static RunCommandResultInner fromJson(JsonReader jsonReader)

Reads an instance of RunCommandResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The command id.

Returns:

the id value.

logs

public String logs()

Get the logs property: The command output.

Returns:

the logs value.

provisioningState

public String provisioningState()

Get the provisioningState property: provisioning State.

Returns:

the provisioningState value.

reason

public String reason()

Get the reason property: An explanation of why provisioningState is set to failed (if so).

Returns:

the reason value.

startedAt

public OffsetDateTime startedAt()

Get the startedAt property: The time when the command started.

Returns:

the startedAt value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to