Package com.oracle.bmc.devops.model
Class BuildRun.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.BuildRun.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildRunbuild()BuildRun.BuilderbuildOutputs(BuildOutputs buildOutputs)BuildRun.BuilderbuildPipelineId(String buildPipelineId)The OCID of the build pipeline.BuildRun.BuilderbuildRunArguments(BuildRunArgumentCollection buildRunArguments)BuildRun.BuilderbuildRunProgress(BuildRunProgress buildRunProgress)BuildRun.BuilderbuildRunSource(BuildRunSource buildRunSource)BuildRun.BuildercommitInfo(CommitInfo commitInfo)BuildRun.BuildercompartmentId(String compartmentId)The OCID of the compartment where the build is running.BuildRun.Buildercopy(BuildRun model)BuildRun.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.BuildRun.BuilderdisplayName(String displayName)Build run display name, which can be renamed and is not necessarily unique.BuildRun.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.BuildRun.Builderid(String id)Unique identifier that is immutable on creation.BuildRun.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.BuildRun.BuilderlifecycleState(BuildRun.LifecycleState lifecycleState)The current state of the build run.BuildRun.BuilderprojectId(String projectId)The OCID of the DevOps project.BuildRun.BuildersystemTags(Map<String,Map<String,Object>> systemTags)Usage of system tag keys.BuildRun.BuildertimeCreated(Date timeCreated)The time the build run was created.BuildRun.BuildertimeUpdated(Date timeUpdated)The time the build run was updated.
-
-
-
Method Detail
-
id
public BuildRun.Builder id(String id)
Unique identifier that is immutable on creation.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public BuildRun.Builder displayName(String displayName)
Build run display name, which can be renamed and is not necessarily unique.Avoid entering confidential information.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public BuildRun.Builder compartmentId(String compartmentId)
The OCID of the compartment where the build is running.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
projectId
public BuildRun.Builder projectId(String projectId)
The OCID of the DevOps project.- Parameters:
projectId- the value to set- Returns:
- this builder
-
buildPipelineId
public BuildRun.Builder buildPipelineId(String buildPipelineId)
The OCID of the build pipeline.- Parameters:
buildPipelineId- the value to set- Returns:
- this builder
-
buildRunSource
public BuildRun.Builder buildRunSource(BuildRunSource buildRunSource)
-
buildRunArguments
public BuildRun.Builder buildRunArguments(BuildRunArgumentCollection buildRunArguments)
-
timeCreated
public BuildRun.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 BuildRun.Builder timeUpdated(Date timeUpdated)
The time the build run was updated.Format defined by RFC3339.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public BuildRun.Builder lifecycleState(BuildRun.LifecycleState lifecycleState)
The current state of the build run.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public BuildRun.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
buildRunProgress
public BuildRun.Builder buildRunProgress(BuildRunProgress buildRunProgress)
-
commitInfo
public BuildRun.Builder commitInfo(CommitInfo commitInfo)
-
buildOutputs
public BuildRun.Builder buildOutputs(BuildOutputs buildOutputs)
-
freeformTags
public BuildRun.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. See Resource Tags. Example: {“bar-key”: “value”}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public BuildRun.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public BuildRun.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. See Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public BuildRun build()
-
copy
public BuildRun.Builder copy(BuildRun model)
-
-