@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()
For responses, this returns true if the service returned a value for the Containers property.
|
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()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.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.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasContainers() method.
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 © 2022. All rights reserved.