Package com.oracle.bmc.devops.model
Class PullRequestAttachment.Builder
- java.lang.Object
-
- com.oracle.bmc.devops.model.PullRequestAttachment.Builder
-
- Enclosing class:
- PullRequestAttachment
public static class PullRequestAttachment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PullRequestAttachment
build()
PullRequestAttachment.Builder
copy(PullRequestAttachment model)
PullRequestAttachment.Builder
createdBy(PrincipalDetails createdBy)
PullRequestAttachment.Builder
fileName(String fileName)
name to display in description or commentPullRequestAttachment.Builder
id(String id)
Unique identifier that is immutable on creationPullRequestAttachment.Builder
pullRequestId(String pullRequestId)
OCID of the pull request that this attachment belongs toPullRequestAttachment.Builder
timeCreated(Date timeCreated)
Creation timestamp.
-
-
-
Method Detail
-
id
public PullRequestAttachment.Builder id(String id)
Unique identifier that is immutable on creation- Parameters:
id
- the value to set- Returns:
- this builder
-
pullRequestId
public PullRequestAttachment.Builder pullRequestId(String pullRequestId)
OCID of the pull request that this attachment belongs to- Parameters:
pullRequestId
- the value to set- Returns:
- this builder
-
fileName
public PullRequestAttachment.Builder fileName(String fileName)
name to display in description or comment- Parameters:
fileName
- the value to set- Returns:
- this builder
-
timeCreated
public PullRequestAttachment.Builder timeCreated(Date timeCreated)
Creation timestamp.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
createdBy
public PullRequestAttachment.Builder createdBy(PrincipalDetails createdBy)
-
build
public PullRequestAttachment build()
-
copy
public PullRequestAttachment.Builder copy(PullRequestAttachment model)
-
-