# frozen_string_literal: false

# ----------------------------------------------------------------------------
#
#     ***     AUTO GENERATED CODE    ***    Type: MMv1     ***
#
# ----------------------------------------------------------------------------
#
#     This file is automatically generated by Magic Modules and manual
#     changes will be clobbered when the file is regenerated.
#
#     Please read more about how to change this file in README.md and
#     CONTRIBUTING.md located at the root of this package.
#
# ----------------------------------------------------------------------------
require 'google/dataproc/property/job_hive_job_properties'
require 'google/dataproc/property/job_hive_job_query_list'
require 'google/dataproc/property/job_hive_job_script_variables'
module GoogleInSpec
  module Dataproc
    module Property
      class JobHiveJob
        attr_reader :query_file_uri

        attr_reader :query_list

        attr_reader :continue_on_failure

        attr_reader :script_variables

        attr_reader :properties

        attr_reader :jar_file_uris

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @query_file_uri = args['queryFileUri']
          @query_list = GoogleInSpec::Dataproc::Property::JobHiveJobQueryList.new(args['queryList'], to_s)
          @continue_on_failure = args['continueOnFailure']
          @script_variables = GoogleInSpec::Dataproc::Property::JobHiveJobScriptVariables.new(args['scriptVariables'], to_s)
          @properties = GoogleInSpec::Dataproc::Property::JobHiveJobProperties.new(args['properties'], to_s)
          @jar_file_uris = args['jarFileUris']
        end

        def to_s
          "#{@parent_identifier} JobHiveJob"
        end
      end
    end
  end
end
