# 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/dlp/property/inspecttemplate_inspect_config_rule_set_rules_hotword_rule_hotword_regex'
require 'google/dlp/property/inspecttemplate_inspect_config_rule_set_rules_hotword_rule_likelihood_adjustment'
require 'google/dlp/property/inspecttemplate_inspect_config_rule_set_rules_hotword_rule_proximity'
module GoogleInSpec
  module DLP
    module Property
      class InspectTemplateInspectConfigRuleSetRulesHotwordRule
        attr_reader :hotword_regex

        attr_reader :proximity

        attr_reader :likelihood_adjustment

        def initialize(args = nil, parent_identifier = nil)
          return if args.nil?
          @parent_identifier = parent_identifier
          @hotword_regex = GoogleInSpec::DLP::Property::InspectTemplateInspectConfigRuleSetRulesHotwordRuleHotwordRegex.new(args['hotwordRegex'], to_s)
          @proximity = GoogleInSpec::DLP::Property::InspectTemplateInspectConfigRuleSetRulesHotwordRuleProximity.new(args['proximity'], to_s)
          @likelihood_adjustment = GoogleInSpec::DLP::Property::InspectTemplateInspectConfigRuleSetRulesHotwordRuleLikelihoodAdjustment.new(args['likelihoodAdjustment'], to_s)
        end

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