Class StringCondition
- java.lang.Object
-
- software.amazon.awssdk.services.connect.model.StringCondition
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<StringCondition.Builder,StringCondition>
@Generated("software.amazon.awssdk:codegen") public final class StringCondition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StringCondition.Builder,StringCondition>
A leaf node condition which can be used to specify a string condition.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
StringCondition.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringCondition.Builder
builder()
StringComparisonType
comparisonType()
The type of comparison to be made when evaluating the string condition.String
comparisonTypeAsString()
The type of comparison to be made when evaluating the string condition.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
String
fieldName()
The name of the field in the string condition.<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends StringCondition.Builder>
serializableBuilderClass()
StringCondition.Builder
toBuilder()
String
toString()
Returns a string representation of this object.String
value()
The value of the string.-
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
-
fieldName
public final String fieldName()
The name of the field in the string condition.
- Returns:
- The name of the field in the string condition.
-
value
public final String value()
The value of the string.
- Returns:
- The value of the string.
-
comparisonType
public final StringComparisonType comparisonType()
The type of comparison to be made when evaluating the string condition.
If the service returns an enum value that is not available in the current SDK version,
comparisonType
will returnStringComparisonType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcomparisonTypeAsString()
.- Returns:
- The type of comparison to be made when evaluating the string condition.
- See Also:
StringComparisonType
-
comparisonTypeAsString
public final String comparisonTypeAsString()
The type of comparison to be made when evaluating the string condition.
If the service returns an enum value that is not available in the current SDK version,
comparisonType
will returnStringComparisonType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcomparisonTypeAsString()
.- Returns:
- The type of comparison to be made when evaluating the string condition.
- See Also:
StringComparisonType
-
toBuilder
public StringCondition.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<StringCondition.Builder,StringCondition>
-
builder
public static StringCondition.Builder builder()
-
serializableBuilderClass
public static Class<? extends StringCondition.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-