@Generated(value="software.amazon.awssdk:codegen") public final class UsageStatistics extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UsageStatistics.Builder,UsageStatistics>
Contains the result of GuardDuty usage. If a UsageStatisticType is provided the result for other types will be null.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UsageStatistics.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UsageStatistics.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSumByAccount()
For responses, this returns true if the service returned a value for the SumByAccount property.
|
boolean |
hasSumByDataSource()
For responses, this returns true if the service returned a value for the SumByDataSource property.
|
boolean |
hasSumByResource()
For responses, this returns true if the service returned a value for the SumByResource property.
|
boolean |
hasTopResources()
For responses, this returns true if the service returned a value for the TopResources property.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UsageStatistics.Builder> |
serializableBuilderClass() |
List<UsageAccountResult> |
sumByAccount()
The usage statistic sum organized by account ID.
|
List<UsageDataSourceResult> |
sumByDataSource()
The usage statistic sum organized by on data source.
|
List<UsageResourceResult> |
sumByResource()
The usage statistic sum organized by resource.
|
UsageStatistics.Builder |
toBuilder() |
List<UsageResourceResult> |
topResources()
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasSumByAccount()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<UsageAccountResult> sumByAccount()
The usage statistic sum organized by account ID.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSumByAccount() method.
public final boolean hasSumByDataSource()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<UsageDataSourceResult> sumByDataSource()
The usage statistic sum organized by on data source.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSumByDataSource() method.
public final boolean hasSumByResource()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<UsageResourceResult> sumByResource()
The usage statistic sum organized by resource.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasSumByResource() method.
public final boolean hasTopResources()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<UsageResourceResult> topResources()
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTopResources() method.
public UsageStatistics.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UsageStatistics.Builder,UsageStatistics>public static UsageStatistics.Builder builder()
public static Class<? extends UsageStatistics.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.