Class ContainerPropertiesInstanceView
java.lang.Object
com.azure.resourcemanager.containerinstance.models.ContainerPropertiesInstanceView
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerPropertiesInstanceView>
public final class ContainerPropertiesInstanceView
extends Object
implements com.azure.json.JsonSerializable<ContainerPropertiesInstanceView>
The instance view of the container instance. Only valid in response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerPropertiesInstanceView class. -
Method Summary
Modifier and TypeMethodDescriptionGet the currentState property: Current container instance state.events()Get the events property: The events of the container instance.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerPropertiesInstanceView from the JsonReader.Get the previousState property: Previous container instance state.Get the restartCount property: The number of times that the container instance has been restarted.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
-
ContainerPropertiesInstanceView
public ContainerPropertiesInstanceView()Creates an instance of ContainerPropertiesInstanceView class.
-
-
Method Details
-
restartCount
Get the restartCount property: The number of times that the container instance has been restarted.- Returns:
- the restartCount value.
-
currentState
Get the currentState property: Current container instance state.- Returns:
- the currentState value.
-
previousState
Get the previousState property: Previous container instance state.- Returns:
- the previousState value.
-
events
Get the events property: The events of the container instance.- Returns:
- the events 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<ContainerPropertiesInstanceView>- Throws:
IOException
-
fromJson
public static ContainerPropertiesInstanceView fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerPropertiesInstanceView from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerPropertiesInstanceView 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 ContainerPropertiesInstanceView.
-