Class Usage
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.model.Usage
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Usage.Builder,Usage>
@Generated("software.amazon.awssdk:codegen") public final class Usage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Usage.Builder,Usage>
Contains usage information about the cost of Amazon Inspector operation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUsage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Usage.Builderbuilder()Currencycurrency()The currency type used when calculating usage data.StringcurrencyAsString()The currency type used when calculating usage data.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)DoubleestimatedMonthlyCost()The estimated monthly cost of Amazon Inspector.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Usage.Builder>serializableBuilderClass()Usage.BuildertoBuilder()StringtoString()Returns a string representation of this object.Doubletotal()The total of usage.UsageTypetype()The type scan.StringtypeAsString()The type scan.-
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 currency type used when calculating usage data.
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 currency type used when calculating usage data.
- See Also:
Currency
-
currencyAsString
public final String currencyAsString()
The currency type used when calculating usage data.
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 currency type used when calculating usage data.
- See Also:
Currency
-
estimatedMonthlyCost
public final Double estimatedMonthlyCost()
The estimated monthly cost of Amazon Inspector.
- Returns:
- The estimated monthly cost of Amazon Inspector.
-
total
public final Double total()
The total of usage.
- Returns:
- The total of usage.
-
type
public final UsageType type()
The type scan.
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 type scan.
- See Also:
UsageType
-
typeAsString
public final String typeAsString()
The type scan.
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 type scan.
- See Also:
UsageType
-
toBuilder
public Usage.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Usage.Builder,Usage>
-
builder
public static Usage.Builder builder()
-
serializableBuilderClass
public static Class<? extends Usage.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.
-
-