@Override
    public Builder toBuilder() {
        return builder().sourceLocation(getSourceLocation()).required(required);
    }
@return Returns whether or not the service requires endpoint discovery.
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/clientendpointdiscovery/ClientDiscoveredEndpointTrait.java