Class Jobs.Builder
- java.lang.Object
-
- com.intercom.api.resources.jobs.types.Jobs.Builder
-
- All Implemented Interfaces:
Jobs._FinalStage,Jobs.IdStage
- Enclosing class:
- Jobs
public static final class Jobs.Builder extends java.lang.Object implements Jobs.IdStage, Jobs._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Jobsbuild()Jobs.Builderfrom(Jobs other)Jobs._FinalStageid(java.lang.String id)The id of the job that's currently being processed or has completed.Jobs._FinalStageresourceId(java.lang.String resourceId)The id of the resource created during job execution (e.g.Jobs._FinalStageresourceId(java.util.Optional<java.lang.String> resourceId)The id of the resource created during job execution (e.g.Jobs._FinalStageresourceType(java.lang.String resourceType)The type of resource created during job execution.Jobs._FinalStageresourceType(java.util.Optional<java.lang.String> resourceType)The type of resource created during job execution.Jobs._FinalStageresourceUrl(java.lang.String resourceUrl)The url of the resource created during job exeuction.Jobs._FinalStageresourceUrl(java.util.Optional<java.lang.String> resourceUrl)The url of the resource created during job exeuction.Jobs._FinalStagestatus(Jobs.Status status)The status of the job execution.Jobs._FinalStagestatus(java.util.Optional<Jobs.Status> status)The status of the job execution.Jobs._FinalStagetype(java.lang.String type)The type of the objectJobs._FinalStagetype(java.util.Optional<java.lang.String> type)The type of the objectJobs._FinalStageurl(java.lang.String url)API endpoint URL to check the job status.Jobs._FinalStageurl(java.util.Optional<java.lang.String> url)API endpoint URL to check the job status.
-
-
-
Method Detail
-
from
public Jobs.Builder from(Jobs other)
- Specified by:
fromin interfaceJobs.IdStage
-
id
public Jobs._FinalStage id(@NotNull java.lang.String id)
The id of the job that's currently being processed or has completed.
The id of the job that's currently being processed or has completed.
- Specified by:
idin interfaceJobs.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resourceUrl
public Jobs._FinalStage resourceUrl(java.lang.String resourceUrl)
The url of the resource created during job exeuction. Use this url to fetch the resource.
- Specified by:
resourceUrlin interfaceJobs._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resourceUrl
public Jobs._FinalStage resourceUrl(java.util.Optional<java.lang.String> resourceUrl)
The url of the resource created during job exeuction. Use this url to fetch the resource.
- Specified by:
resourceUrlin interfaceJobs._FinalStage
-
resourceId
public Jobs._FinalStage resourceId(java.lang.String resourceId)
The id of the resource created during job execution (e.g. ticket id)
- Specified by:
resourceIdin interfaceJobs._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resourceId
public Jobs._FinalStage resourceId(java.util.Optional<java.lang.String> resourceId)
The id of the resource created during job execution (e.g. ticket id)
- Specified by:
resourceIdin interfaceJobs._FinalStage
-
resourceType
public Jobs._FinalStage resourceType(java.lang.String resourceType)
The type of resource created during job execution.
- Specified by:
resourceTypein interfaceJobs._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resourceType
public Jobs._FinalStage resourceType(java.util.Optional<java.lang.String> resourceType)
The type of resource created during job execution.
- Specified by:
resourceTypein interfaceJobs._FinalStage
-
status
public Jobs._FinalStage status(Jobs.Status status)
The status of the job execution.
- Specified by:
statusin interfaceJobs._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
status
public Jobs._FinalStage status(java.util.Optional<Jobs.Status> status)
The status of the job execution.
- Specified by:
statusin interfaceJobs._FinalStage
-
url
public Jobs._FinalStage url(java.lang.String url)
API endpoint URL to check the job status.
- Specified by:
urlin interfaceJobs._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
url
public Jobs._FinalStage url(java.util.Optional<java.lang.String> url)
API endpoint URL to check the job status.
- Specified by:
urlin interfaceJobs._FinalStage
-
type
public Jobs._FinalStage type(java.lang.String type)
The type of the object
- Specified by:
typein interfaceJobs._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
public Jobs._FinalStage type(java.util.Optional<java.lang.String> type)
The type of the object
- Specified by:
typein interfaceJobs._FinalStage
-
build
public Jobs build()
- Specified by:
buildin interfaceJobs._FinalStage
-
-