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