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