@Generated(value="software.amazon.awssdk:codegen") public final class Condition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Condition.Builder,Condition>
A conditional statement with which to compare a value, after a timestamp, before a timestamp, or equal to a string or
integer. If multiple conditions are specified, the conditionals become an ANDed statement. If multiple
values are specified for a conditional, the values are ORd.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Condition.Builder |
static class |
Condition.Type |
| Modifier and Type | Method and Description |
|---|---|
Instant |
after()
After the specified timestamp.
|
Instant |
before()
Before the specified timestamp
|
static Condition.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
AttributeValueList |
equalsValue()
The value is equal to the provided string or integer.
|
static Condition |
fromAfter(Instant after)
Create an instance of this class with
after() initialized to the given value. |
static Condition |
fromBefore(Instant before)
Create an instance of this class with
before() initialized to the given value. |
static Condition |
fromEqualsValue(AttributeValueList equalsValue)
Create an instance of this class with
equalsValue() initialized to the given value. |
static Condition |
fromEqualsValue(Consumer<AttributeValueList.Builder> equalsValue)
Create an instance of this class with
equalsValue() initialized to the given value. |
<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.
|
Condition.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Instant after()
After the specified timestamp.
public final Instant before()
Before the specified timestamp
public final AttributeValueList equalsValue()
The value is equal to the provided string or integer.
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()
public static Condition fromAfter(Instant after)
after() initialized to the given value.
After the specified timestamp.
after - After the specified timestamp.public static Condition fromBefore(Instant before)
before() initialized to the given value.
Before the specified timestamp
before - Before the specified timestamppublic static Condition fromEqualsValue(AttributeValueList equalsValue)
equalsValue() initialized to the given value.
The value is equal to the provided string or integer.
equalsValue - The value is equal to the provided string or integer.public static Condition fromEqualsValue(Consumer<AttributeValueList.Builder> equalsValue)
equalsValue() initialized to the given value.
The value is equal to the provided string or integer.
equalsValue - The value is equal to the provided string or integer.public Condition.Type type()
Condition.Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be Condition.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.