Interface RelationalDatabase.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RelationalDatabase.Builder,
,RelationalDatabase> SdkBuilder<RelationalDatabase.Builder,
,RelationalDatabase> SdkPojo
- Enclosing class:
RelationalDatabase
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the database.backupRetentionEnabled
(Boolean backupRetentionEnabled) A Boolean value indicating whether automated backup retention is enabled for the database.caCertificateIdentifier
(String caCertificateIdentifier) The certificate associated with the database.The timestamp when the database was created.The database software (for example,MySQL
).engineVersion
(String engineVersion) The database engine version (for example,5.7.23
).default RelationalDatabase.Builder
hardware
(Consumer<RelationalDatabaseHardware.Builder> hardware) Describes the hardware of the database.hardware
(RelationalDatabaseHardware hardware) Describes the hardware of the database.latestRestorableTime
(Instant latestRestorableTime) The latest point in time to which the database can be restored.default RelationalDatabase.Builder
location
(Consumer<ResourceLocation.Builder> location) The Region name and Availability Zone where the database is located.location
(ResourceLocation location) The Region name and Availability Zone where the database is located.masterDatabaseName
(String masterDatabaseName) The name of the master database created when the Lightsail database resource is created.default RelationalDatabase.Builder
masterEndpoint
(Consumer<RelationalDatabaseEndpoint.Builder> masterEndpoint) The master endpoint for the database.masterEndpoint
(RelationalDatabaseEndpoint masterEndpoint) The master endpoint for the database.masterUsername
(String masterUsername) The master user name of the database.The unique name of the database resource in Lightsail.parameterApplyStatus
(String parameterApplyStatus) The status of parameter updates for the database.pendingMaintenanceActions
(Collection<PendingMaintenanceAction> pendingMaintenanceActions) Describes the pending maintenance actions for the database.pendingMaintenanceActions
(Consumer<PendingMaintenanceAction.Builder>... pendingMaintenanceActions) Describes the pending maintenance actions for the database.pendingMaintenanceActions
(PendingMaintenanceAction... pendingMaintenanceActions) Describes the pending maintenance actions for the database.default RelationalDatabase.Builder
pendingModifiedValues
(Consumer<PendingModifiedRelationalDatabaseValues.Builder> pendingModifiedValues) Describes pending database value modifications.pendingModifiedValues
(PendingModifiedRelationalDatabaseValues pendingModifiedValues) Describes pending database value modifications.preferredBackupWindow
(String preferredBackupWindow) The daily time range during which automated backups are created for the database (for example,16:00-16:30
).preferredMaintenanceWindow
(String preferredMaintenanceWindow) The weekly time range during which system maintenance can occur on the database.publiclyAccessible
(Boolean publiclyAccessible) A Boolean value indicating whether the database is publicly accessible.relationalDatabaseBlueprintId
(String relationalDatabaseBlueprintId) The blueprint ID for the database.relationalDatabaseBundleId
(String relationalDatabaseBundleId) The bundle ID for the database.resourceType
(String resourceType) The Lightsail resource type for the database (for example,RelationalDatabase
).resourceType
(ResourceType resourceType) The Lightsail resource type for the database (for example,RelationalDatabase
).secondaryAvailabilityZone
(String secondaryAvailabilityZone) Describes the secondary Availability Zone of a high availability database.Describes the current state of the database.supportCode
(String supportCode) The support code for the database.tags
(Collection<Tag> tags) The tag keys and optional values for the resource.tags
(Consumer<Tag.Builder>... tags) The tag keys and optional values for the resource.The tag keys and optional values for the resource.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The unique name of the database resource in Lightsail.
- Parameters:
name
- The unique name of the database resource in Lightsail.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
arn
The Amazon Resource Name (ARN) of the database.
- Parameters:
arn
- The Amazon Resource Name (ARN) of the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportCode
The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.
- Parameters:
supportCode
- The support code for the database. Include this code in your email to support when you have questions about a database in Lightsail. This code enables our support team to look up your Lightsail information more easily.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the database was created. Formatted in Unix time.
- Parameters:
createdAt
- The timestamp when the database was created. Formatted in Unix time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The Region name and Availability Zone where the database is located.
- Parameters:
location
- The Region name and Availability Zone where the database is located.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
location
The Region name and Availability Zone where the database is located.
This is a convenience method that creates an instance of theResourceLocation.Builder
avoiding the need to create one manually viaResourceLocation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolocation(ResourceLocation)
.- Parameters:
location
- a consumer that will call methods onResourceLocation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The Lightsail resource type for the database (for example,
RelationalDatabase
).- Parameters:
resourceType
- The Lightsail resource type for the database (for example,RelationalDatabase
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceType
The Lightsail resource type for the database (for example,
RelationalDatabase
).- Parameters:
resourceType
- The Lightsail resource type for the database (for example,RelationalDatabase
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
- Parameters:
tags
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
relationalDatabaseBlueprintId
The blueprint ID for the database. A blueprint describes the major engine version of a database.
- Parameters:
relationalDatabaseBlueprintId
- The blueprint ID for the database. A blueprint describes the major engine version of a database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relationalDatabaseBundleId
The bundle ID for the database. A bundle describes the performance specifications for your database.
- Parameters:
relationalDatabaseBundleId
- The bundle ID for the database. A bundle describes the performance specifications for your database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
masterDatabaseName
The name of the master database created when the Lightsail database resource is created.
- Parameters:
masterDatabaseName
- The name of the master database created when the Lightsail database resource is created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hardware
Describes the hardware of the database.
- Parameters:
hardware
- Describes the hardware of the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hardware
Describes the hardware of the database.
This is a convenience method that creates an instance of theRelationalDatabaseHardware.Builder
avoiding the need to create one manually viaRelationalDatabaseHardware.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohardware(RelationalDatabaseHardware)
.- Parameters:
hardware
- a consumer that will call methods onRelationalDatabaseHardware.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
Describes the current state of the database.
- Parameters:
state
- Describes the current state of the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
secondaryAvailabilityZone
Describes the secondary Availability Zone of a high availability database.
The secondary database is used for failover support of a high availability database.
- Parameters:
secondaryAvailabilityZone
- Describes the secondary Availability Zone of a high availability database.The secondary database is used for failover support of a high availability database.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backupRetentionEnabled
A Boolean value indicating whether automated backup retention is enabled for the database.
- Parameters:
backupRetentionEnabled
- A Boolean value indicating whether automated backup retention is enabled for the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingModifiedValues
RelationalDatabase.Builder pendingModifiedValues(PendingModifiedRelationalDatabaseValues pendingModifiedValues) Describes pending database value modifications.
- Parameters:
pendingModifiedValues
- Describes pending database value modifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingModifiedValues
default RelationalDatabase.Builder pendingModifiedValues(Consumer<PendingModifiedRelationalDatabaseValues.Builder> pendingModifiedValues) Describes pending database value modifications.
This is a convenience method that creates an instance of thePendingModifiedRelationalDatabaseValues.Builder
avoiding the need to create one manually viaPendingModifiedRelationalDatabaseValues.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topendingModifiedValues(PendingModifiedRelationalDatabaseValues)
.- Parameters:
pendingModifiedValues
- a consumer that will call methods onPendingModifiedRelationalDatabaseValues.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
engine
The database software (for example,
MySQL
).- Parameters:
engine
- The database software (for example,MySQL
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
The database engine version (for example,
5.7.23
).- Parameters:
engineVersion
- The database engine version (for example,5.7.23
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestRestorableTime
The latest point in time to which the database can be restored. Formatted in Unix time.
- Parameters:
latestRestorableTime
- The latest point in time to which the database can be restored. Formatted in Unix time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
masterUsername
The master user name of the database.
- Parameters:
masterUsername
- The master user name of the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameterApplyStatus
The status of parameter updates for the database.
- Parameters:
parameterApplyStatus
- The status of parameter updates for the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredBackupWindow
The daily time range during which automated backups are created for the database (for example,
16:00-16:30
).- Parameters:
preferredBackupWindow
- The daily time range during which automated backups are created for the database (for example,16:00-16:30
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preferredMaintenanceWindow
The weekly time range during which system maintenance can occur on the database.
In the format
ddd:hh24:mi-ddd:hh24:mi
. For example,Tue:17:00-Tue:17:30
.- Parameters:
preferredMaintenanceWindow
- The weekly time range during which system maintenance can occur on the database.In the format
ddd:hh24:mi-ddd:hh24:mi
. For example,Tue:17:00-Tue:17:30
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publiclyAccessible
A Boolean value indicating whether the database is publicly accessible.
- Parameters:
publiclyAccessible
- A Boolean value indicating whether the database is publicly accessible.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
masterEndpoint
The master endpoint for the database.
- Parameters:
masterEndpoint
- The master endpoint for the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
masterEndpoint
default RelationalDatabase.Builder masterEndpoint(Consumer<RelationalDatabaseEndpoint.Builder> masterEndpoint) The master endpoint for the database.
This is a convenience method that creates an instance of theRelationalDatabaseEndpoint.Builder
avoiding the need to create one manually viaRelationalDatabaseEndpoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomasterEndpoint(RelationalDatabaseEndpoint)
.- Parameters:
masterEndpoint
- a consumer that will call methods onRelationalDatabaseEndpoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pendingMaintenanceActions
RelationalDatabase.Builder pendingMaintenanceActions(Collection<PendingMaintenanceAction> pendingMaintenanceActions) Describes the pending maintenance actions for the database.
- Parameters:
pendingMaintenanceActions
- Describes the pending maintenance actions for the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingMaintenanceActions
RelationalDatabase.Builder pendingMaintenanceActions(PendingMaintenanceAction... pendingMaintenanceActions) Describes the pending maintenance actions for the database.
- Parameters:
pendingMaintenanceActions
- Describes the pending maintenance actions for the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pendingMaintenanceActions
RelationalDatabase.Builder pendingMaintenanceActions(Consumer<PendingMaintenanceAction.Builder>... pendingMaintenanceActions) Describes the pending maintenance actions for the database.
This is a convenience method that creates an instance of thePendingMaintenanceAction.Builder
avoiding the need to create one manually viaPendingMaintenanceAction.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topendingMaintenanceActions(List<PendingMaintenanceAction>)
.- Parameters:
pendingMaintenanceActions
- a consumer that will call methods onPendingMaintenanceAction.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
caCertificateIdentifier
The certificate associated with the database.
- Parameters:
caCertificateIdentifier
- The certificate associated with the database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-