@Generated(value="software.amazon.awssdk:codegen") public final class Deployment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Deployment.Builder,Deployment>
An immutable representation of an API that can be called by users. A Deployment must be associated with a Stage for it to be callable over the internet.
Modifier and Type | Class and Description |
---|---|
static interface |
Deployment.Builder |
Modifier and Type | Method and Description |
---|---|
Boolean |
autoDeployed()
Specifies whether a deployment was automatically released.
|
static Deployment.Builder |
builder() |
Instant |
createdDate()
The date and time when the Deployment resource was created.
|
String |
deploymentId()
The identifier for the deployment.
|
DeploymentStatus |
deploymentStatus()
The status of the deployment: PENDING, FAILED, or SUCCEEDED.
|
String |
deploymentStatusAsString()
The status of the deployment: PENDING, FAILED, or SUCCEEDED.
|
String |
deploymentStatusMessage()
May contain additional feedback on the status of an API deployment.
|
String |
description()
The description for the deployment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Deployment.Builder> |
serializableBuilderClass() |
Deployment.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final Boolean autoDeployed()
Specifies whether a deployment was automatically released.
public final Instant createdDate()
The date and time when the Deployment resource was created.
public final String deploymentId()
The identifier for the deployment.
public final DeploymentStatus deploymentStatus()
The status of the deployment: PENDING, FAILED, or SUCCEEDED.
If the service returns an enum value that is not available in the current SDK version, deploymentStatus
will return DeploymentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from deploymentStatusAsString()
.
DeploymentStatus
public final String deploymentStatusAsString()
The status of the deployment: PENDING, FAILED, or SUCCEEDED.
If the service returns an enum value that is not available in the current SDK version, deploymentStatus
will return DeploymentStatus.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available
from deploymentStatusAsString()
.
DeploymentStatus
public final String deploymentStatusMessage()
May contain additional feedback on the status of an API deployment.
public final String description()
The description for the deployment.
public Deployment.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Deployment.Builder,Deployment>
public static Deployment.Builder builder()
public static Class<? extends Deployment.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()