@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerServiceDeployment extends Object implements Serializable, Cloneable, StructuredPojo
Describes a container deployment configuration of an Amazon Lightsail container service.
A deployment specifies the settings, such as the ports and launch command, of containers that are deployed to your container service.
Constructor and Description |
---|
ContainerServiceDeployment() |
Modifier and Type | Method and Description |
---|---|
ContainerServiceDeployment |
addContainersEntry(String key,
Container value)
Add a single Containers entry
|
ContainerServiceDeployment |
clearContainersEntries()
Removes all the entries added into Containers.
|
ContainerServiceDeployment |
clone() |
boolean |
equals(Object obj) |
Map<String,Container> |
getContainers()
An object that describes the configuration for the containers of the deployment.
|
Date |
getCreatedAt()
The timestamp when the deployment was created.
|
ContainerServiceEndpoint |
getPublicEndpoint()
An object that describes the endpoint of the deployment.
|
String |
getState()
The state of the deployment.
|
Integer |
getVersion()
The version number of the deployment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainers(Map<String,Container> containers)
An object that describes the configuration for the containers of the deployment.
|
void |
setCreatedAt(Date createdAt)
The timestamp when the deployment was created.
|
void |
setPublicEndpoint(ContainerServiceEndpoint publicEndpoint)
An object that describes the endpoint of the deployment.
|
void |
setState(String state)
The state of the deployment.
|
void |
setVersion(Integer version)
The version number of the deployment.
|
String |
toString()
Returns a string representation of this object.
|
ContainerServiceDeployment |
withContainers(Map<String,Container> containers)
An object that describes the configuration for the containers of the deployment.
|
ContainerServiceDeployment |
withCreatedAt(Date createdAt)
The timestamp when the deployment was created.
|
ContainerServiceDeployment |
withPublicEndpoint(ContainerServiceEndpoint publicEndpoint)
An object that describes the endpoint of the deployment.
|
ContainerServiceDeployment |
withState(ContainerServiceDeploymentState state)
The state of the deployment.
|
ContainerServiceDeployment |
withState(String state)
The state of the deployment.
|
ContainerServiceDeployment |
withVersion(Integer version)
The version number of the deployment.
|
public void setVersion(Integer version)
The version number of the deployment.
version
- The version number of the deployment.public Integer getVersion()
The version number of the deployment.
public ContainerServiceDeployment withVersion(Integer version)
The version number of the deployment.
version
- The version number of the deployment.public void setState(String state)
The state of the deployment.
A deployment can be in one of the following states:
ACTIVATING
- The deployment is being created.
ACTIVE
- The deployment was successfully created, and it's currently running on the container
service. The container service can have only one deployment in an active state at a time.
INACTIVE
- The deployment was previously successfully created, but it is not currently running on
the container service.
FAILED
- The deployment failed. Use the GetContainerLog
action to view the log events
for the containers in the deployment to try to determine the reason for the failure.
state
- The state of the deployment.
A deployment can be in one of the following states:
ACTIVATING
- The deployment is being created.
ACTIVE
- The deployment was successfully created, and it's currently running on the container
service. The container service can have only one deployment in an active state at a time.
INACTIVE
- The deployment was previously successfully created, but it is not currently
running on the container service.
FAILED
- The deployment failed. Use the GetContainerLog
action to view the log
events for the containers in the deployment to try to determine the reason for the failure.
ContainerServiceDeploymentState
public String getState()
The state of the deployment.
A deployment can be in one of the following states:
ACTIVATING
- The deployment is being created.
ACTIVE
- The deployment was successfully created, and it's currently running on the container
service. The container service can have only one deployment in an active state at a time.
INACTIVE
- The deployment was previously successfully created, but it is not currently running on
the container service.
FAILED
- The deployment failed. Use the GetContainerLog
action to view the log events
for the containers in the deployment to try to determine the reason for the failure.
A deployment can be in one of the following states:
ACTIVATING
- The deployment is being created.
ACTIVE
- The deployment was successfully created, and it's currently running on the
container service. The container service can have only one deployment in an active state at a time.
INACTIVE
- The deployment was previously successfully created, but it is not currently
running on the container service.
FAILED
- The deployment failed. Use the GetContainerLog
action to view the log
events for the containers in the deployment to try to determine the reason for the failure.
ContainerServiceDeploymentState
public ContainerServiceDeployment withState(String state)
The state of the deployment.
A deployment can be in one of the following states:
ACTIVATING
- The deployment is being created.
ACTIVE
- The deployment was successfully created, and it's currently running on the container
service. The container service can have only one deployment in an active state at a time.
INACTIVE
- The deployment was previously successfully created, but it is not currently running on
the container service.
FAILED
- The deployment failed. Use the GetContainerLog
action to view the log events
for the containers in the deployment to try to determine the reason for the failure.
state
- The state of the deployment.
A deployment can be in one of the following states:
ACTIVATING
- The deployment is being created.
ACTIVE
- The deployment was successfully created, and it's currently running on the container
service. The container service can have only one deployment in an active state at a time.
INACTIVE
- The deployment was previously successfully created, but it is not currently
running on the container service.
FAILED
- The deployment failed. Use the GetContainerLog
action to view the log
events for the containers in the deployment to try to determine the reason for the failure.
ContainerServiceDeploymentState
public ContainerServiceDeployment withState(ContainerServiceDeploymentState state)
The state of the deployment.
A deployment can be in one of the following states:
ACTIVATING
- The deployment is being created.
ACTIVE
- The deployment was successfully created, and it's currently running on the container
service. The container service can have only one deployment in an active state at a time.
INACTIVE
- The deployment was previously successfully created, but it is not currently running on
the container service.
FAILED
- The deployment failed. Use the GetContainerLog
action to view the log events
for the containers in the deployment to try to determine the reason for the failure.
state
- The state of the deployment.
A deployment can be in one of the following states:
ACTIVATING
- The deployment is being created.
ACTIVE
- The deployment was successfully created, and it's currently running on the container
service. The container service can have only one deployment in an active state at a time.
INACTIVE
- The deployment was previously successfully created, but it is not currently
running on the container service.
FAILED
- The deployment failed. Use the GetContainerLog
action to view the log
events for the containers in the deployment to try to determine the reason for the failure.
ContainerServiceDeploymentState
public Map<String,Container> getContainers()
An object that describes the configuration for the containers of the deployment.
public void setContainers(Map<String,Container> containers)
An object that describes the configuration for the containers of the deployment.
containers
- An object that describes the configuration for the containers of the deployment.public ContainerServiceDeployment withContainers(Map<String,Container> containers)
An object that describes the configuration for the containers of the deployment.
containers
- An object that describes the configuration for the containers of the deployment.public ContainerServiceDeployment addContainersEntry(String key, Container value)
public ContainerServiceDeployment clearContainersEntries()
public void setPublicEndpoint(ContainerServiceEndpoint publicEndpoint)
An object that describes the endpoint of the deployment.
publicEndpoint
- An object that describes the endpoint of the deployment.public ContainerServiceEndpoint getPublicEndpoint()
An object that describes the endpoint of the deployment.
public ContainerServiceDeployment withPublicEndpoint(ContainerServiceEndpoint publicEndpoint)
An object that describes the endpoint of the deployment.
publicEndpoint
- An object that describes the endpoint of the deployment.public void setCreatedAt(Date createdAt)
The timestamp when the deployment was created.
createdAt
- The timestamp when the deployment was created.public Date getCreatedAt()
The timestamp when the deployment was created.
public ContainerServiceDeployment withCreatedAt(Date createdAt)
The timestamp when the deployment was created.
createdAt
- The timestamp when the deployment was created.public String toString()
toString
in class Object
Object.toString()
public ContainerServiceDeployment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.