Interface PathElement.Builder

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

public static interface PathElement.Builder extends SdkPojo, CopyableBuilder<PathElement.Builder,PathElement>
  • Method Details

    • index

      Refers to an index in a JSON array.

      Parameters:
      index - Refers to an index in a JSON array.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • key

      Refers to a key in a JSON object.

      Parameters:
      key - Refers to a key in a JSON object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • substring

      PathElement.Builder substring(Substring substring)

      Refers to a substring of a literal string in a JSON object.

      Parameters:
      substring - Refers to a substring of a literal string in a JSON object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • substring

      default PathElement.Builder substring(Consumer<Substring.Builder> substring)

      Refers to a substring of a literal string in a JSON object.

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

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

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

      Refers to the value associated with a given key in a JSON object.

      Parameters:
      value - Refers to the value associated with a given key in a JSON object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.