codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/EndpointDiscoveryGenerator.java
private static boolean operationRequiresEndpointDiscovery(
            Model model, ServiceShape service, OperationShape operation
    ) {
        if (!operation.hasTrait(ClientDiscoveredEndpointTrait.class)) return false;

        return operation.expectTrait(ClientDiscoveredEndpointTrait.class).isRequired();
    }
// Returns true if operation requires endpoint discovery
Returns true if operation requires endpoint discovery
Returns true if operation requires endpoint discovery
private static boolean operationRequiresEndpointDiscovery(
            Model model, ServiceShape service, OperationShape operation
    ) {
        if (!operation.hasTrait(ClientDiscoveredEndpointTrait.class)) return false;
        return operation.expectTrait(ClientDiscoveredEndpointTrait.class).isRequired();
    }
private static boolean operationRequiresEndpointDiscovery ( Model model , ServiceShape service , OperationShape operation ) { if ( ! operation . hasTrait ( ClientDiscoveredEndpointTrait . class ) ) return false ; return operation . expectTrait ( ClientDiscoveredEndpointTrait . class ) . isRequired ( ) ; }
Returns true if operation requires endpoint discovery
Returns true if operation requires endpoint discovery