Class UsageTotal
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.UsageTotal
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<UsageTotal.Builder,UsageTotal>
@Generated("software.amazon.awssdk:codegen") public final class UsageTotal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageTotal.Builder,UsageTotal>
Provides aggregated data for an Amazon Macie usage metric. The value for the metric reports estimated usage data for an account for the preceding 30 days or the current calendar month to date, depending on the time period (timeRange) specified in the request.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUsageTotal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsageTotal.Builderbuilder()Currencycurrency()The type of currency that the value for the metric (estimatedCost) is reported in.StringcurrencyAsString()The type of currency that the value for the metric (estimatedCost) is reported in.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringestimatedCost()The estimated value for the metric.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends UsageTotal.Builder>serializableBuilderClass()UsageTotal.BuildertoBuilder()StringtoString()Returns a string representation of this object.UsageTypetype()The name of the metric.StringtypeAsString()The name of the metric.-
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
-
currency
public final Currency currency()
The type of currency that the value for the metric (estimatedCost) is reported in.
If the service returns an enum value that is not available in the current SDK version,
currencywill returnCurrency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyAsString().- Returns:
- The type of currency that the value for the metric (estimatedCost) is reported in.
- See Also:
Currency
-
currencyAsString
public final String currencyAsString()
The type of currency that the value for the metric (estimatedCost) is reported in.
If the service returns an enum value that is not available in the current SDK version,
currencywill returnCurrency.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcurrencyAsString().- Returns:
- The type of currency that the value for the metric (estimatedCost) is reported in.
- See Also:
Currency
-
estimatedCost
public final String estimatedCost()
The estimated value for the metric.
- Returns:
- The estimated value for the metric.
-
type
public final UsageType type()
The name of the metric. Possible values are: AUTOMATED_OBJECT_MONITORING, to monitor S3 objects for automated sensitive data discovery; AUTOMATED_SENSITIVE_DATA_DISCOVERY, to analyze S3 objects for automated sensitive data discovery; DATA_INVENTORY_EVALUATION, to monitor S3 buckets; and, SENSITIVE_DATA_DISCOVERY, to run classification jobs.
If the service returns an enum value that is not available in the current SDK version,
typewill returnUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The name of the metric. Possible values are: AUTOMATED_OBJECT_MONITORING, to monitor S3 objects for automated sensitive data discovery; AUTOMATED_SENSITIVE_DATA_DISCOVERY, to analyze S3 objects for automated sensitive data discovery; DATA_INVENTORY_EVALUATION, to monitor S3 buckets; and, SENSITIVE_DATA_DISCOVERY, to run classification jobs.
- See Also:
UsageType
-
typeAsString
public final String typeAsString()
The name of the metric. Possible values are: AUTOMATED_OBJECT_MONITORING, to monitor S3 objects for automated sensitive data discovery; AUTOMATED_SENSITIVE_DATA_DISCOVERY, to analyze S3 objects for automated sensitive data discovery; DATA_INVENTORY_EVALUATION, to monitor S3 buckets; and, SENSITIVE_DATA_DISCOVERY, to run classification jobs.
If the service returns an enum value that is not available in the current SDK version,
typewill returnUsageType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The name of the metric. Possible values are: AUTOMATED_OBJECT_MONITORING, to monitor S3 objects for automated sensitive data discovery; AUTOMATED_SENSITIVE_DATA_DISCOVERY, to analyze S3 objects for automated sensitive data discovery; DATA_INVENTORY_EVALUATION, to monitor S3 buckets; and, SENSITIVE_DATA_DISCOVERY, to run classification jobs.
- See Also:
UsageType
-
toBuilder
public UsageTotal.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UsageTotal.Builder,UsageTotal>
-
builder
public static UsageTotal.Builder builder()
-
serializableBuilderClass
public static Class<? extends UsageTotal.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.
-
-