@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)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasSumByAccount()
Returns true if the SumByAccount property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasSumByDataSource()
Returns true if the SumByDataSource property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasSumByResource()
Returns true if the SumByResource property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasTopResources()
Returns true if the TopResources property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
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.
|
copy
public final boolean hasSumByAccount()
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.
You can use hasSumByAccount()
to see if a value was sent in this field.
public final boolean hasSumByDataSource()
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.
You can use hasSumByDataSource()
to see if a value was sent in this field.
public final boolean hasSumByResource()
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.
You can use hasSumByResource()
to see if a value was sent in this field.
public final boolean hasTopResources()
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.
You can use hasTopResources()
to see if a value was sent in this field.
public UsageStatistics.Builder toBuilder()
ToCopyableBuilder
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)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.