Interface Edge.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Edge.Builder,Edge>, SdkBuilder<Edge.Builder,Edge>, SdkPojo
Enclosing class:
Edge

@Mutable @NotThreadSafe public static interface Edge.Builder extends SdkPojo, CopyableBuilder<Edge.Builder,Edge>
  • Method Details

    • edgeId

      Edge.Builder edgeId(String edgeId)

      The unique identifier of the edge within the context graph.

      Parameters:
      edgeId - The unique identifier of the edge within the context graph.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • from

      Edge.Builder from(String from)

      The node identifier the edge originates from.

      Parameters:
      from - The node identifier the edge originates from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • to

      The node identifier the edge points to.

      Parameters:
      to - The node identifier the edge points to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • edgeType

      Edge.Builder edgeType(String edgeType)

      The kind of relationship the edge represents.

      Parameters:
      edgeType - The kind of relationship the edge represents.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • edgeType

      Edge.Builder edgeType(EdgeType edgeType)

      The kind of relationship the edge represents.

      Parameters:
      edgeType - The kind of relationship the edge represents.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • operations

      Edge.Builder operations(Collection<String> operations)

      The operations observed on this edge.

      Parameters:
      operations - The operations observed on this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • operations

      Edge.Builder operations(String... operations)

      The operations observed on this edge.

      Parameters:
      operations - The operations observed on this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • edgeProperties

      Edge.Builder edgeProperties(EdgeProperties edgeProperties)

      Attributes promoted out of the flat attribute map onto typed members. Which members are present depends on what produced the edge.

      Parameters:
      edgeProperties - Attributes promoted out of the flat attribute map onto typed members. Which members are present depends on what produced the edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • edgeProperties

      default Edge.Builder edgeProperties(Consumer<EdgeProperties.Builder> edgeProperties)

      Attributes promoted out of the flat attribute map onto typed members. Which members are present depends on what produced the edge.

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

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

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

      Edge.Builder telemetryAttributes(Map<String,String> telemetryAttributes)

      The edge's OpenTelemetry (OTel) attributes, as emitted by telemetry. A key promoted onto an edgeProperties member is removed here, so no value appears twice.

      Parameters:
      telemetryAttributes - The edge's OpenTelemetry (OTel) attributes, as emitted by telemetry. A key promoted onto an edgeProperties member is removed here, so no value appears twice.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalTypesWithStrings

      Edge.Builder signalTypesWithStrings(Collection<String> signalTypes)

      The kinds of telemetry signal observed on this edge.

      Parameters:
      signalTypes - The kinds of telemetry signal observed on this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalTypesWithStrings

      Edge.Builder signalTypesWithStrings(String... signalTypes)

      The kinds of telemetry signal observed on this edge.

      Parameters:
      signalTypes - The kinds of telemetry signal observed on this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalTypes

      Edge.Builder signalTypes(Collection<Signal> signalTypes)

      The kinds of telemetry signal observed on this edge.

      Parameters:
      signalTypes - The kinds of telemetry signal observed on this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • signalTypes

      Edge.Builder signalTypes(Signal... signalTypes)

      The kinds of telemetry signal observed on this edge.

      Parameters:
      signalTypes - The kinds of telemetry signal observed on this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcesWithStrings

      Edge.Builder sourcesWithStrings(Collection<String> sources)

      The discovery sources that contributed this edge.

      Parameters:
      sources - The discovery sources that contributed this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcesWithStrings

      Edge.Builder sourcesWithStrings(String... sources)

      The discovery sources that contributed this edge.

      Parameters:
      sources - The discovery sources that contributed this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      Edge.Builder sources(Collection<Source> sources)

      The discovery sources that contributed this edge.

      Parameters:
      sources - The discovery sources that contributed this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sources

      Edge.Builder sources(Source... sources)

      The discovery sources that contributed this edge.

      Parameters:
      sources - The discovery sources that contributed this edge.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      Edge.Builder metadata(Metadata metadata)

      Descriptive metadata about the edge. Present only when the request sets includeMetadata.

      Parameters:
      metadata - Descriptive metadata about the edge. Present only when the request sets includeMetadata.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metadata

      default Edge.Builder metadata(Consumer<Metadata.Builder> metadata)

      Descriptive metadata about the edge. Present only when the request sets includeMetadata.

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

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

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

      Edge.Builder firstObservedAt(Instant firstObservedAt)

      When this edge was first observed (UTC), at minute granularity. For an edge that merged across sources, this is the earliest value any source reported.

      Parameters:
      firstObservedAt - When this edge was first observed (UTC), at minute granularity. For an edge that merged across sources, this is the earliest value any source reported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastObservedAt

      Edge.Builder lastObservedAt(Instant lastObservedAt)

      When this edge was most recently observed (UTC), at minute granularity. For an edge that merged across sources, this is the latest value any source reported.

      Parameters:
      lastObservedAt - When this edge was most recently observed (UTC), at minute granularity. For an edge that merged across sources, this is the latest value any source reported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.