Interface EdgeProperties.Builder

  • Method Details

    • protocol

      EdgeProperties.Builder protocol(String protocol)

      The IANA protocol name for the observed network traffic, such as "tcp".

      Parameters:
      protocol - The IANA protocol name for the observed network traffic, such as "tcp".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourcePort

      EdgeProperties.Builder sourcePort(String sourcePort)

      The source port of the observed traffic. May be a placeholder when the port is unknown.

      Parameters:
      sourcePort - The source port of the observed traffic. May be a placeholder when the port is unknown.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationPort

      EdgeProperties.Builder destinationPort(String destinationPort)

      The destination port of the observed traffic. May be a placeholder when the port is unknown.

      Parameters:
      destinationPort - The destination port of the observed traffic. May be a placeholder when the port is unknown.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blocked

      EdgeProperties.Builder blocked(Boolean blocked)

      Whether the observed network flow was denied. Absent means the edge was not derived from network flow data, which is not the same as allowed.

      Parameters:
      blocked - Whether the observed network flow was denied. Absent means the edge was not derived from network flow data, which is not the same as allowed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorCode

      EdgeProperties.Builder errorCode(String errorCode)

      The error code returned when the call was attempted and refused. Its presence means the edge exists but the dependency is failing.

      Parameters:
      errorCode - The error code returned when the call was attempted and refused. Its presence means the edge exists but the dependency is failing.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • httpStatusCode

      EdgeProperties.Builder httpStatusCode(String httpStatusCode)

      The HTTP status code observed on the request. Distinct from errorCode.

      Parameters:
      httpStatusCode - The HTTP status code observed on the request. Distinct from errorCode.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • httpMethod

      EdgeProperties.Builder httpMethod(String httpMethod)

      The HTTP method observed on the request.

      Parameters:
      httpMethod - The HTTP method observed on the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serviceInitiated

      EdgeProperties.Builder serviceInitiated(Boolean serviceInitiated)

      Whether the caller was an AWS service principal rather than a user or role. Absent means the edge was not derived from a source that reports it.

      Parameters:
      serviceInitiated - Whether the caller was an AWS service principal rather than a user or role. Absent means the edge was not derived from a source that reports it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficStats

      EdgeProperties.Builder trafficStats(EdgeTrafficStats trafficStats)

      Traffic counters accumulated over the edge's observation window.

      Parameters:
      trafficStats - Traffic counters accumulated over the edge's observation window.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trafficStats

      default EdgeProperties.Builder trafficStats(Consumer<EdgeTrafficStats.Builder> trafficStats)

      Traffic counters accumulated over the edge's observation window.

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

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

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