Class Resolution

java.lang.Object
com.amazonaws.services.devicefarm.model.Resolution
All Implemented Interfaces:
Serializable, Cloneable

public class Resolution extends Object implements Serializable, Cloneable

Represents the screen resolution of a device in height and width, expressed in pixels.

See Also:
  • Constructor Details

    • Resolution

      public Resolution()
  • Method Details

    • setWidth

      public void setWidth(Integer width)

      The screen resolution's width, expressed in pixels.

      Parameters:
      width - The screen resolution's width, expressed in pixels.
    • getWidth

      public Integer getWidth()

      The screen resolution's width, expressed in pixels.

      Returns:
      The screen resolution's width, expressed in pixels.
    • withWidth

      public Resolution withWidth(Integer width)

      The screen resolution's width, expressed in pixels.

      Parameters:
      width - The screen resolution's width, expressed in pixels.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setHeight

      public void setHeight(Integer height)

      The screen resolution's height, expressed in pixels.

      Parameters:
      height - The screen resolution's height, expressed in pixels.
    • getHeight

      public Integer getHeight()

      The screen resolution's height, expressed in pixels.

      Returns:
      The screen resolution's height, expressed in pixels.
    • withHeight

      public Resolution withHeight(Integer height)

      The screen resolution's height, expressed in pixels.

      Parameters:
      height - The screen resolution's height, expressed in pixels.
      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 Resolution clone()
      Overrides:
      clone in class Object