@Stability(value=Stable)
public static interface CfnComponent.ComponentConditionPropertyProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
Object bindings;
ComponentPropertyProperty componentPropertyProperty_;
ComponentConditionPropertyProperty componentConditionPropertyProperty = ComponentConditionPropertyProperty.builder()
.else(ComponentPropertyProperty.builder()
.bindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.bindings(bindings)
.collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.componentName("componentName")
.concat(List.of(componentPropertyProperty_))
.condition(ComponentConditionPropertyProperty.builder()
.else(componentPropertyProperty_)
.field("field")
.operand("operand")
.operandType("operandType")
.operator("operator")
.property("property")
.then(componentPropertyProperty_)
.build())
.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(bindings)
.collectionBindingProperties(ComponentPropertyBindingPropertiesProperty.builder()
.property("property")
// the properties below are optional
.field("field")
.build())
.componentName("componentName")
.concat(List.of(componentPropertyProperty_))
.condition(ComponentConditionPropertyProperty.builder()
.else(componentPropertyProperty_)
.field("field")
.operand("operand")
.operandType("operandType")
.operator("operator")
.property("property")
.then(componentPropertyProperty_)
.build())
.configured(false)
.defaultValue("defaultValue")
.event("event")
.importedValue("importedValue")
.model("model")
.property("property")
.type("type")
.userAttribute("userAttribute")
.value("value")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnComponent.ComponentConditionPropertyProperty.Builder
A builder for
CfnComponent.ComponentConditionPropertyProperty |
static class |
CfnComponent.ComponentConditionPropertyProperty.Jsii$Proxy
An implementation for
CfnComponent.ComponentConditionPropertyProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnComponent.ComponentConditionPropertyProperty.Builder |
builder() |
default Object |
getElseValue()
The value to assign to the property if the condition is not met.
|
default String |
getField()
The name of a field.
|
default String |
getOperand()
The value of the property to evaluate.
|
default String |
getOperandType()
The type of the property to evaluate.
|
default String |
getOperator()
The operator to use to perform the evaluation, such as `eq` to represent equals.
|
default String |
getProperty()
The name of the conditional property.
|
default Object |
getThen()
The value to assign to the property if the condition is met.
|
@Stability(value=Stable) @Nullable default Object getElseValue()
@Stability(value=Stable) @Nullable default String getField()
Specify this when the property is a data model.
@Stability(value=Stable) @Nullable default String getOperand()
@Stability(value=Stable) @Nullable default String getOperandType()
@Stability(value=Stable) @Nullable default String getOperator()
@Stability(value=Stable) @Nullable default String getProperty()
@Stability(value=Stable) @Nullable default Object getThen()
@Stability(value=Stable) static CfnComponent.ComponentConditionPropertyProperty.Builder builder()
Copyright © 2022. All rights reserved.