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