@Generated(value="software.amazon.awssdk:codegen") public final class ContainerServiceDeployment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContainerServiceDeployment.Builder,ContainerServiceDeployment>
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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContainerServiceDeployment.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ContainerServiceDeployment.Builder |
builder() |
Map<String,Container> |
containers()
An object that describes the configuration for the containers of the deployment.
|
Instant |
createdAt()
The timestamp when the deployment was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasContainers()
Returns true if the Containers property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
ContainerServiceEndpoint |
publicEndpoint()
An object that describes the endpoint of the deployment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ContainerServiceDeployment.Builder> |
serializableBuilderClass() |
ContainerServiceDeploymentState |
state()
The state of the deployment.
|
String |
stateAsString()
The state of the deployment.
|
ContainerServiceDeployment.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
version()
The version number of the deployment.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer version()
The version number of the deployment.
public final 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.
If the service returns an enum value that is not available in the current SDK version, state will return
ContainerServiceDeploymentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stateAsString().
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.
ContainerServiceDeploymentStatepublic final String stateAsString()
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.
If the service returns an enum value that is not available in the current SDK version, state will return
ContainerServiceDeploymentState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stateAsString().
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.
ContainerServiceDeploymentStatepublic final boolean hasContainers()
public final Map<String,Container> containers()
An object that describes the configuration for the containers of the deployment.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasContainers() to see if a value was sent in this field.
public final ContainerServiceEndpoint publicEndpoint()
An object that describes the endpoint of the deployment.
public final Instant createdAt()
The timestamp when the deployment was created.
public ContainerServiceDeployment.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ContainerServiceDeployment.Builder,ContainerServiceDeployment>public static ContainerServiceDeployment.Builder builder()
public static Class<? extends ContainerServiceDeployment.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.