public class ContainerState extends Object
Constructor and Description |
---|
ContainerState() |
Modifier and Type | Method and Description |
---|---|
String |
detailStatus()
Get the human-readable status of the container instance state.
|
Integer |
exitCode()
Get the container instance exit codes correspond to those from the `docker run` command.
|
org.joda.time.DateTime |
finishTime()
Get the date-time when the container instance state finished.
|
org.joda.time.DateTime |
startTime()
Get the date-time when the container instance state started.
|
String |
state()
Get the state of the container instance.
|
ContainerState |
withDetailStatus(String detailStatus)
Set the human-readable status of the container instance state.
|
ContainerState |
withExitCode(Integer exitCode)
Set the container instance exit codes correspond to those from the `docker run` command.
|
ContainerState |
withFinishTime(org.joda.time.DateTime finishTime)
Set the date-time when the container instance state finished.
|
ContainerState |
withStartTime(org.joda.time.DateTime startTime)
Set the date-time when the container instance state started.
|
ContainerState |
withState(String state)
Set the state of the container instance.
|
public String state()
public ContainerState withState(String state)
state
- the state value to setpublic org.joda.time.DateTime startTime()
public ContainerState withStartTime(org.joda.time.DateTime startTime)
startTime
- the startTime value to setpublic Integer exitCode()
public ContainerState withExitCode(Integer exitCode)
exitCode
- the exitCode value to setpublic org.joda.time.DateTime finishTime()
public ContainerState withFinishTime(org.joda.time.DateTime finishTime)
finishTime
- the finishTime value to setpublic String detailStatus()
public ContainerState withDetailStatus(String detailStatus)
detailStatus
- the detailStatus value to setCopyright © 2019. All rights reserved.