@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Location extends Object implements Serializable, Cloneable, StructuredPojo
A location in a policy that is represented as a path through the JSON representation and a corresponding span.
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
Location |
clone() |
boolean |
equals(Object obj) |
List<PathElement> |
getPath()
A path in a policy, represented as a sequence of path elements.
|
Span |
getSpan()
A span in a policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPath(Collection<PathElement> path)
A path in a policy, represented as a sequence of path elements.
|
void |
setSpan(Span span)
A span in a policy.
|
String |
toString()
Returns a string representation of this object.
|
Location |
withPath(Collection<PathElement> path)
A path in a policy, represented as a sequence of path elements.
|
Location |
withPath(PathElement... path)
A path in a policy, represented as a sequence of path elements.
|
Location |
withSpan(Span span)
A span in a policy.
|
public List<PathElement> getPath()
A path in a policy, represented as a sequence of path elements.
public void setPath(Collection<PathElement> path)
A path in a policy, represented as a sequence of path elements.
path
- A path in a policy, represented as a sequence of path elements.public Location withPath(PathElement... path)
A path in a policy, represented as a sequence of path elements.
NOTE: This method appends the values to the existing list (if any). Use
setPath(java.util.Collection)
or withPath(java.util.Collection)
if you want to override the
existing values.
path
- A path in a policy, represented as a sequence of path elements.public Location withPath(Collection<PathElement> path)
A path in a policy, represented as a sequence of path elements.
path
- A path in a policy, represented as a sequence of path elements.public void setSpan(Span span)
A span in a policy.
span
- A span in a policy.public Span getSpan()
A span in a policy.
public Location withSpan(Span span)
A span in a policy.
span
- A span in a policy.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.