Class RelationalDatabase
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RelationalDatabase.Builder,RelationalDatabase>
Describes a database.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringarn()The Amazon Resource Name (ARN) of the database.final BooleanA Boolean value indicating whether automated backup retention is enabled for the database.static RelationalDatabase.Builderbuilder()final StringThe certificate associated with the database.final InstantThe timestamp when the database was created.final Stringengine()The database software (for example,MySQL).final StringThe database engine version (for example,5.7.23).final booleanfinal booleanequalsBySdkFields(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) hardware()Describes the hardware of the database.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the PendingMaintenanceActions property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final InstantThe latest point in time to which the database can be restored.final ResourceLocationlocation()The Region name and Availability Zone where the database is located.final StringThe name of the master database created when the Lightsail database resource is created.The master endpoint for the database.final StringThe master user name of the database.final Stringname()The unique name of the database resource in Lightsail.final StringThe status of parameter updates for the database.final List<PendingMaintenanceAction> Describes the pending maintenance actions for the database.Describes pending database value modifications.final StringThe daily time range during which automated backups are created for the database (for example,16:00-16:30).final StringThe weekly time range during which system maintenance can occur on the database.final BooleanA Boolean value indicating whether the database is publicly accessible.final StringThe blueprint ID for the database.final StringThe bundle ID for the database.final ResourceTypeThe Lightsail resource type for the database (for example,RelationalDatabase).final StringThe Lightsail resource type for the database (for example,RelationalDatabase).final StringDescribes the secondary Availability Zone of a high availability database.static Class<? extends RelationalDatabase.Builder> final Stringstate()Describes the current state of the database.final StringThe support code for the database.tags()The tag keys and optional values for the resource.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
The unique name of the database resource in Lightsail.
- Returns:
- The unique name of the database resource in Lightsail.
-
arn
The Amazon Resource Name (ARN) of the database.
- Returns:
- The Amazon Resource Name (ARN) of the database.
-
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:
- 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.
-
createdAt
The timestamp when the database was created. Formatted in Unix time.
- Returns:
- The timestamp when the database was created. Formatted in Unix time.
-
location
The Region name and Availability Zone where the database is located.
- Returns:
- The Region name and Availability Zone where the database is located.
-
resourceType
The Lightsail resource type for the database (for example,
RelationalDatabase).If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The Lightsail resource type for the database (for example,
RelationalDatabase). - See Also:
-
resourceTypeAsString
The Lightsail resource type for the database (for example,
RelationalDatabase).If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The Lightsail resource type for the database (for example,
RelationalDatabase). - See Also:
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags 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. -
tags
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
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
hasTags()method.- Returns:
- The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
-
relationalDatabaseBlueprintId
The blueprint ID for the database. A blueprint describes the major engine version of a database.
- Returns:
- The blueprint ID for the database. A blueprint describes the major engine version of a database.
-
relationalDatabaseBundleId
The bundle ID for the database. A bundle describes the performance specifications for your database.
- Returns:
- The bundle ID for the database. A bundle describes the performance specifications for your database.
-
masterDatabaseName
The name of the master database created when the Lightsail database resource is created.
- Returns:
- The name of the master database created when the Lightsail database resource is created.
-
hardware
Describes the hardware of the database.
- Returns:
- Describes the hardware of the database.
-
state
Describes the current state of the database.
- Returns:
- Describes the current state of the database.
-
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:
- Describes the secondary Availability Zone of a high availability database.
The secondary database is used for failover support of a high availability database.
-
backupRetentionEnabled
A Boolean value indicating whether automated backup retention is enabled for the database.
- Returns:
- A Boolean value indicating whether automated backup retention is enabled for the database.
-
pendingModifiedValues
Describes pending database value modifications.
- Returns:
- Describes pending database value modifications.
-
engine
The database software (for example,
MySQL).- Returns:
- The database software (for example,
MySQL).
-
engineVersion
The database engine version (for example,
5.7.23).- Returns:
- The database engine version (for example,
5.7.23).
-
latestRestorableTime
The latest point in time to which the database can be restored. Formatted in Unix time.
- Returns:
- The latest point in time to which the database can be restored. Formatted in Unix time.
-
masterUsername
The master user name of the database.
- Returns:
- The master user name of the database.
-
parameterApplyStatus
The status of parameter updates for the database.
- Returns:
- The status of parameter updates for the database.
-
preferredBackupWindow
The daily time range during which automated backups are created for the database (for example,
16:00-16:30).- Returns:
- The daily time range during which automated backups are created for the database (for example,
16:00-16:30).
-
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:
- 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.
-
publiclyAccessible
A Boolean value indicating whether the database is publicly accessible.
- Returns:
- A Boolean value indicating whether the database is publicly accessible.
-
masterEndpoint
The master endpoint for the database.
- Returns:
- The master endpoint for the database.
-
hasPendingMaintenanceActions
public final boolean hasPendingMaintenanceActions()For responses, this returns true if the service returned a value for the PendingMaintenanceActions 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. -
pendingMaintenanceActions
Describes the pending maintenance actions for the database.
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
hasPendingMaintenanceActions()method.- Returns:
- Describes the pending maintenance actions for the database.
-
caCertificateIdentifier
The certificate associated with the database.
- Returns:
- The certificate associated with the database.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RelationalDatabase.Builder,RelationalDatabase> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin 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
-
getValueForField
-
sdkFields
-