@Override
    public Node toNode() {
        ObjectNode.Builder builder = ObjectNode.builder()
                .withMember(TYPE, Node.from(type))
                .withOptionalMember(DOCUMENTATION, getDocumentation().map(Node::from))
                .withOptionalMember(EXTERNAL_DOCUMENTATION, getExternalDocumentation().map(Node::from))
                .withOptionalMember(RELATIVE_DOCUMENTATION, getRelativeDocumentation().map(Node::from));
        if (required) {
            builder.withMember(REQUIRED, true);
        }
        return builder.build();
    }
Whether a service resolved condition key is required. Not applicable to request resolved condition keys,
as the native @required trait must be used.

@return If the service resolved condition key is required.
smithy-aws-iam-traits/src/main/java/software/amazon/smithy/aws/iam/traits/ConditionKeyDefinition.java