@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageStatistics extends Object implements Serializable, Cloneable, StructuredPojo
Contains the result of GuardDuty usage. If a UsageStatisticType is provided the result for other types will be null.
Constructor and Description |
---|
UsageStatistics() |
Modifier and Type | Method and Description |
---|---|
UsageStatistics |
clone() |
boolean |
equals(Object obj) |
List<UsageAccountResult> |
getSumByAccount()
The usage statistic sum organized by account ID.
|
List<UsageDataSourceResult> |
getSumByDataSource()
The usage statistic sum organized by on data source.
|
List<UsageResourceResult> |
getSumByResource()
The usage statistic sum organized by resource.
|
List<UsageResourceResult> |
getTopResources()
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSumByAccount(Collection<UsageAccountResult> sumByAccount)
The usage statistic sum organized by account ID.
|
void |
setSumByDataSource(Collection<UsageDataSourceResult> sumByDataSource)
The usage statistic sum organized by on data source.
|
void |
setSumByResource(Collection<UsageResourceResult> sumByResource)
The usage statistic sum organized by resource.
|
void |
setTopResources(Collection<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.
|
UsageStatistics |
withSumByAccount(Collection<UsageAccountResult> sumByAccount)
The usage statistic sum organized by account ID.
|
UsageStatistics |
withSumByAccount(UsageAccountResult... sumByAccount)
The usage statistic sum organized by account ID.
|
UsageStatistics |
withSumByDataSource(Collection<UsageDataSourceResult> sumByDataSource)
The usage statistic sum organized by on data source.
|
UsageStatistics |
withSumByDataSource(UsageDataSourceResult... sumByDataSource)
The usage statistic sum organized by on data source.
|
UsageStatistics |
withSumByResource(Collection<UsageResourceResult> sumByResource)
The usage statistic sum organized by resource.
|
UsageStatistics |
withSumByResource(UsageResourceResult... sumByResource)
The usage statistic sum organized by resource.
|
UsageStatistics |
withTopResources(Collection<UsageResourceResult> topResources)
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
|
UsageStatistics |
withTopResources(UsageResourceResult... topResources)
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
|
public List<UsageAccountResult> getSumByAccount()
The usage statistic sum organized by account ID.
public void setSumByAccount(Collection<UsageAccountResult> sumByAccount)
The usage statistic sum organized by account ID.
sumByAccount
- The usage statistic sum organized by account ID.public UsageStatistics withSumByAccount(UsageAccountResult... sumByAccount)
The usage statistic sum organized by account ID.
NOTE: This method appends the values to the existing list (if any). Use
setSumByAccount(java.util.Collection)
or withSumByAccount(java.util.Collection)
if you want to
override the existing values.
sumByAccount
- The usage statistic sum organized by account ID.public UsageStatistics withSumByAccount(Collection<UsageAccountResult> sumByAccount)
The usage statistic sum organized by account ID.
sumByAccount
- The usage statistic sum organized by account ID.public List<UsageDataSourceResult> getSumByDataSource()
The usage statistic sum organized by on data source.
public void setSumByDataSource(Collection<UsageDataSourceResult> sumByDataSource)
The usage statistic sum organized by on data source.
sumByDataSource
- The usage statistic sum organized by on data source.public UsageStatistics withSumByDataSource(UsageDataSourceResult... sumByDataSource)
The usage statistic sum organized by on data source.
NOTE: This method appends the values to the existing list (if any). Use
setSumByDataSource(java.util.Collection)
or withSumByDataSource(java.util.Collection)
if you
want to override the existing values.
sumByDataSource
- The usage statistic sum organized by on data source.public UsageStatistics withSumByDataSource(Collection<UsageDataSourceResult> sumByDataSource)
The usage statistic sum organized by on data source.
sumByDataSource
- The usage statistic sum organized by on data source.public List<UsageResourceResult> getSumByResource()
The usage statistic sum organized by resource.
public void setSumByResource(Collection<UsageResourceResult> sumByResource)
The usage statistic sum organized by resource.
sumByResource
- The usage statistic sum organized by resource.public UsageStatistics withSumByResource(UsageResourceResult... sumByResource)
The usage statistic sum organized by resource.
NOTE: This method appends the values to the existing list (if any). Use
setSumByResource(java.util.Collection)
or withSumByResource(java.util.Collection)
if you want
to override the existing values.
sumByResource
- The usage statistic sum organized by resource.public UsageStatistics withSumByResource(Collection<UsageResourceResult> sumByResource)
The usage statistic sum organized by resource.
sumByResource
- The usage statistic sum organized by resource.public List<UsageResourceResult> getTopResources()
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
public void setTopResources(Collection<UsageResourceResult> topResources)
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
topResources
- Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least
expensive.public UsageStatistics withTopResources(UsageResourceResult... topResources)
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
NOTE: This method appends the values to the existing list (if any). Use
setTopResources(java.util.Collection)
or withTopResources(java.util.Collection)
if you want to
override the existing values.
topResources
- Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least
expensive.public UsageStatistics withTopResources(Collection<UsageResourceResult> topResources)
Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least expensive.
topResources
- Lists the top 50 resources that have generated the most GuardDuty usage, in order from most to least
expensive.public String toString()
toString
in class Object
Object.toString()
public UsageStatistics clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.