def form_text_field_type=(form_text_field_type)
      validator = EnumAttributeValidator.new('String', ["AllTextTypes", "PlainText", "RichText"])
      if form_text_field_type.to_i == 0
        unless validator.valid?(form_text_field_type)
          raise ArgumentError, "invalid value for 'form_text_field_type', must be one of #{validator.allowable_values}."
        end
        @form_text_field_type = form_text_field_type
      else
        @form_text_field_type = validator.allowable_values[form_text_field_type.to_i]
      end
    end
def form_text_field_type=(form_text_field_type)
      validator = EnumAttributeValidator.new('String', ["AllTextTypes", "PlainText", "RichText"])
      if form_text_field_type.to_i == 0
        unless validator.valid?(form_text_field_type)
          raise ArgumentError, "invalid value for 'form_text_field_type', must be one of #{validator.allowable_values}."
        end
        @form_text_field_type = form_text_field_type
      else
        @form_text_field_type = validator.allowable_values[form_text_field_type.to_i]
      end
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] form_text_field_type Object to be assigned