Interface IssueArtifactItem.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<IssueArtifactItem.Builder,,IssueArtifactItem> SdkBuilder<IssueArtifactItem.Builder,,IssueArtifactItem> SdkPojo
- Enclosing class:
IssueArtifactItem
@Mutable
@NotThreadSafe
public static interface IssueArtifactItem.Builder
extends SdkPojo, CopyableBuilder<IssueArtifactItem.Builder,IssueArtifactItem>
-
Method Summary
Modifier and TypeMethodDescriptionartifactId(String artifactId) The unique identifier of the artifact.artifactType(String artifactType) Semantic category of the artifact.artifactType(IssueArtifactType artifactType) Semantic category of the artifact.contentSizeBytes(Long contentSizeBytes) Size of the artifact content in bytes.The timestamp when the artifact was created.MIME type of the artifact content.default IssueArtifactItem.Builderproducer(Consumer<IssueArtifactProducerSummary.Builder> producer) The agent that produced the artifact.producer(IssueArtifactProducerSummary producer) The agent that produced the artifact.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
artifactId
The unique identifier of the artifact.
- Parameters:
artifactId- The unique identifier of the artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
artifactType
Semantic category of the artifact.
- Parameters:
artifactType- Semantic category of the artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
artifactType
Semantic category of the artifact.
- Parameters:
artifactType- Semantic category of the artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mediaType
MIME type of the artifact content.
- Parameters:
mediaType- MIME type of the artifact content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
producer
The agent that produced the artifact.
- Parameters:
producer- The agent that produced the artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
producer
The agent that produced the artifact.
This is a convenience method that creates an instance of theIssueArtifactProducerSummary.Builderavoiding the need to create one manually viaIssueArtifactProducerSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproducer(IssueArtifactProducerSummary).- Parameters:
producer- a consumer that will call methods onIssueArtifactProducerSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contentSizeBytes
Size of the artifact content in bytes. The content itself is returned by GetCodeIssueArtifact.
- Parameters:
contentSizeBytes- Size of the artifact content in bytes. The content itself is returned by GetCodeIssueArtifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the artifact was created.
- Parameters:
createdAt- The timestamp when the artifact was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-