codegen/smithy-aws-go-codegen/src/main/java/software/amazon/smithy/aws/go/codegen/customization/Route53Customizations.java
private static boolean supportsHostedZoneIDValue(Model model, ServiceShape service, OperationShape operation) {
        if (!isRoute53Service(model, service)) {
            return false;
        }

        StructureShape input = model.expectShape(operation.getInput().get(), StructureShape.class);
        List<MemberShape> targetMembers = input.getAllMembers().values().stream().filter(
                memberShape -> memberShape.getTarget().getName(service).equalsIgnoreCase("ResourceId") ||
                        memberShape.getTarget().getName(service).equalsIgnoreCase("DelegationSetId")
        ).collect(Collectors.toList());

        if (targetMembers.size() >1 ){
            throw new CodegenException(String.format("Route53 service has ResourceId, DelegationSetId members " +
                            "modeled on %s shape", input.getId().getName(service)));
        }

        return targetMembers.size() != 0;
    }
// For Route53, HostedZoneID is supported by member shapes targeting `ResourceId` or `DelegationSetId`.
For Route53, HostedZoneID is supported by member shapes targeting `ResourceId` or `DelegationSetId`.
For Route53 HostedZoneID is supported by member shapes targeting ` ResourceId ` or ` DelegationSetId ` .
private static boolean supportsHostedZoneIDValue(Model model, ServiceShape service, OperationShape operation) {
        if (!isRoute53Service(model, service)) {
            return false;
        }
        StructureShape input = model.expectShape(operation.getInput().get(), StructureShape.class);
        List<MemberShape> targetMembers = input.getAllMembers().values().stream().filter(
                memberShape -> memberShape.getTarget().getName(service).equalsIgnoreCase("ResourceId") ||
                        memberShape.getTarget().getName(service).equalsIgnoreCase("DelegationSetId")
        ).collect(Collectors.toList());
        if (targetMembers.size() >1 ){
            throw new CodegenException(String.format("Route53 service has ResourceId, DelegationSetId members " +
                            "modeled on %s shape", input.getId().getName(service)));
        }
        return targetMembers.size() != 0;
    }
private static boolean supportsHostedZoneIDValue ( Model model , ServiceShape service , OperationShape operation ) { if ( ! isRoute53Service ( model , service ) ) { return false ; } StructureShape input = model . expectShape ( operation . getInput ( ) . get ( ) , StructureShape . class ) ; List < MemberShape > targetMembers = input . getAllMembers ( ) . values ( ) . stream ( ) . filter ( memberShape -> memberShape . getTarget ( ) . getName ( service ) . equalsIgnoreCase ( "ResourceId" ) || memberShape . getTarget ( ) . getName ( service ) . equalsIgnoreCase ( "DelegationSetId" ) ) . collect ( Collectors . toList ( ) ) ; if ( targetMembers . size ( ) > 1 ) { throw new CodegenException ( String . format ( "Route53 service has ResourceId, DelegationSetId members " + "modeled on %s shape" , input . getId ( ) . getName ( service ) ) ) ; } return targetMembers . size ( ) != 0 ; }
For Route53, HostedZoneID is supported by member shapes targeting `ResourceId` or `DelegationSetId`.
For Route53 HostedZoneID is supported by member shapes targeting ` ResourceId ` or ` DelegationSetId ` .