@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Position extends Object implements Serializable, Cloneable
Contains the row and column of a location of a Statement
element in a policy document.
This data type is used as a member of the Statement
type.
Constructor and Description |
---|
Position() |
Modifier and Type | Method and Description |
---|---|
Position |
clone() |
boolean |
equals(Object obj) |
Integer |
getColumn()
The column in the line containing the specified position in the document.
|
Integer |
getLine()
The line containing the specified position in the document.
|
int |
hashCode() |
void |
setColumn(Integer column)
The column in the line containing the specified position in the document.
|
void |
setLine(Integer line)
The line containing the specified position in the document.
|
String |
toString()
Returns a string representation of this object.
|
Position |
withColumn(Integer column)
The column in the line containing the specified position in the document.
|
Position |
withLine(Integer line)
The line containing the specified position in the document.
|
public void setLine(Integer line)
The line containing the specified position in the document.
line
- The line containing the specified position in the document.public Integer getLine()
The line containing the specified position in the document.
public Position withLine(Integer line)
The line containing the specified position in the document.
line
- The line containing the specified position in the document.public void setColumn(Integer column)
The column in the line containing the specified position in the document.
column
- The column in the line containing the specified position in the document.public Integer getColumn()
The column in the line containing the specified position in the document.
public Position withColumn(Integer column)
The column in the line containing the specified position in the document.
column
- The column in the line containing the specified position in the document.public String toString()
toString
in class Object
Object.toString()