@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InclusionProtectionFilters extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
InclusionProtectionFilters() |
Modifier and Type | Method and Description |
---|---|
InclusionProtectionFilters |
clone() |
boolean |
equals(Object obj) |
List<String> |
getProtectionNames()
The name of the protection that you want to retrieve.
|
List<String> |
getResourceArns()
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
|
List<String> |
getResourceTypes()
The type of protected resource whose protections you want to retrieve.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setProtectionNames(Collection<String> protectionNames)
The name of the protection that you want to retrieve.
|
void |
setResourceArns(Collection<String> resourceArns)
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
|
void |
setResourceTypes(Collection<String> resourceTypes)
The type of protected resource whose protections you want to retrieve.
|
String |
toString()
Returns a string representation of this object.
|
InclusionProtectionFilters |
withProtectionNames(Collection<String> protectionNames)
The name of the protection that you want to retrieve.
|
InclusionProtectionFilters |
withProtectionNames(String... protectionNames)
The name of the protection that you want to retrieve.
|
InclusionProtectionFilters |
withResourceArns(Collection<String> resourceArns)
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
|
InclusionProtectionFilters |
withResourceArns(String... resourceArns)
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
|
InclusionProtectionFilters |
withResourceTypes(Collection<String> resourceTypes)
The type of protected resource whose protections you want to retrieve.
|
InclusionProtectionFilters |
withResourceTypes(ProtectedResourceType... resourceTypes)
The type of protected resource whose protections you want to retrieve.
|
InclusionProtectionFilters |
withResourceTypes(String... resourceTypes)
The type of protected resource whose protections you want to retrieve.
|
public List<String> getResourceArns()
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
public void setResourceArns(Collection<String> resourceArns)
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
resourceArns
- The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.public InclusionProtectionFilters withResourceArns(String... resourceArns)
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
NOTE: This method appends the values to the existing list (if any). Use
setResourceArns(java.util.Collection)
or withResourceArns(java.util.Collection)
if you want to
override the existing values.
resourceArns
- The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.public InclusionProtectionFilters withResourceArns(Collection<String> resourceArns)
The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.
resourceArns
- The ARN (Amazon Resource Name) of the resource whose protection you want to retrieve.public List<String> getProtectionNames()
The name of the protection that you want to retrieve.
public void setProtectionNames(Collection<String> protectionNames)
The name of the protection that you want to retrieve.
protectionNames
- The name of the protection that you want to retrieve.public InclusionProtectionFilters withProtectionNames(String... protectionNames)
The name of the protection that you want to retrieve.
NOTE: This method appends the values to the existing list (if any). Use
setProtectionNames(java.util.Collection)
or withProtectionNames(java.util.Collection)
if you
want to override the existing values.
protectionNames
- The name of the protection that you want to retrieve.public InclusionProtectionFilters withProtectionNames(Collection<String> protectionNames)
The name of the protection that you want to retrieve.
protectionNames
- The name of the protection that you want to retrieve.public List<String> getResourceTypes()
The type of protected resource whose protections you want to retrieve.
ProtectedResourceType
public void setResourceTypes(Collection<String> resourceTypes)
The type of protected resource whose protections you want to retrieve.
resourceTypes
- The type of protected resource whose protections you want to retrieve.ProtectedResourceType
public InclusionProtectionFilters withResourceTypes(String... resourceTypes)
The type of protected resource whose protections you want to retrieve.
NOTE: This method appends the values to the existing list (if any). Use
setResourceTypes(java.util.Collection)
or withResourceTypes(java.util.Collection)
if you want
to override the existing values.
resourceTypes
- The type of protected resource whose protections you want to retrieve.ProtectedResourceType
public InclusionProtectionFilters withResourceTypes(Collection<String> resourceTypes)
The type of protected resource whose protections you want to retrieve.
resourceTypes
- The type of protected resource whose protections you want to retrieve.ProtectedResourceType
public InclusionProtectionFilters withResourceTypes(ProtectedResourceType... resourceTypes)
The type of protected resource whose protections you want to retrieve.
resourceTypes
- The type of protected resource whose protections you want to retrieve.ProtectedResourceType
public String toString()
toString
in class Object
Object.toString()
public InclusionProtectionFilters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.