@Generated(value="software.amazon.awssdk:codegen") public final class EntityFilter extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EntityFilter.Builder,EntityFilter>
The values to use to filter results from the DescribeAffectedEntities operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EntityFilter.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EntityFilter.Builder |
builder() |
List<String> |
entityArns()
A list of entity ARNs (unique identifiers).
|
List<String> |
entityValues()
A list of IDs for affected entities.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<String> |
eventArns()
A list of event ARNs (unique identifiers).
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasEntityArns()
For responses, this returns true if the service returned a value for the EntityArns property.
|
boolean |
hasEntityValues()
For responses, this returns true if the service returned a value for the EntityValues property.
|
boolean |
hasEventArns()
For responses, this returns true if the service returned a value for the EventArns property.
|
int |
hashCode() |
boolean |
hasLastUpdatedTimes()
For responses, this returns true if the service returned a value for the LastUpdatedTimes property.
|
boolean |
hasStatusCodes()
For responses, this returns true if the service returned a value for the StatusCodes property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
List<DateTimeRange> |
lastUpdatedTimes()
A list of the most recent dates and times that the entity was updated.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EntityFilter.Builder> |
serializableBuilderClass() |
List<EntityStatusCode> |
statusCodes()
A list of entity status codes (
IMPAIRED, UNIMPAIRED, or UNKNOWN). |
List<String> |
statusCodesAsStrings()
A list of entity status codes (
IMPAIRED, UNIMPAIRED, or UNKNOWN). |
List<Map<String,String>> |
tags()
A map of entity tags attached to the affected entity.
|
EntityFilter.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasEventArns()
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<String> eventArns()
A list of event ARNs (unique identifiers). For example:
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"
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 hasEventArns() method.
"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"public final boolean hasEntityArns()
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<String> entityArns()
A list of entity ARNs (unique identifiers).
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 hasEntityArns() method.
public final boolean hasEntityValues()
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<String> entityValues()
A list of IDs for affected entities.
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 hasEntityValues() method.
public final boolean hasLastUpdatedTimes()
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<DateTimeRange> lastUpdatedTimes()
A list of the most recent dates and times that the entity was updated.
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 hasLastUpdatedTimes() method.
public final boolean hasTags()
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<Map<String,String>> tags()
A map of entity tags attached to the affected entity.
Currently, the tags property isn't supported.
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 hasTags() method.
Currently, the tags property isn't supported.
public final List<EntityStatusCode> statusCodes()
A list of entity status codes (IMPAIRED, UNIMPAIRED, or UNKNOWN).
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 hasStatusCodes() method.
IMPAIRED, UNIMPAIRED, or UNKNOWN).public final boolean hasStatusCodes()
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<String> statusCodesAsStrings()
A list of entity status codes (IMPAIRED, UNIMPAIRED, or UNKNOWN).
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 hasStatusCodes() method.
IMPAIRED, UNIMPAIRED, or UNKNOWN).public EntityFilter.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EntityFilter.Builder,EntityFilter>public static EntityFilter.Builder builder()
public static Class<? extends EntityFilter.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.