@Generated(value="software.amazon.awssdk:codegen") public final class Condition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Condition.Builder,Condition>
Contains an array of triplets made up of a condition type (such as StringEquals), a key, and a value.
Conditions are used to filter resources in a selection that is assigned to a backup plan.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Condition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Condition.Builder |
builder() |
String |
conditionKey()
The key in a key-value pair.
|
ConditionType |
conditionType()
An operation, such as
StringEquals, that is applied to a key-value pair used to filter resources in
a selection. |
String |
conditionTypeAsString()
An operation, such as
StringEquals, that is applied to a key-value pair used to filter resources in
a selection. |
String |
conditionValue()
The value in a key-value pair.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Condition.Builder> |
serializableBuilderClass() |
Condition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final ConditionType conditionType()
An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in
a selection.
If the service returns an enum value that is not available in the current SDK version, conditionType
will return ConditionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
conditionTypeAsString().
StringEquals, that is applied to a key-value pair used to filter
resources in a selection.ConditionTypepublic final String conditionTypeAsString()
An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in
a selection.
If the service returns an enum value that is not available in the current SDK version, conditionType
will return ConditionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
conditionTypeAsString().
StringEquals, that is applied to a key-value pair used to filter
resources in a selection.ConditionTypepublic final String conditionKey()
The key in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting",
"ec2:ResourceTag/Department" is the key.
"ec2:ResourceTag/Department": "accounting",
"ec2:ResourceTag/Department" is the key.public final String conditionValue()
The value in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting",
"accounting" is the value.
"ec2:ResourceTag/Department": "accounting",
"accounting" is the value.public Condition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Condition.Builder,Condition>public static Condition.Builder builder()
public static Class<? extends Condition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.