Interface PublicRecord.Builder

  • Method Details

    • identifier

      PublicRecord.Builder identifier(Identifier identifier)
      Sets the value of the Identifier property for this object.
      Parameters:
      identifier - The new value for the Identifier property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • identifier

      default PublicRecord.Builder identifier(Consumer<Identifier.Builder> identifier)
      Sets the value of the Identifier property for this object. This is a convenience method that creates an instance of the Identifier.Builder avoiding the need to create one manually via Identifier.builder().

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

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

      PublicRecord.Builder displayName(String displayName)

      The record's display name.

      Parameters:
      displayName - The record's display name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      PublicRecord.Builder description(String description)

      A description of the record.

      Parameters:
      description - A description of the record.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recordType

      PublicRecord.Builder recordType(String recordType)

      The kind of resource the record describes, such as an agent, a tool, or a skill.

      Parameters:
      recordType - The kind of resource the record describes, such as an agent, a tool, or a skill.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recordType

      PublicRecord.Builder recordType(RecordType recordType)

      The kind of resource the record describes, such as an agent, a tool, or a skill.

      Parameters:
      recordType - The kind of resource the record describes, such as an agent, a tool, or a skill.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • domain

      PublicRecord.Builder domain(String domain)
      Sets the value of the Domain property for this object.
      Parameters:
      domain - The new value for the Domain property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • descriptors

      PublicRecord.Builder descriptors(Map<String,DescriptorEntry> descriptors)

      Every PUBLIC descriptor slot the record was published with, as published: each slot's source, inline data, version and nested additionalData, the custom slot included. Absent on a record discovered at a partner source; ARD serves the partner's cards.

      Parameters:
      descriptors - Every PUBLIC descriptor slot the record was published with, as published: each slot's source, inline data, version and nested additionalData, the custom slot included. Absent on a record discovered at a partner source; ARD serves the partner's cards.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustManifests

      PublicRecord.Builder trustManifests(Collection<TrustManifest> trustManifests)

      Trust Manifests (AI Catalog Trust Manifest Object), today only the registry's own, contributor did:web:agent-registry.global.api.aws. Its one provenance link says how the registry got the record: relation is publishedFrom for a record its owner published and discoveredFrom for one the registry discovered at a partner source, with sourceId as ProvenanceLink.sourceId describes. The provenance filter takes the same values (see ProvenanceRelation). It's left off when the registry can't name the source: a federatedFrom record until the index carries the peer registry, a discovered record with no source, or a missing or unknown origin. The manifest is unsigned, so it attributes the claim to the registry and doesn't authenticate it.

      Parameters:
      trustManifests - Trust Manifests (AI Catalog Trust Manifest Object), today only the registry's own, contributor did:web:agent-registry.global.api.aws. Its one provenance link says how the registry got the record: relation is publishedFrom for a record its owner published and discoveredFrom for one the registry discovered at a partner source, with sourceId as ProvenanceLink.sourceId describes. The provenance filter takes the same values (see ProvenanceRelation). It's left off when the registry can't name the source: a federatedFrom record until the index carries the peer registry, a discovered record with no source, or a missing or unknown origin. The manifest is unsigned, so it attributes the claim to the registry and doesn't authenticate it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustManifests

      PublicRecord.Builder trustManifests(TrustManifest... trustManifests)

      Trust Manifests (AI Catalog Trust Manifest Object), today only the registry's own, contributor did:web:agent-registry.global.api.aws. Its one provenance link says how the registry got the record: relation is publishedFrom for a record its owner published and discoveredFrom for one the registry discovered at a partner source, with sourceId as ProvenanceLink.sourceId describes. The provenance filter takes the same values (see ProvenanceRelation). It's left off when the registry can't name the source: a federatedFrom record until the index carries the peer registry, a discovered record with no source, or a missing or unknown origin. The manifest is unsigned, so it attributes the claim to the registry and doesn't authenticate it.

      Parameters:
      trustManifests - Trust Manifests (AI Catalog Trust Manifest Object), today only the registry's own, contributor did:web:agent-registry.global.api.aws. Its one provenance link says how the registry got the record: relation is publishedFrom for a record its owner published and discoveredFrom for one the registry discovered at a partner source, with sourceId as ProvenanceLink.sourceId describes. The provenance filter takes the same values (see ProvenanceRelation). It's left off when the registry can't name the source: a federatedFrom record until the index carries the peer registry, a discovered record with no source, or a missing or unknown origin. The manifest is unsigned, so it attributes the claim to the registry and doesn't authenticate it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trustManifests

      PublicRecord.Builder trustManifests(Consumer<TrustManifest.Builder>... trustManifests)

      Trust Manifests (AI Catalog Trust Manifest Object), today only the registry's own, contributor did:web:agent-registry.global.api.aws. Its one provenance link says how the registry got the record: relation is publishedFrom for a record its owner published and discoveredFrom for one the registry discovered at a partner source, with sourceId as ProvenanceLink.sourceId describes. The provenance filter takes the same values (see ProvenanceRelation). It's left off when the registry can't name the source: a federatedFrom record until the index carries the peer registry, a discovered record with no source, or a missing or unknown origin. The manifest is unsigned, so it attributes the claim to the registry and doesn't authenticate it.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to trustManifests(List<TrustManifest>).

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

      PublicRecord.Builder recordVersion(String recordVersion)

      The record's version string, set by its publisher. Left off when the record has none, for example a discovered record whose source carries no version.

      Parameters:
      recordVersion - The record's version string, set by its publisher. Left off when the record has none, for example a discovered record whose source carries no version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      PublicRecord.Builder createdAt(Instant createdAt)

      When the record was created.

      Parameters:
      createdAt - When the record was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      PublicRecord.Builder updatedAt(Instant updatedAt)

      When the record was last updated.

      Parameters:
      updatedAt - When the record was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.