Interface CfnCaseRule.RequiredCaseRuleProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCaseRule.RequiredCaseRuleProperty.Jsii$Proxy
- Enclosing class:
CfnCaseRule
@Stability(Stable)
public static interface CfnCaseRule.RequiredCaseRuleProperty
extends software.amazon.jsii.JsiiSerializable
Required rule type, used to indicate whether a field is required.
In the Amazon Connect admin website, case rules are known as case field conditions . For more information about case field conditions, see Add case field conditions to a case template .
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.cases.*;
Object emptyValue;
RequiredCaseRuleProperty requiredCaseRuleProperty = RequiredCaseRuleProperty.builder()
.conditions(List.of(BooleanConditionProperty.builder()
.equalTo(BooleanOperandsProperty.builder()
.operandOne(OperandOneProperty.builder()
.fieldId("fieldId")
.build())
.operandTwo(OperandTwoProperty.builder()
.booleanValue(false)
.doubleValue(123)
.emptyValue(emptyValue)
.stringValue("stringValue")
.build())
.result(false)
.build())
.notEqualTo(BooleanOperandsProperty.builder()
.operandOne(OperandOneProperty.builder()
.fieldId("fieldId")
.build())
.operandTwo(OperandTwoProperty.builder()
.booleanValue(false)
.doubleValue(123)
.emptyValue(emptyValue)
.stringValue("stringValue")
.build())
.result(false)
.build())
.build()))
.defaultValue(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCaseRule.RequiredCaseRulePropertystatic final classAn implementation forCfnCaseRule.RequiredCaseRuleProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()List of conditions for the required rule;The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getConditions
List of conditions for the required rule;the first condition to evaluate to true dictates the value of the rule.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnCaseRule.BooleanConditionProperty>- See Also:
-
getDefaultValue
The value of the rule (that is, whether the field is required) should none of the conditions evaluate to true.Returns union: either
BooleanorIResolvable- See Also:
-
builder
-