Interface CfnComponent.ComponentConditionPropertyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnComponent.ComponentConditionPropertyProperty.Jsii$Proxy
- Enclosing class:
CfnComponent
@Stability(Stable)
public static interface CfnComponent.ComponentConditionPropertyProperty
extends software.amazon.jsii.JsiiSerializable
The
ComponentConditionProperty property specifies a conditional expression for setting a component property.
Use ComponentConditionProperty to set a property to different values conditionally, based on the value of another property.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.amplifyuibuilder.*;
ComponentConditionPropertyProperty componentConditionPropertyProperty_;
ComponentPropertyProperty componentPropertyProperty_;
ComponentConditionPropertyProperty componentConditionPropertyProperty = ComponentConditionPropertyProperty.builder()
.else(ComponentPropertyProperty.builder()
.bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.bindings(Map.of(
"bindingsKey", FormBindingElementProperty.builder()
.element("element")
.property("property")
.build()))
.collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.componentName("componentName")
.concat(List.of(componentPropertyProperty_))
.condition(componentConditionPropertyProperty_)
.configured(false)
.defaultValue("defaultValue")
.event("event")
.importedValue("importedValue")
.model("model")
.property("property")
.type("type")
.userAttribute("userAttribute")
.value("value")
.build())
.field("field")
.operand("operand")
.operandType("operandType")
.operator("operator")
.property("property")
.then(ComponentPropertyProperty.builder()
.bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.bindings(Map.of(
"bindingsKey", FormBindingElementProperty.builder()
.element("element")
.property("property")
.build()))
.collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.componentName("componentName")
.concat(List.of(componentPropertyProperty_))
.condition(componentConditionPropertyProperty_)
.configured(false)
.defaultValue("defaultValue")
.event("event")
.importedValue("importedValue")
.model("model")
.property("property")
.type("type")
.userAttribute("userAttribute")
.value("value")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnComponent.ComponentConditionPropertyPropertystatic final classAn implementation forCfnComponent.ComponentConditionPropertyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe value to assign to the property if the condition is not met.default StringgetField()The name of a field.default StringThe value of the property to evaluate.default StringThe type of the property to evaluate.default StringThe operator to use to perform the evaluation, such aseqto represent equals.default StringThe name of the conditional property.default ObjectgetThen()The value to assign to the property if the condition is met.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getElseValue
The value to assign to the property if the condition is not met.Returns union: either
IResolvableorCfnComponent.ComponentPropertyProperty- See Also:
-
getField
The name of a field.Specify this when the property is a data model.
- See Also:
-
getOperand
The value of the property to evaluate.- See Also:
-
getOperandType
The type of the property to evaluate.- See Also:
-
getOperator
The operator to use to perform the evaluation, such aseqto represent equals.- See Also:
-
getProperty
The name of the conditional property.- See Also:
-
getThen
The value to assign to the property if the condition is met.Returns union: either
IResolvableorCfnComponent.ComponentPropertyProperty- See Also:
-
builder
-