java.lang.Object
com.azure.resourcemanager.mediaservices.models.Layer
Direct Known Subclasses:
H265VideoLayer, JpgLayer, PngLayer, VideoLayer

public class Layer extends Object
The encoder can be configured to produce video and/or images (thumbnails) at different resolutions, by specifying a layer for each desired resolution. A layer represents the properties for the video or image at a resolution.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of Layer class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the height property: The height of the output video for this layer.
    Get the label property: The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
    void
    Validates the instance.
    Get the width property: The width of the output video for this layer.
    Set the height property: The height of the output video for this layer.
    Set the label property: The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
    Set the width property: The width of the output video for this layer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Layer

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

    • width

      public String width()
      Get the width property: The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.
      Returns:
      the width value.
    • withWidth

      public Layer withWidth(String width)
      Set the width property: The width of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in width as the input.
      Parameters:
      width - the width value to set.
      Returns:
      the Layer object itself.
    • height

      public String height()
      Get the height property: The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.
      Returns:
      the height value.
    • withHeight

      public Layer withHeight(String height)
      Set the height property: The height of the output video for this layer. The value can be absolute (in pixels) or relative (in percentage). For example 50% means the output video has half as many pixels in height as the input.
      Parameters:
      height - the height value to set.
      Returns:
      the Layer object itself.
    • label

      public String label()
      Get the label property: The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
      Returns:
      the label value.
    • withLabel

      public Layer withLabel(String label)
      Set the label property: The alphanumeric label for this layer, which can be used in multiplexing different video and audio layers, or in naming the output file.
      Parameters:
      label - the label value to set.
      Returns:
      the Layer object itself.
    • validate

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