Class Condition
- java.lang.Object
-
- software.amazon.awssdk.services.backup.model.Condition
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Condition.Builder,Condition>
@Generated("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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCondition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Condition.Builderbuilder()StringconditionKey()The key in a key-value pair.ConditionTypeconditionType()An operation applied to a key-value pair used to assign resources to your backup plan.StringconditionTypeAsString()An operation applied to a key-value pair used to assign resources to your backup plan.StringconditionValue()The value in a key-value pair.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Condition.Builder>serializableBuilderClass()Condition.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
conditionType
public 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, includingStringLikeand the ability to exclude resources from your backup plan, useConditions(with an "s" on the end) for yourBackupSelection.If the service returns an enum value that is not available in the current SDK version,
conditionTypewill returnConditionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconditionTypeAsString().- Returns:
- 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, includingStringLikeand the ability to exclude resources from your backup plan, useConditions(with an "s" on the end) for yourBackupSelection. - See Also:
ConditionType
-
conditionTypeAsString
public 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, includingStringLikeand the ability to exclude resources from your backup plan, useConditions(with an "s" on the end) for yourBackupSelection.If the service returns an enum value that is not available in the current SDK version,
conditionTypewill returnConditionType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconditionTypeAsString().- Returns:
- 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, includingStringLikeand the ability to exclude resources from your backup plan, useConditions(with an "s" on the end) for yourBackupSelection. - See Also:
ConditionType
-
conditionKey
public final String conditionKey()
The key in a key-value pair. For example, in the tag
Department: Accounting,Departmentis the key.- Returns:
- The key in a key-value pair. For example, in the tag
Department: Accounting,Departmentis the key.
-
conditionValue
public final String conditionValue()
The value in a key-value pair. For example, in the tag
Department: Accounting,Accountingis the value.- Returns:
- The value in a key-value pair. For example, in the tag
Department: Accounting,Accountingis the value.
-
toBuilder
public Condition.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Condition.Builder,Condition>
-
builder
public static Condition.Builder builder()
-
serializableBuilderClass
public static Class<? extends Condition.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-