@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProtectedResourceConditions extends Object implements Serializable, Cloneable, StructuredPojo
A list of conditions that you define for resources in your restore testing plan using tags.
For example, "StringEquals": { "Key": "aws:ResourceTag/CreatedByCryo", "Value": "true" },
. Condition
operators are case sensitive.
Constructor and Description |
---|
ProtectedResourceConditions() |
Modifier and Type | Method and Description |
---|---|
ProtectedResourceConditions |
clone() |
boolean |
equals(Object obj) |
List<KeyValue> |
getStringEquals()
Filters the values of your tagged resources for only those resources that you tagged with the same value.
|
List<KeyValue> |
getStringNotEquals()
Filters the values of your tagged resources for only those resources that you tagged that do not have the same
value.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setStringEquals(Collection<KeyValue> stringEquals)
Filters the values of your tagged resources for only those resources that you tagged with the same value.
|
void |
setStringNotEquals(Collection<KeyValue> stringNotEquals)
Filters the values of your tagged resources for only those resources that you tagged that do not have the same
value.
|
String |
toString()
Returns a string representation of this object.
|
ProtectedResourceConditions |
withStringEquals(Collection<KeyValue> stringEquals)
Filters the values of your tagged resources for only those resources that you tagged with the same value.
|
ProtectedResourceConditions |
withStringEquals(KeyValue... stringEquals)
Filters the values of your tagged resources for only those resources that you tagged with the same value.
|
ProtectedResourceConditions |
withStringNotEquals(Collection<KeyValue> stringNotEquals)
Filters the values of your tagged resources for only those resources that you tagged that do not have the same
value.
|
ProtectedResourceConditions |
withStringNotEquals(KeyValue... stringNotEquals)
Filters the values of your tagged resources for only those resources that you tagged that do not have the same
value.
|
public List<KeyValue> getStringEquals()
Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
public void setStringEquals(Collection<KeyValue> stringEquals)
Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
stringEquals
- Filters the values of your tagged resources for only those resources that you tagged with the same value.
Also called "exact matching."public ProtectedResourceConditions withStringEquals(KeyValue... stringEquals)
Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
NOTE: This method appends the values to the existing list (if any). Use
setStringEquals(java.util.Collection)
or withStringEquals(java.util.Collection)
if you want to
override the existing values.
stringEquals
- Filters the values of your tagged resources for only those resources that you tagged with the same value.
Also called "exact matching."public ProtectedResourceConditions withStringEquals(Collection<KeyValue> stringEquals)
Filters the values of your tagged resources for only those resources that you tagged with the same value. Also called "exact matching."
stringEquals
- Filters the values of your tagged resources for only those resources that you tagged with the same value.
Also called "exact matching."public List<KeyValue> getStringNotEquals()
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
public void setStringNotEquals(Collection<KeyValue> stringNotEquals)
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
stringNotEquals
- Filters the values of your tagged resources for only those resources that you tagged that do not have the
same value. Also called "negated matching."public ProtectedResourceConditions withStringNotEquals(KeyValue... stringNotEquals)
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
NOTE: This method appends the values to the existing list (if any). Use
setStringNotEquals(java.util.Collection)
or withStringNotEquals(java.util.Collection)
if you
want to override the existing values.
stringNotEquals
- Filters the values of your tagged resources for only those resources that you tagged that do not have the
same value. Also called "negated matching."public ProtectedResourceConditions withStringNotEquals(Collection<KeyValue> stringNotEquals)
Filters the values of your tagged resources for only those resources that you tagged that do not have the same value. Also called "negated matching."
stringNotEquals
- Filters the values of your tagged resources for only those resources that you tagged that do not have the
same value. Also called "negated matching."public String toString()
toString
in class Object
Object.toString()
public ProtectedResourceConditions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.