@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Position extends Object implements Serializable, Cloneable, StructuredPojo
A position in a policy.
| Constructor and Description |
|---|
Position() |
| Modifier and Type | Method and Description |
|---|---|
Position |
clone() |
boolean |
equals(Object obj) |
Integer |
getColumn()
The column of the position, starting from 0.
|
Integer |
getLine()
The line of the position, starting from 1.
|
Integer |
getOffset()
The offset within the policy that corresponds to the position, starting from 0.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setColumn(Integer column)
The column of the position, starting from 0.
|
void |
setLine(Integer line)
The line of the position, starting from 1.
|
void |
setOffset(Integer offset)
The offset within the policy that corresponds to the position, starting from 0.
|
String |
toString()
Returns a string representation of this object.
|
Position |
withColumn(Integer column)
The column of the position, starting from 0.
|
Position |
withLine(Integer line)
The line of the position, starting from 1.
|
Position |
withOffset(Integer offset)
The offset within the policy that corresponds to the position, starting from 0.
|
public void setLine(Integer line)
The line of the position, starting from 1.
line - The line of the position, starting from 1.public Integer getLine()
The line of the position, starting from 1.
public Position withLine(Integer line)
The line of the position, starting from 1.
line - The line of the position, starting from 1.public void setColumn(Integer column)
The column of the position, starting from 0.
column - The column of the position, starting from 0.public Integer getColumn()
The column of the position, starting from 0.
public Position withColumn(Integer column)
The column of the position, starting from 0.
column - The column of the position, starting from 0.public void setOffset(Integer offset)
The offset within the policy that corresponds to the position, starting from 0.
offset - The offset within the policy that corresponds to the position, starting from 0.public Integer getOffset()
The offset within the policy that corresponds to the position, starting from 0.
public Position withOffset(Integer offset)
The offset within the policy that corresponds to the position, starting from 0.
offset - The offset within the policy that corresponds to the position, starting from 0.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.