def from_state=(from_state)
      validator = EnumAttributeValidator.new('String', ["CUSTOM", "IN_STOCK", "SOLD", "RETURNED_BY_CUSTOMER", "RESERVED_FOR_SALE", "SOLD_ONLINE", "ORDERED_FROM_VENDOR", "RECEIVED_FROM_VENDOR", "IN_TRANSIT_TO", "NONE", "WASTE", "UNLINKED_RETURN"])
      unless validator.valid?(from_state)
        fail ArgumentError, "invalid value for 'from_state', must be one of #{validator.allowable_values}."
      end
      @from_state = from_state
    end
def from_state=(from_state)
      validator = EnumAttributeValidator.new('String', ["CUSTOM", "IN_STOCK", "SOLD", "RETURNED_BY_CUSTOMER", "RESERVED_FOR_SALE", "SOLD_ONLINE", "ORDERED_FROM_VENDOR", "RECEIVED_FROM_VENDOR", "IN_TRANSIT_TO", "NONE", "WASTE", "UNLINKED_RETURN"])
      unless validator.valid?(from_state)
        fail ArgumentError, "invalid value for 'from_state', must be one of #{validator.allowable_values}."
      end
      @from_state = from_state
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] from_state Object to be assigned