Class BlueGreenDeployment
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<BlueGreenDeployment.Builder,
BlueGreenDeployment>
Details about a blue/green deployment.
For more information, see Using Amazon RDS Blue/Green Deployments for database updates in the Amazon RDS User Guide and Using Amazon RDS Blue/Green Deployments for database updates in the Amazon Aurora User Guide.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The unique identifier of the blue/green deployment.final String
The user-supplied name of the blue/green deployment.static BlueGreenDeployment.Builder
builder()
final Instant
The time when the blue/green deployment was created, in Universal Coordinated Time (UTC).final Instant
The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC).final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final boolean
For responses, this returns true if the service returned a value for the SwitchoverDetails property.final boolean
For responses, this returns true if the service returned a value for the TagList property.final boolean
hasTasks()
For responses, this returns true if the service returned a value for the Tasks property.static Class
<? extends BlueGreenDeployment.Builder> final String
source()
The source database for the blue/green deployment.final String
status()
The status of the blue/green deployment.final String
Additional information about the status of the blue/green deployment.final List
<SwitchoverDetail> The details about each source and target resource in the blue/green deployment.tagList()
Returns the value of the TagList property for this object.final String
target()
The target database for the blue/green deployment.final List
<BlueGreenDeploymentTask> tasks()
Either tasks to be performed or tasks that have been completed on the target database before switchover.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
blueGreenDeploymentIdentifier
The unique identifier of the blue/green deployment.
- Returns:
- The unique identifier of the blue/green deployment.
-
blueGreenDeploymentName
The user-supplied name of the blue/green deployment.
- Returns:
- The user-supplied name of the blue/green deployment.
-
source
The source database for the blue/green deployment.
Before switchover, the source database is the production database in the blue environment.
- Returns:
- The source database for the blue/green deployment.
Before switchover, the source database is the production database in the blue environment.
-
target
The target database for the blue/green deployment.
Before switchover, the target database is the clone database in the green environment.
- Returns:
- The target database for the blue/green deployment.
Before switchover, the target database is the clone database in the green environment.
-
hasSwitchoverDetails
public final boolean hasSwitchoverDetails()For responses, this returns true if the service returned a value for the SwitchoverDetails property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
switchoverDetails
The details about each source and target resource in the blue/green 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
hasSwitchoverDetails()
method.- Returns:
- The details about each source and target resource in the blue/green deployment.
-
hasTasks
public final boolean hasTasks()For responses, this returns true if the service returned a value for the Tasks property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
tasks
Either tasks to be performed or tasks that have been completed on the target database before switchover.
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
hasTasks()
method.- Returns:
- Either tasks to be performed or tasks that have been completed on the target database before switchover.
-
status
The status of the blue/green deployment.
Valid Values:
-
PROVISIONING
- Resources are being created in the green environment. -
AVAILABLE
- Resources are available in the green environment. -
SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the green environment. -
SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is complete. -
INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't possible. -
SWITCHOVER_FAILED
- Switchover was attempted but failed. -
DELETING
- The blue/green deployment is being deleted.
- Returns:
- The status of the blue/green deployment.
Valid Values:
-
PROVISIONING
- Resources are being created in the green environment. -
AVAILABLE
- Resources are available in the green environment. -
SWITCHOVER_IN_PROGRESS
- The deployment is being switched from the blue environment to the green environment. -
SWITCHOVER_COMPLETED
- Switchover from the blue environment to the green environment is complete. -
INVALID_CONFIGURATION
- Resources in the green environment are invalid, so switchover isn't possible. -
SWITCHOVER_FAILED
- Switchover was attempted but failed. -
DELETING
- The blue/green deployment is being deleted.
-
-
-
statusDetails
Additional information about the status of the blue/green deployment.
- Returns:
- Additional information about the status of the blue/green deployment.
-
createTime
The time when the blue/green deployment was created, in Universal Coordinated Time (UTC).
- Returns:
- The time when the blue/green deployment was created, in Universal Coordinated Time (UTC).
-
deleteTime
The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC).
- Returns:
- The time when the blue/green deployment was deleted, in Universal Coordinated Time (UTC).
-
hasTagList
public final boolean hasTagList()For responses, this returns true if the service returned a value for the TagList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()
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. -
tagList
Returns the value of the TagList property for this object.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
hasTagList()
method.- Returns:
- The value of the TagList property for this object.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<BlueGreenDeployment.Builder,
BlueGreenDeployment> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-