Class CommandResultProperties
java.lang.Object
com.azure.resourcemanager.containerservice.fluent.models.CommandResultProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CommandResultProperties>
public final class CommandResultProperties
extends Object
implements com.azure.json.JsonSerializable<CommandResultProperties>
The results of a run command.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CommandResultProperties class. -
Method Summary
Modifier and TypeMethodDescriptionexitCode()Get the exitCode property: The exit code of the command.Get the finishedAt property: The time when the command finished.static CommandResultPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CommandResultProperties from the JsonReader.logs()Get the logs property: The command output.Get the provisioningState property: provisioning State.reason()Get the reason property: An explanation of why provisioningState is set to failed (if so).Get the startedAt property: The time when the command started.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CommandResultProperties
public CommandResultProperties()Creates an instance of CommandResultProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: provisioning State.- Returns:
- the provisioningState value.
-
exitCode
Get the exitCode property: The exit code of the command.- Returns:
- the exitCode value.
-
startedAt
Get the startedAt property: The time when the command started.- Returns:
- the startedAt value.
-
finishedAt
Get the finishedAt property: The time when the command finished.- Returns:
- the finishedAt value.
-
logs
Get the logs property: The command output.- Returns:
- the logs value.
-
reason
Get the reason property: An explanation of why provisioningState is set to failed (if so).- Returns:
- the reason value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CommandResultProperties>- Throws:
IOException
-
fromJson
public static CommandResultProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CommandResultProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CommandResultProperties 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 CommandResultProperties.
-