@Generated(value="software.amazon.awssdk:codegen") public final class PathElement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PathElement.Builder,PathElement>
A single element in a path through the JSON representation of a policy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PathElement.Builder |
static class |
PathElement.Type |
| Modifier and Type | Method and Description |
|---|---|
static PathElement.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static PathElement |
fromIndex(Integer index)
Create an instance of this class with
index() initialized to the given value. |
static PathElement |
fromKey(String key)
Create an instance of this class with
key() initialized to the given value. |
static PathElement |
fromSubstring(Consumer<Substring.Builder> substring)
Create an instance of this class with
substring() initialized to the given value. |
static PathElement |
fromSubstring(Substring substring)
Create an instance of this class with
substring() initialized to the given value. |
static PathElement |
fromValue(String value)
Create an instance of this class with
value() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
index()
Refers to an index in a JSON array.
|
String |
key()
Refers to a key in a JSON object.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PathElement.Builder> |
serializableBuilderClass() |
Substring |
substring()
Refers to a substring of a literal string in a JSON object.
|
PathElement.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
PathElement.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
String |
value()
Refers to the value associated with a given key in a JSON object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer index()
Refers to an index in a JSON array.
public final String key()
Refers to a key in a JSON object.
public final Substring substring()
Refers to a substring of a literal string in a JSON object.
public final String value()
Refers to the value associated with a given key in a JSON object.
public PathElement.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PathElement.Builder,PathElement>public static PathElement.Builder builder()
public static Class<? extends PathElement.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static PathElement fromIndex(Integer index)
index() initialized to the given value.
Refers to an index in a JSON array.
index - Refers to an index in a JSON array.public static PathElement fromKey(String key)
key() initialized to the given value.
Refers to a key in a JSON object.
key - Refers to a key in a JSON object.public static PathElement fromSubstring(Substring substring)
substring() initialized to the given value.
Refers to a substring of a literal string in a JSON object.
substring - Refers to a substring of a literal string in a JSON object.public static PathElement fromSubstring(Consumer<Substring.Builder> substring)
substring() initialized to the given value.
Refers to a substring of a literal string in a JSON object.
substring - Refers to a substring of a literal string in a JSON object.public static PathElement fromValue(String value)
value() initialized to the given value.
Refers to the value associated with a given key in a JSON object.
value - Refers to the value associated with a given key in a JSON object.public PathElement.Type type()
Type.UNKNOWN_TO_SDK_VERSION if the
service returned a member that is only known to a newer SDK version.
When this class is created directly in your code, this will be Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.