Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.containerinstance; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
The instance view of the container instance. Only valid in response.
/** * The instance view of the container instance. Only valid in response. */
public class ContainerPropertiesInstanceView {
The number of times that the container instance has been restarted.
/** * The number of times that the container instance has been restarted. */
@JsonProperty(value = "restartCount", access = JsonProperty.Access.WRITE_ONLY) private Integer restartCount;
Current container instance state.
/** * Current container instance state. */
@JsonProperty(value = "currentState", access = JsonProperty.Access.WRITE_ONLY) private ContainerState currentState;
Previous container instance state.
/** * Previous container instance state. */
@JsonProperty(value = "previousState", access = JsonProperty.Access.WRITE_ONLY) private ContainerState previousState;
The events of the container instance.
/** * The events of the container instance. */
@JsonProperty(value = "events", access = JsonProperty.Access.WRITE_ONLY) private List<Event> events;
Get the number of times that the container instance has been restarted.
Returns:the restartCount value
/** * Get the number of times that the container instance has been restarted. * * @return the restartCount value */
public Integer restartCount() { return this.restartCount; }
Get current container instance state.
Returns:the currentState value
/** * Get current container instance state. * * @return the currentState value */
public ContainerState currentState() { return this.currentState; }
Get previous container instance state.
Returns:the previousState value
/** * Get previous container instance state. * * @return the previousState value */
public ContainerState previousState() { return this.previousState; }
Get the events of the container instance.
Returns:the events value
/** * Get the events of the container instance. * * @return the events value */
public List<Event> events() { return this.events; } }