@Generated(value="software.amazon.awssdk:codegen") public final class InclusionProtectionFilters extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InclusionProtectionFilters.Builder,InclusionProtectionFilters>
Narrows the set of protections that the call retrieves. You can retrieve a single protection by providing its name or the ARN (Amazon Resource Name) of its protected resource. You can also retrieve all protections for a specific resource type. You can provide up to one criteria per filter type. Shield Advanced returns protections that exactly match all of the filter criteria that you provide.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InclusionProtectionFilters.Builder |
| Modifier and Type | Method and Description |
|---|---|
static InclusionProtectionFilters.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasProtectionNames()
For responses, this returns true if the service returned a value for the ProtectionNames property.
|
boolean |
hasResourceArns()
For responses, this returns true if the service returned a value for the ResourceArns property.
|
boolean |
hasResourceTypes()
For responses, this returns true if the service returned a value for the ResourceTypes property.
|
List<String> |
protectionNames()
The name of the protection that you want to retrieve.
|
List<String> |
resourceArns()
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
|
List<ProtectedResourceType> |
resourceTypes()
The type of protected resource whose protections you want to retrieve.
|
List<String> |
resourceTypesAsStrings()
The type of protected resource whose protections you want to retrieve.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InclusionProtectionFilters.Builder> |
serializableBuilderClass() |
InclusionProtectionFilters.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasResourceArns()
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> resourceArns()
The ARN (Amazon Resource Name) of the resource whose protection 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 hasResourceArns() method.
public final boolean hasProtectionNames()
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> protectionNames()
The name of the protection 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 hasProtectionNames() method.
public final List<ProtectedResourceType> resourceTypes()
The type of protected resource whose protections 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 hasResourceTypes() method.
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 type of protected resource whose protections 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 hasResourceTypes() method.
public InclusionProtectionFilters.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InclusionProtectionFilters.Builder,InclusionProtectionFilters>public static InclusionProtectionFilters.Builder builder()
public static Class<? extends InclusionProtectionFilters.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.