public boolean isRequired() {
        return required;
    }
Deprecated in favor of {@link ClientEndpointDiscoveryInfo#getOptionalError()}.
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/clientendpointdiscovery/ClientEndpointDiscoveryInfo.java