Class ResourceDetails
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceDetails.Builder,ResourceDetails>
Contains detailed information about the specified resource.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceDetails.Builderbuilder()final ComputeSavingsPlansThe Compute Savings Plans recommendation details.final EbsVolumeThe Amazon Elastic Block Store volume recommendation details.final Ec2AutoScalingGroupThe EC2 Auto Scaling group recommendation details.final Ec2InstanceThe EC2 instance recommendation details.final Ec2InstanceSavingsPlansThe EC2 instance Savings Plans recommendation details.final Ec2ReservedInstancesThe EC2 reserved instances recommendation details.final EcsServiceThe ECS service recommendation details.The ElastiCache reserved instances recommendation details.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static ResourceDetailsfromComputeSavingsPlans(Consumer<ComputeSavingsPlans.Builder> computeSavingsPlans) Create an instance of this class withcomputeSavingsPlans()initialized to the given value.static ResourceDetailsfromComputeSavingsPlans(ComputeSavingsPlans computeSavingsPlans) Create an instance of this class withcomputeSavingsPlans()initialized to the given value.static ResourceDetailsfromEbsVolume(Consumer<EbsVolume.Builder> ebsVolume) Create an instance of this class withebsVolume()initialized to the given value.static ResourceDetailsfromEbsVolume(EbsVolume ebsVolume) Create an instance of this class withebsVolume()initialized to the given value.static ResourceDetailsfromEc2AutoScalingGroup(Consumer<Ec2AutoScalingGroup.Builder> ec2AutoScalingGroup) Create an instance of this class withec2AutoScalingGroup()initialized to the given value.static ResourceDetailsfromEc2AutoScalingGroup(Ec2AutoScalingGroup ec2AutoScalingGroup) Create an instance of this class withec2AutoScalingGroup()initialized to the given value.static ResourceDetailsfromEc2Instance(Consumer<Ec2Instance.Builder> ec2Instance) Create an instance of this class withec2Instance()initialized to the given value.static ResourceDetailsfromEc2Instance(Ec2Instance ec2Instance) Create an instance of this class withec2Instance()initialized to the given value.static ResourceDetailsfromEc2InstanceSavingsPlans(Consumer<Ec2InstanceSavingsPlans.Builder> ec2InstanceSavingsPlans) Create an instance of this class withec2InstanceSavingsPlans()initialized to the given value.static ResourceDetailsfromEc2InstanceSavingsPlans(Ec2InstanceSavingsPlans ec2InstanceSavingsPlans) Create an instance of this class withec2InstanceSavingsPlans()initialized to the given value.static ResourceDetailsfromEc2ReservedInstances(Consumer<Ec2ReservedInstances.Builder> ec2ReservedInstances) Create an instance of this class withec2ReservedInstances()initialized to the given value.static ResourceDetailsfromEc2ReservedInstances(Ec2ReservedInstances ec2ReservedInstances) Create an instance of this class withec2ReservedInstances()initialized to the given value.static ResourceDetailsfromEcsService(Consumer<EcsService.Builder> ecsService) Create an instance of this class withecsService()initialized to the given value.static ResourceDetailsfromEcsService(EcsService ecsService) Create an instance of this class withecsService()initialized to the given value.static ResourceDetailsfromElastiCacheReservedInstances(Consumer<ElastiCacheReservedInstances.Builder> elastiCacheReservedInstances) Create an instance of this class withelastiCacheReservedInstances()initialized to the given value.static ResourceDetailsfromElastiCacheReservedInstances(ElastiCacheReservedInstances elastiCacheReservedInstances) Create an instance of this class withelastiCacheReservedInstances()initialized to the given value.static ResourceDetailsfromLambdaFunction(Consumer<LambdaFunction.Builder> lambdaFunction) Create an instance of this class withlambdaFunction()initialized to the given value.static ResourceDetailsfromLambdaFunction(LambdaFunction lambdaFunction) Create an instance of this class withlambdaFunction()initialized to the given value.static ResourceDetailsfromOpenSearchReservedInstances(Consumer<OpenSearchReservedInstances.Builder> openSearchReservedInstances) Create an instance of this class withopenSearchReservedInstances()initialized to the given value.static ResourceDetailsfromOpenSearchReservedInstances(OpenSearchReservedInstances openSearchReservedInstances) Create an instance of this class withopenSearchReservedInstances()initialized to the given value.static ResourceDetailsfromRdsDbInstance(Consumer<RdsDbInstance.Builder> rdsDbInstance) Create an instance of this class withrdsDbInstance()initialized to the given value.static ResourceDetailsfromRdsDbInstance(RdsDbInstance rdsDbInstance) Create an instance of this class withrdsDbInstance()initialized to the given value.static ResourceDetailsfromRdsDbInstanceStorage(Consumer<RdsDbInstanceStorage.Builder> rdsDbInstanceStorage) Create an instance of this class withrdsDbInstanceStorage()initialized to the given value.static ResourceDetailsfromRdsDbInstanceStorage(RdsDbInstanceStorage rdsDbInstanceStorage) Create an instance of this class withrdsDbInstanceStorage()initialized to the given value.static ResourceDetailsfromRdsReservedInstances(Consumer<RdsReservedInstances.Builder> rdsReservedInstances) Create an instance of this class withrdsReservedInstances()initialized to the given value.static ResourceDetailsfromRdsReservedInstances(RdsReservedInstances rdsReservedInstances) Create an instance of this class withrdsReservedInstances()initialized to the given value.static ResourceDetailsfromRedshiftReservedInstances(Consumer<RedshiftReservedInstances.Builder> redshiftReservedInstances) Create an instance of this class withredshiftReservedInstances()initialized to the given value.static ResourceDetailsfromRedshiftReservedInstances(RedshiftReservedInstances redshiftReservedInstances) Create an instance of this class withredshiftReservedInstances()initialized to the given value.static ResourceDetailsfromSageMakerSavingsPlans(Consumer<SageMakerSavingsPlans.Builder> sageMakerSavingsPlans) Create an instance of this class withsageMakerSavingsPlans()initialized to the given value.static ResourceDetailsfromSageMakerSavingsPlans(SageMakerSavingsPlans sageMakerSavingsPlans) Create an instance of this class withsageMakerSavingsPlans()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LambdaFunctionThe Lambda function recommendation details.The OpenSearch reserved instances recommendation details.final RdsDbInstanceThe DB instance recommendation details.final RdsDbInstanceStorageThe DB instance storage recommendation details.final RdsReservedInstancesThe RDS reserved instances recommendation details.The Redshift reserved instances recommendation details.final SageMakerSavingsPlansThe SageMaker Savings Plans recommendation details.static Class<? extends ResourceDetails.Builder> 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.type()Retrieve an enum value representing which member of this object is populated.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
lambdaFunction
The Lambda function recommendation details.
- Returns:
- The Lambda function recommendation details.
-
ecsService
The ECS service recommendation details.
- Returns:
- The ECS service recommendation details.
-
ec2Instance
The EC2 instance recommendation details.
- Returns:
- The EC2 instance recommendation details.
-
ebsVolume
The Amazon Elastic Block Store volume recommendation details.
- Returns:
- The Amazon Elastic Block Store volume recommendation details.
-
ec2AutoScalingGroup
The EC2 Auto Scaling group recommendation details.
- Returns:
- The EC2 Auto Scaling group recommendation details.
-
ec2ReservedInstances
The EC2 reserved instances recommendation details.
- Returns:
- The EC2 reserved instances recommendation details.
-
rdsReservedInstances
The RDS reserved instances recommendation details.
- Returns:
- The RDS reserved instances recommendation details.
-
elastiCacheReservedInstances
The ElastiCache reserved instances recommendation details.
- Returns:
- The ElastiCache reserved instances recommendation details.
-
openSearchReservedInstances
The OpenSearch reserved instances recommendation details.
- Returns:
- The OpenSearch reserved instances recommendation details.
-
redshiftReservedInstances
The Redshift reserved instances recommendation details.
- Returns:
- The Redshift reserved instances recommendation details.
-
ec2InstanceSavingsPlans
The EC2 instance Savings Plans recommendation details.
- Returns:
- The EC2 instance Savings Plans recommendation details.
-
computeSavingsPlans
The Compute Savings Plans recommendation details.
- Returns:
- The Compute Savings Plans recommendation details.
-
sageMakerSavingsPlans
The SageMaker Savings Plans recommendation details.
- Returns:
- The SageMaker Savings Plans recommendation details.
-
rdsDbInstance
The DB instance recommendation details.
- Returns:
- The DB instance recommendation details.
-
rdsDbInstanceStorage
The DB instance storage recommendation details.
- Returns:
- The DB instance storage recommendation details.
-
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<ResourceDetails.Builder,ResourceDetails> - 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
-
fromLambdaFunction
Create an instance of this class withlambdaFunction()initialized to the given value.The Lambda function recommendation details.
- Parameters:
lambdaFunction- The Lambda function recommendation details.
-
fromLambdaFunction
Create an instance of this class withlambdaFunction()initialized to the given value.The Lambda function recommendation details.
- Parameters:
lambdaFunction- The Lambda function recommendation details.
-
fromEcsService
Create an instance of this class withecsService()initialized to the given value.The ECS service recommendation details.
- Parameters:
ecsService- The ECS service recommendation details.
-
fromEcsService
Create an instance of this class withecsService()initialized to the given value.The ECS service recommendation details.
- Parameters:
ecsService- The ECS service recommendation details.
-
fromEc2Instance
Create an instance of this class withec2Instance()initialized to the given value.The EC2 instance recommendation details.
- Parameters:
ec2Instance- The EC2 instance recommendation details.
-
fromEc2Instance
Create an instance of this class withec2Instance()initialized to the given value.The EC2 instance recommendation details.
- Parameters:
ec2Instance- The EC2 instance recommendation details.
-
fromEbsVolume
Create an instance of this class withebsVolume()initialized to the given value.The Amazon Elastic Block Store volume recommendation details.
- Parameters:
ebsVolume- The Amazon Elastic Block Store volume recommendation details.
-
fromEbsVolume
Create an instance of this class withebsVolume()initialized to the given value.The Amazon Elastic Block Store volume recommendation details.
- Parameters:
ebsVolume- The Amazon Elastic Block Store volume recommendation details.
-
fromEc2AutoScalingGroup
Create an instance of this class withec2AutoScalingGroup()initialized to the given value.The EC2 Auto Scaling group recommendation details.
- Parameters:
ec2AutoScalingGroup- The EC2 Auto Scaling group recommendation details.
-
fromEc2AutoScalingGroup
public static ResourceDetails fromEc2AutoScalingGroup(Consumer<Ec2AutoScalingGroup.Builder> ec2AutoScalingGroup) Create an instance of this class withec2AutoScalingGroup()initialized to the given value.The EC2 Auto Scaling group recommendation details.
- Parameters:
ec2AutoScalingGroup- The EC2 Auto Scaling group recommendation details.
-
fromEc2ReservedInstances
Create an instance of this class withec2ReservedInstances()initialized to the given value.The EC2 reserved instances recommendation details.
- Parameters:
ec2ReservedInstances- The EC2 reserved instances recommendation details.
-
fromEc2ReservedInstances
public static ResourceDetails fromEc2ReservedInstances(Consumer<Ec2ReservedInstances.Builder> ec2ReservedInstances) Create an instance of this class withec2ReservedInstances()initialized to the given value.The EC2 reserved instances recommendation details.
- Parameters:
ec2ReservedInstances- The EC2 reserved instances recommendation details.
-
fromRdsReservedInstances
Create an instance of this class withrdsReservedInstances()initialized to the given value.The RDS reserved instances recommendation details.
- Parameters:
rdsReservedInstances- The RDS reserved instances recommendation details.
-
fromRdsReservedInstances
public static ResourceDetails fromRdsReservedInstances(Consumer<RdsReservedInstances.Builder> rdsReservedInstances) Create an instance of this class withrdsReservedInstances()initialized to the given value.The RDS reserved instances recommendation details.
- Parameters:
rdsReservedInstances- The RDS reserved instances recommendation details.
-
fromElastiCacheReservedInstances
public static ResourceDetails fromElastiCacheReservedInstances(ElastiCacheReservedInstances elastiCacheReservedInstances) Create an instance of this class withelastiCacheReservedInstances()initialized to the given value.The ElastiCache reserved instances recommendation details.
- Parameters:
elastiCacheReservedInstances- The ElastiCache reserved instances recommendation details.
-
fromElastiCacheReservedInstances
public static ResourceDetails fromElastiCacheReservedInstances(Consumer<ElastiCacheReservedInstances.Builder> elastiCacheReservedInstances) Create an instance of this class withelastiCacheReservedInstances()initialized to the given value.The ElastiCache reserved instances recommendation details.
- Parameters:
elastiCacheReservedInstances- The ElastiCache reserved instances recommendation details.
-
fromOpenSearchReservedInstances
public static ResourceDetails fromOpenSearchReservedInstances(OpenSearchReservedInstances openSearchReservedInstances) Create an instance of this class withopenSearchReservedInstances()initialized to the given value.The OpenSearch reserved instances recommendation details.
- Parameters:
openSearchReservedInstances- The OpenSearch reserved instances recommendation details.
-
fromOpenSearchReservedInstances
public static ResourceDetails fromOpenSearchReservedInstances(Consumer<OpenSearchReservedInstances.Builder> openSearchReservedInstances) Create an instance of this class withopenSearchReservedInstances()initialized to the given value.The OpenSearch reserved instances recommendation details.
- Parameters:
openSearchReservedInstances- The OpenSearch reserved instances recommendation details.
-
fromRedshiftReservedInstances
public static ResourceDetails fromRedshiftReservedInstances(RedshiftReservedInstances redshiftReservedInstances) Create an instance of this class withredshiftReservedInstances()initialized to the given value.The Redshift reserved instances recommendation details.
- Parameters:
redshiftReservedInstances- The Redshift reserved instances recommendation details.
-
fromRedshiftReservedInstances
public static ResourceDetails fromRedshiftReservedInstances(Consumer<RedshiftReservedInstances.Builder> redshiftReservedInstances) Create an instance of this class withredshiftReservedInstances()initialized to the given value.The Redshift reserved instances recommendation details.
- Parameters:
redshiftReservedInstances- The Redshift reserved instances recommendation details.
-
fromEc2InstanceSavingsPlans
public static ResourceDetails fromEc2InstanceSavingsPlans(Ec2InstanceSavingsPlans ec2InstanceSavingsPlans) Create an instance of this class withec2InstanceSavingsPlans()initialized to the given value.The EC2 instance Savings Plans recommendation details.
- Parameters:
ec2InstanceSavingsPlans- The EC2 instance Savings Plans recommendation details.
-
fromEc2InstanceSavingsPlans
public static ResourceDetails fromEc2InstanceSavingsPlans(Consumer<Ec2InstanceSavingsPlans.Builder> ec2InstanceSavingsPlans) Create an instance of this class withec2InstanceSavingsPlans()initialized to the given value.The EC2 instance Savings Plans recommendation details.
- Parameters:
ec2InstanceSavingsPlans- The EC2 instance Savings Plans recommendation details.
-
fromComputeSavingsPlans
Create an instance of this class withcomputeSavingsPlans()initialized to the given value.The Compute Savings Plans recommendation details.
- Parameters:
computeSavingsPlans- The Compute Savings Plans recommendation details.
-
fromComputeSavingsPlans
public static ResourceDetails fromComputeSavingsPlans(Consumer<ComputeSavingsPlans.Builder> computeSavingsPlans) Create an instance of this class withcomputeSavingsPlans()initialized to the given value.The Compute Savings Plans recommendation details.
- Parameters:
computeSavingsPlans- The Compute Savings Plans recommendation details.
-
fromSageMakerSavingsPlans
public static ResourceDetails fromSageMakerSavingsPlans(SageMakerSavingsPlans sageMakerSavingsPlans) Create an instance of this class withsageMakerSavingsPlans()initialized to the given value.The SageMaker Savings Plans recommendation details.
- Parameters:
sageMakerSavingsPlans- The SageMaker Savings Plans recommendation details.
-
fromSageMakerSavingsPlans
public static ResourceDetails fromSageMakerSavingsPlans(Consumer<SageMakerSavingsPlans.Builder> sageMakerSavingsPlans) Create an instance of this class withsageMakerSavingsPlans()initialized to the given value.The SageMaker Savings Plans recommendation details.
- Parameters:
sageMakerSavingsPlans- The SageMaker Savings Plans recommendation details.
-
fromRdsDbInstance
Create an instance of this class withrdsDbInstance()initialized to the given value.The DB instance recommendation details.
- Parameters:
rdsDbInstance- The DB instance recommendation details.
-
fromRdsDbInstance
Create an instance of this class withrdsDbInstance()initialized to the given value.The DB instance recommendation details.
- Parameters:
rdsDbInstance- The DB instance recommendation details.
-
fromRdsDbInstanceStorage
Create an instance of this class withrdsDbInstanceStorage()initialized to the given value.The DB instance storage recommendation details.
- Parameters:
rdsDbInstanceStorage- The DB instance storage recommendation details.
-
fromRdsDbInstanceStorage
public static ResourceDetails fromRdsDbInstanceStorage(Consumer<RdsDbInstanceStorage.Builder> rdsDbInstanceStorage) Create an instance of this class withrdsDbInstanceStorage()initialized to the given value.The DB instance storage recommendation details.
- Parameters:
rdsDbInstanceStorage- The DB instance storage recommendation details.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beResourceDetails.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beResourceDetails.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-