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