Class ComponentConditionProperty
- java.lang.Object
-
- software.amazon.awssdk.services.amplifyuibuilder.model.ComponentConditionProperty
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ComponentConditionProperty.Builder,ComponentConditionProperty>
@Generated("software.amazon.awssdk:codegen") public final class ComponentConditionProperty extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComponentConditionProperty.Builder,ComponentConditionProperty>
Represents a conditional expression to set a component property. Use
ComponentConditionPropertyto set a property to different values conditionally, based on the value of another property.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceComponentConditionProperty.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentConditionProperty.Builderbuilder()ComponentPropertyelseValue()The value to assign to the property if the condition is not met.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringfield()The name of a field.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringoperand()The value of the property to evaluate.StringoperandType()The type of the property to evaluate.Stringoperator()The operator to use to perform the evaluation, such aseqto represent equals.Stringproperty()The name of the conditional property.List<SdkField<?>>sdkFields()static Class<? extends ComponentConditionProperty.Builder>serializableBuilderClass()ComponentPropertythen()The value to assign to the property if the condition is met.ComponentConditionProperty.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
-
property
public final String property()
The name of the conditional property.
- Returns:
- The name of the conditional property.
-
field
public final String field()
The name of a field. Specify this when the property is a data model.
- Returns:
- The name of a field. Specify this when the property is a data model.
-
operator
public final String operator()
The operator to use to perform the evaluation, such as
eqto represent equals.- Returns:
- The operator to use to perform the evaluation, such as
eqto represent equals.
-
operand
public final String operand()
The value of the property to evaluate.
- Returns:
- The value of the property to evaluate.
-
then
public final ComponentProperty then()
The value to assign to the property if the condition is met.
- Returns:
- The value to assign to the property if the condition is met.
-
elseValue
public final ComponentProperty elseValue()
The value to assign to the property if the condition is not met.
- Returns:
- The value to assign to the property if the condition is not met.
-
operandType
public final String operandType()
The type of the property to evaluate.
- Returns:
- The type of the property to evaluate.
-
toBuilder
public ComponentConditionProperty.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ComponentConditionProperty.Builder,ComponentConditionProperty>
-
builder
public static ComponentConditionProperty.Builder builder()
-
serializableBuilderClass
public static Class<? extends ComponentConditionProperty.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.
-
-