@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerDependency extends Object implements Serializable, Cloneable, StructuredPojo
The dependencies defined for container startup. A container can contain multiple dependencies.
Constructor and Description |
---|
ContainerDependency() |
Modifier and Type | Method and Description |
---|---|
ContainerDependency |
clone() |
boolean |
equals(Object obj) |
String |
getCondition()
The dependency condition of the container.
|
String |
getContainerName()
The name of a container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCondition(String condition)
The dependency condition of the container.
|
void |
setContainerName(String containerName)
The name of a container.
|
String |
toString()
Returns a string representation of this object.
|
ContainerDependency |
withCondition(ContainerCondition condition)
The dependency condition of the container.
|
ContainerDependency |
withCondition(String condition)
The dependency condition of the container.
|
ContainerDependency |
withContainerName(String containerName)
The name of a container.
|
public void setContainerName(String containerName)
The name of a container.
containerName
- The name of a container.public String getContainerName()
The name of a container.
public ContainerDependency withContainerName(String containerName)
The name of a container.
containerName
- The name of a container.public void setCondition(String condition)
The dependency condition of the container. The following are the available conditions and their behavior:
START
- This condition emulates the behavior of links and volumes today. It validates that a
dependent container is started before permitting other containers to start.
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before
permitting other containers to start. This can be useful for non-essential containers that run a script and then
subsequently exit.
SUCCESS
- This condition is the same as COMPLETE
, but it will also require that the
container exits with a zero
status.
HEALTHY
- This condition validates that the dependent container passes its Docker health check
before permitting other containers to start. This requires that the dependent container has health checks
configured. This condition will only be confirmed at task startup.
condition
- The dependency condition of the container. The following are the available conditions and their
behavior:
START
- This condition emulates the behavior of links and volumes today. It validates that a
dependent container is started before permitting other containers to start.
COMPLETE
- This condition validates that a dependent container runs to completion (exits)
before permitting other containers to start. This can be useful for non-essential containers that run a
script and then subsequently exit.
SUCCESS
- This condition is the same as COMPLETE
, but it will also require that
the container exits with a zero
status.
HEALTHY
- This condition validates that the dependent container passes its Docker health
check before permitting other containers to start. This requires that the dependent container has health
checks configured. This condition will only be confirmed at task startup.
ContainerCondition
public String getCondition()
The dependency condition of the container. The following are the available conditions and their behavior:
START
- This condition emulates the behavior of links and volumes today. It validates that a
dependent container is started before permitting other containers to start.
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before
permitting other containers to start. This can be useful for non-essential containers that run a script and then
subsequently exit.
SUCCESS
- This condition is the same as COMPLETE
, but it will also require that the
container exits with a zero
status.
HEALTHY
- This condition validates that the dependent container passes its Docker health check
before permitting other containers to start. This requires that the dependent container has health checks
configured. This condition will only be confirmed at task startup.
START
- This condition emulates the behavior of links and volumes today. It validates that a
dependent container is started before permitting other containers to start.
COMPLETE
- This condition validates that a dependent container runs to completion (exits)
before permitting other containers to start. This can be useful for non-essential containers that run a
script and then subsequently exit.
SUCCESS
- This condition is the same as COMPLETE
, but it will also require that
the container exits with a zero
status.
HEALTHY
- This condition validates that the dependent container passes its Docker health
check before permitting other containers to start. This requires that the dependent container has health
checks configured. This condition will only be confirmed at task startup.
ContainerCondition
public ContainerDependency withCondition(String condition)
The dependency condition of the container. The following are the available conditions and their behavior:
START
- This condition emulates the behavior of links and volumes today. It validates that a
dependent container is started before permitting other containers to start.
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before
permitting other containers to start. This can be useful for non-essential containers that run a script and then
subsequently exit.
SUCCESS
- This condition is the same as COMPLETE
, but it will also require that the
container exits with a zero
status.
HEALTHY
- This condition validates that the dependent container passes its Docker health check
before permitting other containers to start. This requires that the dependent container has health checks
configured. This condition will only be confirmed at task startup.
condition
- The dependency condition of the container. The following are the available conditions and their
behavior:
START
- This condition emulates the behavior of links and volumes today. It validates that a
dependent container is started before permitting other containers to start.
COMPLETE
- This condition validates that a dependent container runs to completion (exits)
before permitting other containers to start. This can be useful for non-essential containers that run a
script and then subsequently exit.
SUCCESS
- This condition is the same as COMPLETE
, but it will also require that
the container exits with a zero
status.
HEALTHY
- This condition validates that the dependent container passes its Docker health
check before permitting other containers to start. This requires that the dependent container has health
checks configured. This condition will only be confirmed at task startup.
ContainerCondition
public ContainerDependency withCondition(ContainerCondition condition)
The dependency condition of the container. The following are the available conditions and their behavior:
START
- This condition emulates the behavior of links and volumes today. It validates that a
dependent container is started before permitting other containers to start.
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before
permitting other containers to start. This can be useful for non-essential containers that run a script and then
subsequently exit.
SUCCESS
- This condition is the same as COMPLETE
, but it will also require that the
container exits with a zero
status.
HEALTHY
- This condition validates that the dependent container passes its Docker health check
before permitting other containers to start. This requires that the dependent container has health checks
configured. This condition will only be confirmed at task startup.
condition
- The dependency condition of the container. The following are the available conditions and their
behavior:
START
- This condition emulates the behavior of links and volumes today. It validates that a
dependent container is started before permitting other containers to start.
COMPLETE
- This condition validates that a dependent container runs to completion (exits)
before permitting other containers to start. This can be useful for non-essential containers that run a
script and then subsequently exit.
SUCCESS
- This condition is the same as COMPLETE
, but it will also require that
the container exits with a zero
status.
HEALTHY
- This condition validates that the dependent container passes its Docker health
check before permitting other containers to start. This requires that the dependent container has health
checks configured. This condition will only be confirmed at task startup.
ContainerCondition
public String toString()
toString
in class Object
Object.toString()
public ContainerDependency clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.