@Generated(value="software.amazon.awssdk:codegen") public final class InclusionProtectionGroupFilters extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InclusionProtectionGroupFilters.Builder,InclusionProtectionGroupFilters>
Narrows the set of protection groups that the call retrieves. You can retrieve a single protection group by its name and you can retrieve all protection groups that are configured with a specific pattern, aggregation, or resource type. You can provide up to one criteria per filter type. Shield Advanced returns the protection groups that exactly match all of the search criteria that you provide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InclusionProtectionGroupFilters.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<ProtectionGroupAggregation> |
aggregations()
The aggregation setting of the protection groups that you want to retrieve.
|
List<String> |
aggregationsAsStrings()
The aggregation setting of the protection groups that you want to retrieve.
|
static InclusionProtectionGroupFilters.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAggregations()
For responses, this returns true if the service returned a value for the Aggregations property.
|
int |
hashCode() |
boolean |
hasPatterns()
For responses, this returns true if the service returned a value for the Patterns property.
|
boolean |
hasProtectionGroupIds()
For responses, this returns true if the service returned a value for the ProtectionGroupIds property.
|
boolean |
hasResourceTypes()
For responses, this returns true if the service returned a value for the ResourceTypes property.
|
List<ProtectionGroupPattern> |
patterns()
The pattern specification of the protection groups that you want to retrieve.
|
List<String> |
patternsAsStrings()
The pattern specification of the protection groups that you want to retrieve.
|
List<String> |
protectionGroupIds()
The ID of the protection group that you want to retrieve.
|
List<ProtectedResourceType> |
resourceTypes()
The resource type configuration of the protection groups that you want to retrieve.
|
List<String> |
resourceTypesAsStrings()
The resource type configuration of the protection groups that you want to retrieve.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InclusionProtectionGroupFilters.Builder> |
serializableBuilderClass() |
InclusionProtectionGroupFilters.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasProtectionGroupIds()
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> protectionGroupIds()
The ID of the protection group that you want to retrieve.
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 hasProtectionGroupIds() method.
public final List<ProtectionGroupPattern> patterns()
The pattern specification of the protection groups that you want to retrieve.
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 hasPatterns() method.
public final boolean hasPatterns()
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> patternsAsStrings()
The pattern specification of the protection groups that you want to retrieve.
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 hasPatterns() method.
public final List<ProtectedResourceType> resourceTypes()
The resource type configuration of the protection groups that you want to retrieve. In the protection group
configuration, you specify the resource type when you set the group's Pattern to
BY_RESOURCE_TYPE.
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 hasResourceTypes() method.
Pattern to
BY_RESOURCE_TYPE.public final boolean hasResourceTypes()
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> resourceTypesAsStrings()
The resource type configuration of the protection groups that you want to retrieve. In the protection group
configuration, you specify the resource type when you set the group's Pattern to
BY_RESOURCE_TYPE.
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 hasResourceTypes() method.
Pattern to
BY_RESOURCE_TYPE.public final List<ProtectionGroupAggregation> aggregations()
The aggregation setting of the protection groups that you want to retrieve.
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 hasAggregations() method.
public final boolean hasAggregations()
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> aggregationsAsStrings()
The aggregation setting of the protection groups that you want to retrieve.
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 hasAggregations() method.
public InclusionProtectionGroupFilters.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InclusionProtectionGroupFilters.Builder,InclusionProtectionGroupFilters>public static InclusionProtectionGroupFilters.Builder builder()
public static Class<? extends InclusionProtectionGroupFilters.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.