Class RDSDBRecommendation
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<RDSDBRecommendation.Builder,
RDSDBRecommendation>
Describes an Amazon Aurora and RDS database recommendation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The Amazon Web Services account ID of the Amazon Aurora or RDS database.static RDSDBRecommendation.Builder
builder()
final String
The DB instance class of the current Aurora or RDS DB instance.The performance risk for the current DB instance.final String
The performance risk for the current DB instance.final DBStorageConfiguration
The configuration of the current DB storage.The level of variation in monthly I/O costs for the current DB storage configuration.final String
The level of variation in monthly I/O costs for the current DB storage configuration.final String
The identifier for DB cluster.Describes the effective recommendation preferences for DB instances.final String
engine()
The engine of the DB instance.final String
The database engine version.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 InstanceFindingReasonCodes property.final boolean
For responses, this returns true if the service returned a value for the InstanceRecommendationOptions property.final boolean
For responses, this returns true if the service returned a value for the StorageFindingReasonCodes property.final boolean
For responses, this returns true if the service returned a value for the StorageRecommendationOptions property.final boolean
hasTags()
For responses, this returns true if the service returned a value for the Tags property.final boolean
For responses, this returns true if the service returned a value for the UtilizationMetrics property.final Idle
idle()
This indicates if the DB instance is idle or not.final String
This indicates if the DB instance is idle or not.final RDSInstanceFinding
The finding classification of an Amazon Aurora and RDS DB instance.final String
The finding classification of an Amazon Aurora and RDS DB instance.final List
<RDSInstanceFindingReasonCode> The reason for the finding classification of a DB instance.The reason for the finding classification of a DB instance.An array of objects that describe the recommendation options for the RDS DB instance.final Instant
The timestamp of when the DB instance recommendation was last generated.final Double
The number of days the DB instance utilization metrics were analyzed.final Integer
The promotion tier for the Aurora instance.final String
The ARN of the current Amazon Aurora or RDS database.static Class
<? extends RDSDBRecommendation.Builder> final RDSStorageFinding
The finding classification of Amazon RDS DB instance storage.final String
The finding classification of Amazon RDS DB instance storage.final List
<RDSStorageFindingReasonCode> The reason for the finding classification of RDS DB instance storage.The reason for the finding classification of RDS DB instance storage.An array of objects that describe the recommendation options for DB instance storage.tags()
A list of tags assigned to your DB instance recommendations.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.final List
<RDSDBUtilizationMetric> An array of objects that describe the utilization metrics of the DB instance.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
resourceArn
The ARN of the current Amazon Aurora or RDS database.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
- Returns:
- The ARN of the current Amazon Aurora or RDS database.
The following is the format of the ARN:
arn:aws:rds:{region}:{accountId}:db:{resourceName}
-
accountId
The Amazon Web Services account ID of the Amazon Aurora or RDS database.
- Returns:
- The Amazon Web Services account ID of the Amazon Aurora or RDS database.
-
engine
-
engineVersion
The database engine version.
- Returns:
- The database engine version.
-
promotionTier
The promotion tier for the Aurora instance.
- Returns:
- The promotion tier for the Aurora instance.
-
currentDBInstanceClass
The DB instance class of the current Aurora or RDS DB instance.
- Returns:
- The DB instance class of the current Aurora or RDS DB instance.
-
currentStorageConfiguration
The configuration of the current DB storage.
- Returns:
- The configuration of the current DB storage.
-
dbClusterIdentifier
The identifier for DB cluster.
- Returns:
- The identifier for DB cluster.
-
idle
This indicates if the DB instance is idle or not.
If the service returns an enum value that is not available in the current SDK version,
idle
will returnIdle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromidleAsString()
.- Returns:
- This indicates if the DB instance is idle or not.
- See Also:
-
idleAsString
This indicates if the DB instance is idle or not.
If the service returns an enum value that is not available in the current SDK version,
idle
will returnIdle.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromidleAsString()
.- Returns:
- This indicates if the DB instance is idle or not.
- See Also:
-
instanceFinding
The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
If the service returns an enum value that is not available in the current SDK version,
instanceFinding
will returnRDSInstanceFinding.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceFindingAsString()
.- Returns:
- The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- See Also:
-
instanceFindingAsString
The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
If the service returns an enum value that is not available in the current SDK version,
instanceFinding
will returnRDSInstanceFinding.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frominstanceFindingAsString()
.- Returns:
- The finding classification of an Amazon Aurora and RDS DB instance.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- See Also:
-
storageFinding
The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
If the service returns an enum value that is not available in the current SDK version,
storageFinding
will returnRDSStorageFinding.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstorageFindingAsString()
.- Returns:
- The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- See Also:
-
storageFindingAsString
The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
If the service returns an enum value that is not available in the current SDK version,
storageFinding
will returnRDSStorageFinding.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstorageFindingAsString()
.- Returns:
- The finding classification of Amazon RDS DB instance storage.
For more information about finding classifications, see Finding classifications for Aurora and RDS databases in the Compute Optimizer User Guide.
- See Also:
-
instanceFindingReasonCodes
The reason for the finding classification of a DB instance.
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
hasInstanceFindingReasonCodes()
method.- Returns:
- The reason for the finding classification of a DB instance.
-
hasInstanceFindingReasonCodes
public final boolean hasInstanceFindingReasonCodes()For responses, this returns true if the service returned a value for the InstanceFindingReasonCodes 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. -
instanceFindingReasonCodesAsStrings
The reason for the finding classification of a DB instance.
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
hasInstanceFindingReasonCodes()
method.- Returns:
- The reason for the finding classification of a DB instance.
-
currentInstancePerformanceRisk
The performance risk for the current DB instance.
If the service returns an enum value that is not available in the current SDK version,
currentInstancePerformanceRisk
will returnRDSCurrentInstancePerformanceRisk.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentInstancePerformanceRiskAsString()
.- Returns:
- The performance risk for the current DB instance.
- See Also:
-
currentInstancePerformanceRiskAsString
The performance risk for the current DB instance.
If the service returns an enum value that is not available in the current SDK version,
currentInstancePerformanceRisk
will returnRDSCurrentInstancePerformanceRisk.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentInstancePerformanceRiskAsString()
.- Returns:
- The performance risk for the current DB instance.
- See Also:
-
currentStorageEstimatedMonthlyVolumeIOPsCostVariation
public final RDSEstimatedMonthlyVolumeIOPsCostVariation currentStorageEstimatedMonthlyVolumeIOPsCostVariation()The level of variation in monthly I/O costs for the current DB storage configuration.
If the service returns an enum value that is not available in the current SDK version,
currentStorageEstimatedMonthlyVolumeIOPsCostVariation
will returnRDSEstimatedMonthlyVolumeIOPsCostVariation.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentStorageEstimatedMonthlyVolumeIOPsCostVariationAsString()
.- Returns:
- The level of variation in monthly I/O costs for the current DB storage configuration.
- See Also:
-
currentStorageEstimatedMonthlyVolumeIOPsCostVariationAsString
The level of variation in monthly I/O costs for the current DB storage configuration.
If the service returns an enum value that is not available in the current SDK version,
currentStorageEstimatedMonthlyVolumeIOPsCostVariation
will returnRDSEstimatedMonthlyVolumeIOPsCostVariation.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcurrentStorageEstimatedMonthlyVolumeIOPsCostVariationAsString()
.- Returns:
- The level of variation in monthly I/O costs for the current DB storage configuration.
- See Also:
-
storageFindingReasonCodes
The reason for the finding classification of RDS DB instance storage.
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
hasStorageFindingReasonCodes()
method.- Returns:
- The reason for the finding classification of RDS DB instance storage.
-
hasStorageFindingReasonCodes
public final boolean hasStorageFindingReasonCodes()For responses, this returns true if the service returned a value for the StorageFindingReasonCodes 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. -
storageFindingReasonCodesAsStrings
The reason for the finding classification of RDS DB instance storage.
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
hasStorageFindingReasonCodes()
method.- Returns:
- The reason for the finding classification of RDS DB instance storage.
-
hasInstanceRecommendationOptions
public final boolean hasInstanceRecommendationOptions()For responses, this returns true if the service returned a value for the InstanceRecommendationOptions 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. -
instanceRecommendationOptions
An array of objects that describe the recommendation options for the RDS DB instance.
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
hasInstanceRecommendationOptions()
method.- Returns:
- An array of objects that describe the recommendation options for the RDS DB instance.
-
hasStorageRecommendationOptions
public final boolean hasStorageRecommendationOptions()For responses, this returns true if the service returned a value for the StorageRecommendationOptions 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. -
storageRecommendationOptions
An array of objects that describe the recommendation options for DB instance storage.
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
hasStorageRecommendationOptions()
method.- Returns:
- An array of objects that describe the recommendation options for DB instance storage.
-
hasUtilizationMetrics
public final boolean hasUtilizationMetrics()For responses, this returns true if the service returned a value for the UtilizationMetrics 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. -
utilizationMetrics
An array of objects that describe the utilization metrics of the DB instance.
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
hasUtilizationMetrics()
method.- Returns:
- An array of objects that describe the utilization metrics of the DB instance.
-
effectiveRecommendationPreferences
Describes the effective recommendation preferences for DB instances.
- Returns:
- Describes the effective recommendation preferences for DB instances.
-
lookbackPeriodInDays
The number of days the DB instance utilization metrics were analyzed.
- Returns:
- The number of days the DB instance utilization metrics were analyzed.
-
lastRefreshTimestamp
The timestamp of when the DB instance recommendation was last generated.
- Returns:
- The timestamp of when the DB instance recommendation was last generated.
-
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
A list of tags assigned to your DB instance recommendations.
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:
- A list of tags assigned to your DB instance recommendations.
-
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<RDSDBRecommendation.Builder,
RDSDBRecommendation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
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
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
-