@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Span extends Object implements Serializable, Cloneable, StructuredPojo
A span in a policy. The span consists of a start position (inclusive) and end position (exclusive).
Constructor and Description |
---|
Span() |
Modifier and Type | Method and Description |
---|---|
Span |
clone() |
boolean |
equals(Object obj) |
Position |
getEnd()
The end position of the span (exclusive).
|
Position |
getStart()
The start position of the span (inclusive).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnd(Position end)
The end position of the span (exclusive).
|
void |
setStart(Position start)
The start position of the span (inclusive).
|
String |
toString()
Returns a string representation of this object.
|
Span |
withEnd(Position end)
The end position of the span (exclusive).
|
Span |
withStart(Position start)
The start position of the span (inclusive).
|
public void setStart(Position start)
The start position of the span (inclusive).
start
- The start position of the span (inclusive).public Position getStart()
The start position of the span (inclusive).
public Span withStart(Position start)
The start position of the span (inclusive).
start
- The start position of the span (inclusive).public void setEnd(Position end)
The end position of the span (exclusive).
end
- The end position of the span (exclusive).public Position getEnd()
The end position of the span (exclusive).
public Span withEnd(Position end)
The end position of the span (exclusive).
end
- The end position of the span (exclusive).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.