@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageRecord extends Object implements Serializable, Cloneable, StructuredPojo
Provides quota and aggregated usage data for an Amazon Macie account.
Constructor and Description |
---|
UsageRecord() |
Modifier and Type | Method and Description |
---|---|
UsageRecord |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The unique identifier for the Amazon Web Services account that the data applies to.
|
Date |
getAutomatedDiscoveryFreeTrialStartDate()
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery
started for the account.
|
Date |
getFreeTrialStartDate()
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
|
List<UsageByAccount> |
getUsage()
An array of objects that contains usage data and quotas for the account.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The unique identifier for the Amazon Web Services account that the data applies to.
|
void |
setAutomatedDiscoveryFreeTrialStartDate(Date automatedDiscoveryFreeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery
started for the account.
|
void |
setFreeTrialStartDate(Date freeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
|
void |
setUsage(Collection<UsageByAccount> usage)
An array of objects that contains usage data and quotas for the account.
|
String |
toString()
Returns a string representation of this object.
|
UsageRecord |
withAccountId(String accountId)
The unique identifier for the Amazon Web Services account that the data applies to.
|
UsageRecord |
withAutomatedDiscoveryFreeTrialStartDate(Date automatedDiscoveryFreeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery
started for the account.
|
UsageRecord |
withFreeTrialStartDate(Date freeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
|
UsageRecord |
withUsage(Collection<UsageByAccount> usage)
An array of objects that contains usage data and quotas for the account.
|
UsageRecord |
withUsage(UsageByAccount... usage)
An array of objects that contains usage data and quotas for the account.
|
public void setAccountId(String accountId)
The unique identifier for the Amazon Web Services account that the data applies to.
accountId
- The unique identifier for the Amazon Web Services account that the data applies to.public String getAccountId()
The unique identifier for the Amazon Web Services account that the data applies to.
public UsageRecord withAccountId(String accountId)
The unique identifier for the Amazon Web Services account that the data applies to.
accountId
- The unique identifier for the Amazon Web Services account that the data applies to.public void setAutomatedDiscoveryFreeTrialStartDate(Date automatedDiscoveryFreeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery started for the account. This value is null if automated sensitive data discovery hasn't been enabled for the account.
automatedDiscoveryFreeTrialStartDate
- The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data
discovery started for the account. This value is null if automated sensitive data discovery hasn't been
enabled for the account.public Date getAutomatedDiscoveryFreeTrialStartDate()
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery started for the account. This value is null if automated sensitive data discovery hasn't been enabled for the account.
public UsageRecord withAutomatedDiscoveryFreeTrialStartDate(Date automatedDiscoveryFreeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data discovery started for the account. This value is null if automated sensitive data discovery hasn't been enabled for the account.
automatedDiscoveryFreeTrialStartDate
- The date and time, in UTC and extended ISO 8601 format, when the free trial of automated sensitive data
discovery started for the account. This value is null if automated sensitive data discovery hasn't been
enabled for the account.public void setFreeTrialStartDate(Date freeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
freeTrialStartDate
- The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the
account.public Date getFreeTrialStartDate()
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
public UsageRecord withFreeTrialStartDate(Date freeTrialStartDate)
The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the account.
freeTrialStartDate
- The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for the
account.public List<UsageByAccount> getUsage()
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
public void setUsage(Collection<UsageByAccount> usage)
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
usage
- An array of objects that contains usage data and quotas for the account. Each object contains the data for
a specific usage metric and the corresponding quota.public UsageRecord withUsage(UsageByAccount... usage)
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
NOTE: This method appends the values to the existing list (if any). Use
setUsage(java.util.Collection)
or withUsage(java.util.Collection)
if you want to override the
existing values.
usage
- An array of objects that contains usage data and quotas for the account. Each object contains the data for
a specific usage metric and the corresponding quota.public UsageRecord withUsage(Collection<UsageByAccount> usage)
An array of objects that contains usage data and quotas for the account. Each object contains the data for a specific usage metric and the corresponding quota.
usage
- An array of objects that contains usage data and quotas for the account. Each object contains the data for
a specific usage metric and the corresponding quota.public String toString()
toString
in class Object
Object.toString()
public UsageRecord clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.