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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceDetails.Builderstatic classResourceDetails.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceDetails.Builderbuilder()ComputeSavingsPlanscomputeSavingsPlans()The Compute Savings Plans recommendation details.EbsVolumeebsVolume()The Amazon Elastic Block Store volume recommendation details.Ec2AutoScalingGroupec2AutoScalingGroup()The EC2 Auto Scaling group recommendation details.Ec2Instanceec2Instance()The EC2 instance recommendation details.Ec2InstanceSavingsPlansec2InstanceSavingsPlans()The EC2 instance Savings Plans recommendation details.Ec2ReservedInstancesec2ReservedInstances()The EC2 reserved instances recommendation details.EcsServiceecsService()The ECS service recommendation details.ElastiCacheReservedInstanceselastiCacheReservedInstances()The ElastiCache reserved instances recommendation details.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)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 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.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LambdaFunctionlambdaFunction()The Lambda function recommendation details.OpenSearchReservedInstancesopenSearchReservedInstances()The OpenSearch reserved instances recommendation details.RdsReservedInstancesrdsReservedInstances()The RDS reserved instances recommendation details.RedshiftReservedInstancesredshiftReservedInstances()The Redshift reserved instances recommendation details.SageMakerSavingsPlanssageMakerSavingsPlans()The SageMaker Savings Plans recommendation details.List<SdkField<?>>sdkFields()static Class<? extends ResourceDetails.Builder>serializableBuilderClass()ResourceDetails.BuildertoBuilder()StringtoString()Returns a string representation of this object.ResourceDetails.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
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.
-
toBuilder
public ResourceDetails.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceDetails.Builder,ResourceDetails>
-
builder
public static ResourceDetails.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceDetails.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
fromComputeSavingsPlans
public static ResourceDetails fromComputeSavingsPlans(ComputeSavingsPlans 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.
-
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.
-
fromEbsVolume
public static ResourceDetails fromEbsVolume(EbsVolume ebsVolume)
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
public static ResourceDetails fromEbsVolume(Consumer<EbsVolume.Builder> ebsVolume)
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
public static ResourceDetails fromEc2AutoScalingGroup(Ec2AutoScalingGroup 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.
-
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.
-
fromEc2Instance
public static ResourceDetails fromEc2Instance(Ec2Instance ec2Instance)
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
public static ResourceDetails fromEc2Instance(Consumer<Ec2Instance.Builder> ec2Instance)
Create an instance of this class withec2Instance()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 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.
-
fromEc2ReservedInstances
public static ResourceDetails fromEc2ReservedInstances(Ec2ReservedInstances 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.
-
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.
-
fromEcsService
public static ResourceDetails fromEcsService(EcsService ecsService)
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
public static ResourceDetails fromEcsService(Consumer<EcsService.Builder> ecsService)
Create an instance of this class withecsService()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 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.
-
fromLambdaFunction
public static ResourceDetails fromLambdaFunction(LambdaFunction lambdaFunction)
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
public static ResourceDetails fromLambdaFunction(Consumer<LambdaFunction.Builder> lambdaFunction)
Create an instance of this class withlambdaFunction()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 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.
-
fromRdsReservedInstances
public static ResourceDetails fromRdsReservedInstances(RdsReservedInstances 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.
-
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.
-
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.
-
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.
-
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 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.
-
-