java.lang.Object
com.azure.resourcemanager.mediaservices.models.Rectangle

public final class Rectangle extends Object
Describes the properties of a rectangular window applied to the input media before processing it.
  • Constructor Details

    • Rectangle

      public Rectangle()
      Creates an instance of Rectangle class.
  • Method Details

    • left

      public String left()
      Get the left property: The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).
      Returns:
      the left value.
    • withLeft

      public Rectangle withLeft(String left)
      Set the left property: The number of pixels from the left-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).
      Parameters:
      left - the left value to set.
      Returns:
      the Rectangle object itself.
    • top

      public String top()
      Get the top property: The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).
      Returns:
      the top value.
    • withTop

      public Rectangle withTop(String top)
      Set the top property: The number of pixels from the top-margin. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).
      Parameters:
      top - the top value to set.
      Returns:
      the Rectangle object itself.
    • width

      public String width()
      Get the width property: The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).
      Returns:
      the width value.
    • withWidth

      public Rectangle withWidth(String width)
      Set the width property: The width of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).
      Parameters:
      width - the width value to set.
      Returns:
      the Rectangle object itself.
    • height

      public String height()
      Get the height property: The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).
      Returns:
      the height value.
    • withHeight

      public Rectangle withHeight(String height)
      Set the height property: The height of the rectangular region in pixels. This can be absolute pixel value (e.g 100), or relative to the size of the video (For example, 50%).
      Parameters:
      height - the height value to set.
      Returns:
      the Rectangle object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.