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