Interface GetArtifactResponse.Builder

  • Method Details

    • agentSpaceId

      GetArtifactResponse.Builder agentSpaceId(String 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

      GetArtifactResponse.Builder artifactId(String 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 the Artifact.Builder avoiding the need to create one manually via Artifact.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to artifact(Artifact).

      Parameters:
      artifact - a consumer that will call methods on Artifact.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • fileName

      GetArtifactResponse.Builder fileName(String 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

      GetArtifactResponse.Builder updatedAt(Instant 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.