public Optional < PipelineSchedule > getOptionalPipelineSchedule ( Object projectIdOrPath , Integer pipelineScheduleId ) { try { return ( Optional . ofNullable ( getPipelineSchedule ( projectIdOrPath , pipelineScheduleId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get a specific pipeline schedule for project as an Optional instance .