Class ServiceResourceCost
- java.lang.Object
-
- software.amazon.awssdk.services.devopsguru.model.ServiceResourceCost
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceResourceCost.Builder,ServiceResourceCost>
@Generated("software.amazon.awssdk:codegen") public final class ServiceResourceCost extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceResourceCost.Builder,ServiceResourceCost>
An object that contains information about the estimated monthly cost to analyze an Amazon Web Services resource. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceResourceCost.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceResourceCost.Builderbuilder()Doublecost()The total estimated monthly cost to analyze the active resources for this resource.Integercount()The number of active resources analyzed for this service to create a monthly cost estimate.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ServiceResourceCost.Builder>serializableBuilderClass()CostEstimationServiceResourceStatestate()The state of the resource.StringstateAsString()The state of the resource.ServiceResourceCost.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The type of the Amazon Web Services resource.DoubleunitCost()The price per hour to analyze the resources in the service.-
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
-
type
public final String type()
The type of the Amazon Web Services resource.
- Returns:
- The type of the Amazon Web Services resource.
-
state
public final CostEstimationServiceResourceState state()
The state of the resource. The resource is
ACTIVEif it produces metrics, events, or logs within an hour, otherwise it isINACTIVE. You pay for the number of active Amazon Web Services resource hours analyzed for each resource. Inactive resources are not charged.If the service returns an enum value that is not available in the current SDK version,
statewill returnCostEstimationServiceResourceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the resource. The resource is
ACTIVEif it produces metrics, events, or logs within an hour, otherwise it isINACTIVE. You pay for the number of active Amazon Web Services resource hours analyzed for each resource. Inactive resources are not charged. - See Also:
CostEstimationServiceResourceState
-
stateAsString
public final String stateAsString()
The state of the resource. The resource is
ACTIVEif it produces metrics, events, or logs within an hour, otherwise it isINACTIVE. You pay for the number of active Amazon Web Services resource hours analyzed for each resource. Inactive resources are not charged.If the service returns an enum value that is not available in the current SDK version,
statewill returnCostEstimationServiceResourceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The state of the resource. The resource is
ACTIVEif it produces metrics, events, or logs within an hour, otherwise it isINACTIVE. You pay for the number of active Amazon Web Services resource hours analyzed for each resource. Inactive resources are not charged. - See Also:
CostEstimationServiceResourceState
-
count
public final Integer count()
The number of active resources analyzed for this service to create a monthly cost estimate.
- Returns:
- The number of active resources analyzed for this service to create a monthly cost estimate.
-
unitCost
public final Double unitCost()
The price per hour to analyze the resources in the service. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.
- Returns:
- The price per hour to analyze the resources in the service. For more information, see Estimate your Amazon DevOps Guru costs and Amazon DevOps Guru pricing.
-
cost
public final Double cost()
The total estimated monthly cost to analyze the active resources for this resource.
- Returns:
- The total estimated monthly cost to analyze the active resources for this resource.
-
toBuilder
public ServiceResourceCost.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceResourceCost.Builder,ServiceResourceCost>
-
builder
public static ServiceResourceCost.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceResourceCost.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.
-
-