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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PathElement.Builderindex(Integer index)Refers to an index in a JSON array.PathElement.Builderkey(String key)Refers to a key in a JSON object.default PathElement.Buildersubstring(Consumer<Substring.Builder> substring)Refers to a substring of a literal string in a JSON object.PathElement.Buildersubstring(Substring substring)Refers to a substring of a literal string in a JSON object.PathElement.Buildervalue(String value)Refers to the value associated with a given key in a JSON object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
index
PathElement.Builder index(Integer 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
PathElement.Builder key(String 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 theSubstring.Builderavoiding the need to create one manually viaSubstring.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosubstring(Substring).- Parameters:
substring- a consumer that will call methods onSubstring.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
substring(Substring)
-
value
PathElement.Builder value(String 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.
-
-