def rule=(rule)
      validator = EnumAttributeValidator.new('String', ["INCLUDE", "EXCLUDE"])
      unless validator.valid?(rule)
        fail ArgumentError, "invalid value for 'rule', must be one of #{validator.allowable_values}."
      end
      @rule = rule
    end
def rule=(rule)
      validator = EnumAttributeValidator.new('String', ["INCLUDE", "EXCLUDE"])
      unless validator.valid?(rule)
        fail ArgumentError, "invalid value for 'rule', must be one of #{validator.allowable_values}."
      end
      @rule = rule
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] rule Object to be assigned