@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UsageStatisticsFilter extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a condition for filtering the results of a query for quota and usage data for one or more Amazon Macie accounts.
Constructor and Description |
---|
UsageStatisticsFilter() |
Modifier and Type | Method and Description |
---|---|
UsageStatisticsFilter |
clone() |
boolean |
equals(Object obj) |
String |
getComparator()
The operator to use in the condition.
|
String |
getKey()
The field to use in the condition.
|
List<String> |
getValues()
An array that lists values to use in the condition, based on the value for the field specified by the key
property.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComparator(String comparator)
The operator to use in the condition.
|
void |
setKey(String key)
The field to use in the condition.
|
void |
setValues(Collection<String> values)
An array that lists values to use in the condition, based on the value for the field specified by the key
property.
|
String |
toString()
Returns a string representation of this object.
|
UsageStatisticsFilter |
withComparator(String comparator)
The operator to use in the condition.
|
UsageStatisticsFilter |
withComparator(UsageStatisticsFilterComparator comparator)
The operator to use in the condition.
|
UsageStatisticsFilter |
withKey(String key)
The field to use in the condition.
|
UsageStatisticsFilter |
withKey(UsageStatisticsFilterKey key)
The field to use in the condition.
|
UsageStatisticsFilter |
withValues(Collection<String> values)
An array that lists values to use in the condition, based on the value for the field specified by the key
property.
|
UsageStatisticsFilter |
withValues(String... values)
An array that lists values to use in the condition, based on the value for the field specified by the key
property.
|
public void setComparator(String comparator)
The operator to use in the condition. If the value for the key property is accountId, this value must be CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE, LT, LTE, or NE.
comparator
- The operator to use in the condition. If the value for the key property is accountId, this value must be
CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE,
LT, LTE, or NE.UsageStatisticsFilterComparator
public String getComparator()
The operator to use in the condition. If the value for the key property is accountId, this value must be CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE, LT, LTE, or NE.
UsageStatisticsFilterComparator
public UsageStatisticsFilter withComparator(String comparator)
The operator to use in the condition. If the value for the key property is accountId, this value must be CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE, LT, LTE, or NE.
comparator
- The operator to use in the condition. If the value for the key property is accountId, this value must be
CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE,
LT, LTE, or NE.UsageStatisticsFilterComparator
public UsageStatisticsFilter withComparator(UsageStatisticsFilterComparator comparator)
The operator to use in the condition. If the value for the key property is accountId, this value must be CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE, LT, LTE, or NE.
comparator
- The operator to use in the condition. If the value for the key property is accountId, this value must be
CONTAINS. If the value for the key property is any other supported field, this value can be EQ, GT, GTE,
LT, LTE, or NE.UsageStatisticsFilterComparator
public void setKey(String key)
The field to use in the condition.
key
- The field to use in the condition.UsageStatisticsFilterKey
public String getKey()
The field to use in the condition.
UsageStatisticsFilterKey
public UsageStatisticsFilter withKey(String key)
The field to use in the condition.
key
- The field to use in the condition.UsageStatisticsFilterKey
public UsageStatisticsFilter withKey(UsageStatisticsFilterKey key)
The field to use in the condition.
key
- The field to use in the condition.UsageStatisticsFilterKey
public List<String> getValues()
An array that lists values to use in the condition, based on the value for the field specified by the key property. If the value for the key property is accountId, this array can specify multiple values. Otherwise, this array can specify only one value.
Valid values for each supported field are:
accountId - The unique identifier for an Amazon Web Services account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current estimated cost for an account.
Valid values for each supported field are:
accountId - The unique identifier for an Amazon Web Services account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current estimated cost for an account.
public void setValues(Collection<String> values)
An array that lists values to use in the condition, based on the value for the field specified by the key property. If the value for the key property is accountId, this array can specify multiple values. Otherwise, this array can specify only one value.
Valid values for each supported field are:
accountId - The unique identifier for an Amazon Web Services account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current estimated cost for an account.
values
- An array that lists values to use in the condition, based on the value for the field specified by the key
property. If the value for the key property is accountId, this array can specify multiple values.
Otherwise, this array can specify only one value.
Valid values for each supported field are:
accountId - The unique identifier for an Amazon Web Services account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current estimated cost for an account.
public UsageStatisticsFilter withValues(String... values)
An array that lists values to use in the condition, based on the value for the field specified by the key property. If the value for the key property is accountId, this array can specify multiple values. Otherwise, this array can specify only one value.
Valid values for each supported field are:
accountId - The unique identifier for an Amazon Web Services account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current estimated cost for an account.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- An array that lists values to use in the condition, based on the value for the field specified by the key
property. If the value for the key property is accountId, this array can specify multiple values.
Otherwise, this array can specify only one value.
Valid values for each supported field are:
accountId - The unique identifier for an Amazon Web Services account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current estimated cost for an account.
public UsageStatisticsFilter withValues(Collection<String> values)
An array that lists values to use in the condition, based on the value for the field specified by the key property. If the value for the key property is accountId, this array can specify multiple values. Otherwise, this array can specify only one value.
Valid values for each supported field are:
accountId - The unique identifier for an Amazon Web Services account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current estimated cost for an account.
values
- An array that lists values to use in the condition, based on the value for the field specified by the key
property. If the value for the key property is accountId, this array can specify multiple values.
Otherwise, this array can specify only one value.
Valid values for each supported field are:
accountId - The unique identifier for an Amazon Web Services account.
freeTrialStartDate - The date and time, in UTC and extended ISO 8601 format, when the Amazon Macie free trial started for an account.
serviceLimit - A Boolean (true or false) value that indicates whether an account has reached its monthly quota.
total - A string that represents the current estimated cost for an account.
public String toString()
toString
in class Object
Object.toString()
public UsageStatisticsFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.