Class ResourceDetails

    • Method Detail

      • computeSavingsPlans

        public final ComputeSavingsPlans computeSavingsPlans()

        The Compute Savings Plans recommendation details.

        Returns:
        The Compute Savings Plans 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.
      • ec2Instance

        public final Ec2Instance ec2Instance()

        The EC2 instance recommendation details.

        Returns:
        The EC2 instance recommendation details.
      • ec2InstanceSavingsPlans

        public final Ec2InstanceSavingsPlans ec2InstanceSavingsPlans()

        The EC2 instance Savings Plans recommendation details.

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

        public final Ec2ReservedInstances ec2ReservedInstances()

        The EC2 reserved instances recommendation details.

        Returns:
        The EC2 reserved instances recommendation details.
      • ecsService

        public final EcsService ecsService()

        The ECS service recommendation details.

        Returns:
        The ECS service recommendation details.
      • elastiCacheReservedInstances

        public final ElastiCacheReservedInstances elastiCacheReservedInstances()

        The ElastiCache reserved instances recommendation details.

        Returns:
        The ElastiCache reserved instances recommendation details.
      • lambdaFunction

        public final LambdaFunction lambdaFunction()

        The Lambda function recommendation details.

        Returns:
        The Lambda function recommendation details.
      • openSearchReservedInstances

        public final OpenSearchReservedInstances openSearchReservedInstances()

        The OpenSearch reserved instances recommendation details.

        Returns:
        The OpenSearch reserved instances recommendation details.
      • rdsReservedInstances

        public final RdsReservedInstances rdsReservedInstances()

        The RDS reserved instances recommendation details.

        Returns:
        The RDS reserved instances recommendation details.
      • redshiftReservedInstances

        public final RedshiftReservedInstances redshiftReservedInstances()

        The Redshift reserved instances recommendation details.

        Returns:
        The Redshift reserved instances recommendation details.
      • sageMakerSavingsPlans

        public final SageMakerSavingsPlans sageMakerSavingsPlans()

        The SageMaker Savings Plans recommendation details.

        Returns:
        The SageMaker Savings Plans recommendation details.
      • hashCode

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

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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)
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • fromSageMakerSavingsPlans

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

        The SageMaker Savings Plans recommendation details.

        Parameters:
        sageMakerSavingsPlans - The SageMaker Savings Plans recommendation details.