InitContainerPropertiesDefinitionInstanceView Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. InitContainerPropertiesDefinitionInstanceView
- com.
Implements
public final class InitContainerPropertiesDefinitionInstanceView
implements JsonSerializable<InitContainerPropertiesDefinitionInstanceView>
The instance view of the init container. Only valid in response.
Constructor Summary
Constructor | Description |
---|---|
InitContainerPropertiesDefinitionInstanceView() |
Creates an instance of Init |
Method Summary
Modifier and Type | Method and Description |
---|---|
Container |
currentState()
Get the current |
List<Event> |
events()
Get the events property: The events of the init container. |
static
Init |
fromJson(JsonReader jsonReader)
Reads an instance of Init |
Container |
previousState()
Get the previous |
Integer |
restartCount()
Get the restart |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
InitContainerPropertiesDefinitionInstanceView
public InitContainerPropertiesDefinitionInstanceView()
Creates an instance of InitContainerPropertiesDefinitionInstanceView class.
Method Details
currentState
public ContainerState currentState()
Get the currentState property: The current state of the init container.
Returns:
events
public List
Get the events property: The events of the init container.
Returns:
fromJson
public static InitContainerPropertiesDefinitionInstanceView fromJson(JsonReader jsonReader)
Reads an instance of InitContainerPropertiesDefinitionInstanceView from the JsonReader.
Parameters:
Returns:
Throws:
previousState
public ContainerState previousState()
Get the previousState property: The previous state of the init container.
Returns:
restartCount
public Integer restartCount()
Get the restartCount property: The number of times that the init container has been restarted.
Returns:
toJson
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java