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:
  • Constructor Details

    • Position

      public Position()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Position clone()
      Overrides:
      clone in class Object