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
Statementelement in a policy document.This data type is used as a member of the
Statementtype.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Position()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Positionclone()booleanequals(Object obj)IntegergetColumn()The column in the line containing the specified position in the document.IntegergetLine()The line containing the specified position in the document.inthashCode()voidsetColumn(Integer column)The column in the line containing the specified position in the document.voidsetLine(Integer line)The line containing the specified position in the document.StringtoString()Returns a string representation of this object; useful for testing and debugging.PositionwithColumn(Integer column)The column in the line containing the specified position in the document.PositionwithLine(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-