Package com.oracle.bmc.devops.model
Class BuildRunSnapshot.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.BuildRunSnapshot.Builder
-
- Enclosing class:
- BuildRunSnapshot
public static class BuildRunSnapshot.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildRunSnapshot
build()
BuildRunSnapshot.Builder
buildPipelineId(String buildPipelineId)
The OCID of the build pipeline where the build was triggered.BuildRunSnapshot.Builder
buildRunId(String buildRunId)
The OCID of the build run.BuildRunSnapshot.Builder
commitId(String commitId)
The commit id which the build was triggered from.BuildRunSnapshot.Builder
copy(BuildRunSnapshot model)
BuildRunSnapshot.Builder
displayName(String displayName)
The display name of the build run.BuildRunSnapshot.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.BuildRunSnapshot.Builder
lifecycleState(BuildRunSnapshot.LifecycleState lifecycleState)
The current status of the build run.BuildRunSnapshot.Builder
timeCreated(Date timeCreated)
The time the build run was created.BuildRunSnapshot.Builder
timeUpdated(Date timeUpdated)
The time the build run was updated.
-
-
-
Method Detail
-
buildPipelineId
public BuildRunSnapshot.Builder buildPipelineId(String buildPipelineId)
The OCID of the build pipeline where the build was triggered.- Parameters:
buildPipelineId
- the value to set- Returns:
- this builder
-
displayName
public BuildRunSnapshot.Builder displayName(String displayName)
The display name of the build run.- Parameters:
displayName
- the value to set- Returns:
- this builder
-
commitId
public BuildRunSnapshot.Builder commitId(String commitId)
The commit id which the build was triggered from.- Parameters:
commitId
- the value to set- Returns:
- this builder
-
buildRunId
public BuildRunSnapshot.Builder buildRunId(String buildRunId)
The OCID of the build run.- Parameters:
buildRunId
- the value to set- Returns:
- this builder
-
lifecycleState
public BuildRunSnapshot.Builder lifecycleState(BuildRunSnapshot.LifecycleState lifecycleState)
The current status of the build run.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public BuildRunSnapshot.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
timeCreated
public BuildRunSnapshot.Builder timeCreated(Date timeCreated)
The time the build run was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public BuildRunSnapshot.Builder timeUpdated(Date timeUpdated)
The time the build run was updated.Format defined by RFC3339.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
build
public BuildRunSnapshot build()
-
copy
public BuildRunSnapshot.Builder copy(BuildRunSnapshot model)
-
-