Class ResourceDetails

java.lang.Object
software.amazon.awssdk.services.costoptimizationhub.model.ResourceDetails
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ResourceDetails.Builder,ResourceDetails>

@Generated("software.amazon.awssdk:codegen") public final class ResourceDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceDetails.Builder,ResourceDetails>

Contains detailed information about the specified resource.

See Also:
  • Method Details

    • lambdaFunction

      public final LambdaFunction lambdaFunction()

      The Lambda function recommendation details.

      Returns:
      The Lambda function recommendation details.
    • ecsService

      public final EcsService ecsService()

      The ECS service recommendation details.

      Returns:
      The ECS service recommendation details.
    • ec2Instance

      public final Ec2Instance ec2Instance()

      The EC2 instance recommendation details.

      Returns:
      The EC2 instance recommendation details.
    • ebsVolume

      public final EbsVolume ebsVolume()

      The Amazon Elastic Block Store volume recommendation details.

      Returns:
      The Amazon Elastic Block Store volume recommendation details.
    • ec2AutoScalingGroup

      public final Ec2AutoScalingGroup ec2AutoScalingGroup()

      The EC2 Auto Scaling group recommendation details.

      Returns:
      The EC2 Auto Scaling group recommendation details.
    • ec2ReservedInstances

      public final Ec2ReservedInstances ec2ReservedInstances()

      The EC2 reserved instances recommendation details.

      Returns:
      The EC2 reserved instances recommendation details.
    • rdsReservedInstances

      public final RdsReservedInstances rdsReservedInstances()

      The RDS reserved instances recommendation details.

      Returns:
      The RDS reserved instances recommendation details.
    • elastiCacheReservedInstances

      public final ElastiCacheReservedInstances elastiCacheReservedInstances()

      The ElastiCache reserved instances recommendation details.

      Returns:
      The ElastiCache reserved instances recommendation details.
    • openSearchReservedInstances

      public final OpenSearchReservedInstances openSearchReservedInstances()

      The OpenSearch reserved instances recommendation details.

      Returns:
      The OpenSearch reserved instances recommendation details.
    • redshiftReservedInstances

      public final RedshiftReservedInstances redshiftReservedInstances()

      The Redshift reserved instances recommendation details.

      Returns:
      The Redshift reserved instances recommendation details.
    • ec2InstanceSavingsPlans

      public final Ec2InstanceSavingsPlans ec2InstanceSavingsPlans()

      The EC2 instance Savings Plans recommendation details.

      Returns:
      The EC2 instance Savings Plans recommendation details.
    • computeSavingsPlans

      public final ComputeSavingsPlans computeSavingsPlans()

      The Compute Savings Plans recommendation details.

      Returns:
      The Compute Savings Plans recommendation details.
    • sageMakerSavingsPlans

      public final SageMakerSavingsPlans sageMakerSavingsPlans()

      The SageMaker AI Savings Plans recommendation details.

      Returns:
      The SageMaker AI Savings Plans recommendation details.
    • rdsDbInstance

      public final RdsDbInstance rdsDbInstance()

      The DB instance recommendation details.

      Returns:
      The DB instance recommendation details.
    • rdsDbInstanceStorage

      public final RdsDbInstanceStorage rdsDbInstanceStorage()

      The DB instance storage recommendation details.

      Returns:
      The DB instance storage recommendation details.
    • auroraDbClusterStorage

      public final AuroraDbClusterStorage auroraDbClusterStorage()

      The Aurora DB cluster storage recommendation details.

      Returns:
      The Aurora DB cluster storage recommendation details.
    • dynamoDbReservedCapacity

      public final DynamoDbReservedCapacity dynamoDbReservedCapacity()

      The DynamoDB reserved capacity recommendation details.

      Returns:
      The DynamoDB reserved capacity recommendation details.
    • memoryDbReservedInstances

      public final MemoryDbReservedInstances memoryDbReservedInstances()

      The MemoryDB reserved instances recommendation details.

      Returns:
      The MemoryDB reserved instances recommendation details.
    • toBuilder

      public ResourceDetails.Builder 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 interface ToCopyableBuilder<ResourceDetails.Builder,ResourceDetails>
      Returns:
      a builder for type T
    • builder

      public static ResourceDetails.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ResourceDetails.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      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 an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • fromLambdaFunction

      public static ResourceDetails fromLambdaFunction(LambdaFunction lambdaFunction)
      Create an instance of this class with lambdaFunction() initialized to the given value.

      The Lambda function recommendation details.

      Parameters:
      lambdaFunction - The Lambda function recommendation details.
    • fromLambdaFunction

      public static ResourceDetails fromLambdaFunction(Consumer<LambdaFunction.Builder> lambdaFunction)
      Create an instance of this class with lambdaFunction() initialized to the given value.

      The Lambda function recommendation details.

      Parameters:
      lambdaFunction - The Lambda function recommendation details.
    • fromEcsService

      public static ResourceDetails fromEcsService(EcsService ecsService)
      Create an instance of this class with ecsService() initialized to the given value.

      The ECS service recommendation details.

      Parameters:
      ecsService - The ECS service recommendation details.
    • fromEcsService

      public static ResourceDetails fromEcsService(Consumer<EcsService.Builder> ecsService)
      Create an instance of this class with ecsService() initialized to the given value.

      The ECS service recommendation details.

      Parameters:
      ecsService - The ECS service recommendation details.
    • fromEc2Instance

      public static ResourceDetails fromEc2Instance(Ec2Instance ec2Instance)
      Create an instance of this class with ec2Instance() initialized to the given value.

      The EC2 instance recommendation details.

      Parameters:
      ec2Instance - The EC2 instance recommendation details.
    • fromEc2Instance

      public static ResourceDetails fromEc2Instance(Consumer<Ec2Instance.Builder> ec2Instance)
      Create an instance of this class with ec2Instance() initialized to the given value.

      The EC2 instance recommendation details.

      Parameters:
      ec2Instance - The EC2 instance recommendation details.
    • fromEbsVolume

      public static ResourceDetails fromEbsVolume(EbsVolume ebsVolume)
      Create an instance of this class with ebsVolume() initialized to the given value.

      The Amazon Elastic Block Store volume recommendation details.

      Parameters:
      ebsVolume - The Amazon Elastic Block Store volume recommendation details.
    • fromEbsVolume

      public static ResourceDetails fromEbsVolume(Consumer<EbsVolume.Builder> ebsVolume)
      Create an instance of this class with ebsVolume() initialized to the given value.

      The Amazon Elastic Block Store volume recommendation details.

      Parameters:
      ebsVolume - The Amazon Elastic Block Store volume recommendation details.
    • fromEc2AutoScalingGroup

      public static ResourceDetails fromEc2AutoScalingGroup(Ec2AutoScalingGroup ec2AutoScalingGroup)
      Create an instance of this class with ec2AutoScalingGroup() 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 with ec2AutoScalingGroup() initialized to the given value.

      The EC2 Auto Scaling group recommendation details.

      Parameters:
      ec2AutoScalingGroup - The EC2 Auto Scaling group recommendation details.
    • fromEc2ReservedInstances

      public static ResourceDetails fromEc2ReservedInstances(Ec2ReservedInstances ec2ReservedInstances)
      Create an instance of this class with ec2ReservedInstances() 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 with ec2ReservedInstances() initialized to the given value.

      The EC2 reserved instances recommendation details.

      Parameters:
      ec2ReservedInstances - The EC2 reserved instances recommendation details.
    • fromRdsReservedInstances

      public static ResourceDetails fromRdsReservedInstances(RdsReservedInstances rdsReservedInstances)
      Create an instance of this class with rdsReservedInstances() 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 with rdsReservedInstances() 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 with elastiCacheReservedInstances() 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 with elastiCacheReservedInstances() 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 with openSearchReservedInstances() 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 with openSearchReservedInstances() 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 with redshiftReservedInstances() 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 with redshiftReservedInstances() 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 with ec2InstanceSavingsPlans() 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 with ec2InstanceSavingsPlans() initialized to the given value.

      The EC2 instance Savings Plans recommendation details.

      Parameters:
      ec2InstanceSavingsPlans - The EC2 instance Savings Plans recommendation details.
    • fromComputeSavingsPlans

      public static ResourceDetails fromComputeSavingsPlans(ComputeSavingsPlans computeSavingsPlans)
      Create an instance of this class with computeSavingsPlans() 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 with computeSavingsPlans() 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 with sageMakerSavingsPlans() initialized to the given value.

      The SageMaker AI Savings Plans recommendation details.

      Parameters:
      sageMakerSavingsPlans - The SageMaker AI Savings Plans recommendation details.
    • fromSageMakerSavingsPlans

      public static ResourceDetails fromSageMakerSavingsPlans(Consumer<SageMakerSavingsPlans.Builder> sageMakerSavingsPlans)
      Create an instance of this class with sageMakerSavingsPlans() initialized to the given value.

      The SageMaker AI Savings Plans recommendation details.

      Parameters:
      sageMakerSavingsPlans - The SageMaker AI Savings Plans recommendation details.
    • fromRdsDbInstance

      public static ResourceDetails fromRdsDbInstance(RdsDbInstance rdsDbInstance)
      Create an instance of this class with rdsDbInstance() initialized to the given value.

      The DB instance recommendation details.

      Parameters:
      rdsDbInstance - The DB instance recommendation details.
    • fromRdsDbInstance

      public static ResourceDetails fromRdsDbInstance(Consumer<RdsDbInstance.Builder> rdsDbInstance)
      Create an instance of this class with rdsDbInstance() initialized to the given value.

      The DB instance recommendation details.

      Parameters:
      rdsDbInstance - The DB instance recommendation details.
    • fromRdsDbInstanceStorage

      public static ResourceDetails fromRdsDbInstanceStorage(RdsDbInstanceStorage rdsDbInstanceStorage)
      Create an instance of this class with rdsDbInstanceStorage() 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 with rdsDbInstanceStorage() initialized to the given value.

      The DB instance storage recommendation details.

      Parameters:
      rdsDbInstanceStorage - The DB instance storage recommendation details.
    • fromAuroraDbClusterStorage

      public static ResourceDetails fromAuroraDbClusterStorage(AuroraDbClusterStorage auroraDbClusterStorage)
      Create an instance of this class with auroraDbClusterStorage() initialized to the given value.

      The Aurora DB cluster storage recommendation details.

      Parameters:
      auroraDbClusterStorage - The Aurora DB cluster storage recommendation details.
    • fromAuroraDbClusterStorage

      public static ResourceDetails fromAuroraDbClusterStorage(Consumer<AuroraDbClusterStorage.Builder> auroraDbClusterStorage)
      Create an instance of this class with auroraDbClusterStorage() initialized to the given value.

      The Aurora DB cluster storage recommendation details.

      Parameters:
      auroraDbClusterStorage - The Aurora DB cluster storage recommendation details.
    • fromDynamoDbReservedCapacity

      public static ResourceDetails fromDynamoDbReservedCapacity(DynamoDbReservedCapacity dynamoDbReservedCapacity)
      Create an instance of this class with dynamoDbReservedCapacity() initialized to the given value.

      The DynamoDB reserved capacity recommendation details.

      Parameters:
      dynamoDbReservedCapacity - The DynamoDB reserved capacity recommendation details.
    • fromDynamoDbReservedCapacity

      public static ResourceDetails fromDynamoDbReservedCapacity(Consumer<DynamoDbReservedCapacity.Builder> dynamoDbReservedCapacity)
      Create an instance of this class with dynamoDbReservedCapacity() initialized to the given value.

      The DynamoDB reserved capacity recommendation details.

      Parameters:
      dynamoDbReservedCapacity - The DynamoDB reserved capacity recommendation details.
    • fromMemoryDbReservedInstances

      public static ResourceDetails fromMemoryDbReservedInstances(MemoryDbReservedInstances memoryDbReservedInstances)
      Create an instance of this class with memoryDbReservedInstances() initialized to the given value.

      The MemoryDB reserved instances recommendation details.

      Parameters:
      memoryDbReservedInstances - The MemoryDB reserved instances recommendation details.
    • fromMemoryDbReservedInstances

      public static ResourceDetails fromMemoryDbReservedInstances(Consumer<MemoryDbReservedInstances.Builder> memoryDbReservedInstances)
      Create an instance of this class with memoryDbReservedInstances() initialized to the given value.

      The MemoryDB reserved instances recommendation details.

      Parameters:
      memoryDbReservedInstances - The MemoryDB reserved instances recommendation details.
    • type

      public ResourceDetails.Type type()
      Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be ResourceDetails.Type.UNKNOWN_TO_SDK_VERSION if 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 be ResourceDetails.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.