Interface GetArtifactResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetArtifactResponse.Builder,,GetArtifactResponse> SdkBuilder<GetArtifactResponse.Builder,,GetArtifactResponse> SdkPojo,SdkResponse.Builder,SecurityAgentResponse.Builder
- Enclosing class:
GetArtifactResponse
@Mutable
@NotThreadSafe
public static interface GetArtifactResponse.Builder
extends SecurityAgentResponse.Builder, SdkPojo, CopyableBuilder<GetArtifactResponse.Builder,GetArtifactResponse>
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the agent space that contains the artifact.default GetArtifactResponse.Builderartifact(Consumer<Artifact.Builder> artifact) The artifact content and type.The artifact content and type.artifactId(String artifactId) The unique identifier of the artifact.The file name of the artifact.The date and time the artifact was last updated, in UTC format.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.securityagent.model.SecurityAgentResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
agentSpaceId
The unique identifier of the agent space that contains the artifact.
- Parameters:
agentSpaceId- The unique identifier of the agent space that contains the artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
artifact
The artifact content and type.
- Parameters:
artifact- The artifact content and type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
artifact
The artifact content and type.
This is a convenience method that creates an instance of theArtifact.Builderavoiding the need to create one manually viaArtifact.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toartifact(Artifact).- Parameters:
artifact- a consumer that will call methods onArtifact.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fileName
The file name of the artifact.
- Parameters:
fileName- The file name of the artifact.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time the artifact was last updated, in UTC format.
- Parameters:
updatedAt- The date and time the artifact was last updated, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-