# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::MTurk # @api private module Endpoints class AcceptQualificationRequest def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ApproveAssignment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class AssociateQualificationWithWorker def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateAdditionalAssignmentsForHIT def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateHIT def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateHITType def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateHITWithHITType def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateQualificationType def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class CreateWorkerBlock def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteHIT def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteQualificationType def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DeleteWorkerBlock def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class DisassociateQualificationFromWorker def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class GetAccountBalance def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class GetAssignment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class GetFileUploadURL def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class GetHIT def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class GetQualificationScore def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class GetQualificationType def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListAssignmentsForHIT def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListBonusPayments def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListHITs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListHITsForQualificationType def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListQualificationRequests def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListQualificationTypes def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListReviewPolicyResultsForHIT def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListReviewableHITs def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListWorkerBlocks def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class ListWorkersWithQualificationType def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class NotifyWorkers def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class RejectAssignment def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class RejectQualificationRequest def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class SendBonus def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class SendTestEventNotification def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateExpirationForHIT def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateHITReviewStatus def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateHITTypeOfHIT def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateNotificationSettings def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end class UpdateQualificationType def self.build(context) unless context.config.regional_endpoint endpoint = context.config.endpoint.to_s end Aws::MTurk::EndpointParameters.new( region: context.config.region, use_dual_stack: context.config.use_dualstack_endpoint, use_fips: context.config.use_fips_endpoint, endpoint: endpoint, ) end end end end