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