@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ServiceResourceCost.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ServiceResourceCost.Builder |
builder() |
Double |
cost()
The total estimated monthly cost to analyze the active resources for this resource.
|
Integer |
count()
The number of active resources analyzed for this service to create a monthly cost estimate.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ServiceResourceCost.Builder> |
serializableBuilderClass() |
CostEstimationServiceResourceState |
state()
The state of the resource.
|
String |
stateAsString()
The state of the resource.
|
ServiceResourceCost.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
type()
The type of the Amazon Web Services resource.
|
Double |
unitCost()
The price per hour to analyze the resources in the service.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String type()
The type of the Amazon Web Services resource.
public final CostEstimationServiceResourceState state()
The state of the resource. The resource is ACTIVE if it produces metrics, events, or logs within an
hour, otherwise it is INACTIVE. 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, state will return
CostEstimationServiceResourceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stateAsString().
ACTIVE if it produces metrics, events, or logs
within an hour, otherwise it is INACTIVE. You pay for the number of active Amazon Web
Services resource hours analyzed for each resource. Inactive resources are not charged.CostEstimationServiceResourceStatepublic final String stateAsString()
The state of the resource. The resource is ACTIVE if it produces metrics, events, or logs within an
hour, otherwise it is INACTIVE. 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, state will return
CostEstimationServiceResourceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from stateAsString().
ACTIVE if it produces metrics, events, or logs
within an hour, otherwise it is INACTIVE. You pay for the number of active Amazon Web
Services resource hours analyzed for each resource. Inactive resources are not charged.CostEstimationServiceResourceStatepublic final Integer count()
The number of active resources analyzed for this service to create a monthly cost estimate.
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.
public final Double cost()
The total estimated monthly cost to analyze the active resources for this resource.
public ServiceResourceCost.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ServiceResourceCost.Builder,ServiceResourceCost>public static ServiceResourceCost.Builder builder()
public static Class<? extends ServiceResourceCost.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.