Interface Provenance.Builder

  • Method Details

    • relation

      Provenance.Builder relation(String relation)

      The relationship between the registry record and its upstream source. DETECTED_FROM indicates that the record was auto-detected from the source resource.

      Parameters:
      relation - The relationship between the registry record and its upstream source. DETECTED_FROM indicates that the record was auto-detected from the source resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • relation

      The relationship between the registry record and its upstream source. DETECTED_FROM indicates that the record was auto-detected from the source resource.

      Parameters:
      relation - The relationship between the registry record and its upstream source. DETECTED_FROM indicates that the record was auto-detected from the source resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceId

      Provenance.Builder sourceId(String sourceId)

      The identifier of the upstream source that the registry record was detected from.

      Parameters:
      sourceId - The identifier of the upstream source that the registry record was detected from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceType

      Provenance.Builder sourceType(String sourceType)

      The type of the upstream source that the registry record was detected from.

      Parameters:
      sourceType - The type of the upstream source that the registry record was detected from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceType

      Provenance.Builder sourceType(SourceType sourceType)

      The type of the upstream source that the registry record was detected from.

      Parameters:
      sourceType - The type of the upstream source that the registry record was detected from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • sourceDetails

      Provenance.Builder sourceDetails(SourceDetails sourceDetails)

      Additional details about the upstream source that the registry record was detected from, such as the AgentCore Gateway or Runtime configuration. The populated member corresponds to the source type.

      Parameters:
      sourceDetails - Additional details about the upstream source that the registry record was detected from, such as the AgentCore Gateway or Runtime configuration. The populated member corresponds to the source type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceDetails

      default Provenance.Builder sourceDetails(Consumer<SourceDetails.Builder> sourceDetails)

      Additional details about the upstream source that the registry record was detected from, such as the AgentCore Gateway or Runtime configuration. The populated member corresponds to the source type.

      This is a convenience method that creates an instance of the SourceDetails.Builder avoiding the need to create one manually via SourceDetails.builder().

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

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