@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PathElement extends Object implements Serializable, Cloneable, StructuredPojo
A single element in a path through the JSON representation of a policy.
Constructor and Description |
---|
PathElement() |
Modifier and Type | Method and Description |
---|---|
PathElement |
clone() |
boolean |
equals(Object obj) |
Integer |
getIndex()
Refers to an index in a JSON array.
|
String |
getKey()
Refers to a key in a JSON object.
|
Substring |
getSubstring()
Refers to a substring of a literal string in a JSON object.
|
String |
getValue()
Refers to the value associated with a given key in a JSON object.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIndex(Integer index)
Refers to an index in a JSON array.
|
void |
setKey(String key)
Refers to a key in a JSON object.
|
void |
setSubstring(Substring substring)
Refers to a substring of a literal string in a JSON object.
|
void |
setValue(String value)
Refers to the value associated with a given key in a JSON object.
|
String |
toString()
Returns a string representation of this object.
|
PathElement |
withIndex(Integer index)
Refers to an index in a JSON array.
|
PathElement |
withKey(String key)
Refers to a key in a JSON object.
|
PathElement |
withSubstring(Substring substring)
Refers to a substring of a literal string in a JSON object.
|
PathElement |
withValue(String value)
Refers to the value associated with a given key in a JSON object.
|
public void setIndex(Integer index)
Refers to an index in a JSON array.
index
- Refers to an index in a JSON array.public Integer getIndex()
Refers to an index in a JSON array.
public PathElement withIndex(Integer index)
Refers to an index in a JSON array.
index
- Refers to an index in a JSON array.public void setKey(String key)
Refers to a key in a JSON object.
key
- Refers to a key in a JSON object.public String getKey()
Refers to a key in a JSON object.
public PathElement withKey(String key)
Refers to a key in a JSON object.
key
- Refers to a key in a JSON object.public void setSubstring(Substring substring)
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 Substring getSubstring()
Refers to a substring of a literal string in a JSON object.
public PathElement withSubstring(Substring substring)
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 void setValue(String 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 String getValue()
Refers to the value associated with a given key in a JSON object.
public PathElement withValue(String 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 String toString()
toString
in class Object
Object.toString()
public PathElement clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.