Class CfnComponent.ComponentConditionPropertyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnComponent.ComponentConditionPropertyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponent.ComponentConditionPropertyProperty>
- Enclosing interface:
CfnComponent.ComponentConditionPropertyProperty
@Stability(Stable)
public static final class CfnComponent.ComponentConditionPropertyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponent.ComponentConditionPropertyProperty>
A builder for
CfnComponent.ComponentConditionPropertyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.elseValue
(IResolvable elseValue) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getElseValue()
elseValue
(CfnComponent.ComponentPropertyProperty elseValue) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getElseValue()
Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getField()
Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getOperand()
operandType
(String operandType) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getOperandType()
Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getOperator()
Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getProperty()
then
(IResolvable then) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getThen()
Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getThen()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
elseValue
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder elseValue(IResolvable elseValue) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getElseValue()
- Parameters:
elseValue
- The value to assign to the property if the condition is not met.- Returns:
this
-
elseValue
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder elseValue(CfnComponent.ComponentPropertyProperty elseValue) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getElseValue()
- Parameters:
elseValue
- The value to assign to the property if the condition is not met.- Returns:
this
-
field
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder field(String field) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getField()
- Parameters:
field
- The name of a field. Specify this when the property is a data model.- Returns:
this
-
operand
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder operand(String operand) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getOperand()
- Parameters:
operand
- The value of the property to evaluate.- Returns:
this
-
operandType
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder operandType(String operandType) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getOperandType()
- Parameters:
operandType
- The type of the property to evaluate.- Returns:
this
-
operator
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder operator(String operator) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getOperator()
- Parameters:
operator
- The operator to use to perform the evaluation, such aseq
to represent equals.- Returns:
this
-
property
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder property(String property) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getProperty()
- Parameters:
property
- The name of the conditional property.- Returns:
this
-
then
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder then(IResolvable then) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getThen()
- Parameters:
then
- The value to assign to the property if the condition is met.- Returns:
this
-
then
@Stability(Stable) public CfnComponent.ComponentConditionPropertyProperty.Builder then(CfnComponent.ComponentPropertyProperty then) Sets the value ofCfnComponent.ComponentConditionPropertyProperty.getThen()
- Parameters:
then
- The value to assign to the property if the condition is met.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnComponent.ComponentConditionPropertyProperty>
- Returns:
- a new instance of
CfnComponent.ComponentConditionPropertyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-