Class Position
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.Position
-
- All Implemented Interfaces:
Serializable
,Cloneable
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.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Position()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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; useful for testing and debugging.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.
-
-
-
Method Detail
-
setLine
public void setLine(Integer line)
The line containing the specified position in the document.
- Parameters:
line
- The line containing the specified position in the document.
-
getLine
public Integer getLine()
The line containing the specified position in the document.
- Returns:
- The line containing the specified position in the document.
-
withLine
public Position withLine(Integer line)
The line containing the specified position in the document.
- Parameters:
line
- The line containing the specified position in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setColumn
public void setColumn(Integer column)
The column in the line containing the specified position in the document.
- Parameters:
column
- The column in the line containing the specified position in the document.
-
getColumn
public Integer getColumn()
The column in the line containing the specified position in the document.
- Returns:
- The column in the line containing the specified position in the document.
-
withColumn
public Position withColumn(Integer column)
The column in the line containing the specified position in the document.
- Parameters:
column
- The column in the line containing the specified position in the document.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-