@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.
Used to filter resources using their tags and assign them to a backup plan. Case sensitive.
| 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 applied to a key-value pair used to assign resources to your backup plan.
|
String |
conditionTypeAsString()
An operation applied to a key-value pair used to assign resources to your backup plan.
|
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 applied to a key-value pair used to assign resources to your backup plan. Condition only supports
StringEquals. For more flexible assignment options, including StringLike and the
ability to exclude resources from your backup plan, use Conditions (with an "s" on the end) for your
BackupSelection .
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. For more flexible assignment options, including
StringLike and the ability to exclude resources from your backup plan, use
Conditions (with an "s" on the end) for your
BackupSelection .ConditionTypepublic final String conditionTypeAsString()
An operation applied to a key-value pair used to assign resources to your backup plan. Condition only supports
StringEquals. For more flexible assignment options, including StringLike and the
ability to exclude resources from your backup plan, use Conditions (with an "s" on the end) for your
BackupSelection .
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. For more flexible assignment options, including
StringLike and the ability to exclude resources from your backup plan, use
Conditions (with an "s" on the end) for your
BackupSelection .ConditionTypepublic final String conditionKey()
The key in a key-value pair. For example, in the tag Department: Accounting, Department
is the key.
Department: Accounting,
Department is the key.public final String conditionValue()
The value in a key-value pair. For example, in the tag Department: Accounting,
Accounting is the value.
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 © 2023. All rights reserved.