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