Class VideoSelector

java.lang.Object
software.amazon.awssdk.services.medialive.model.VideoSelector
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<VideoSelector.Builder,VideoSelector>

@Generated("software.amazon.awssdk:codegen") public final class VideoSelector extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VideoSelector.Builder,VideoSelector>
Specifies a particular video stream within an input source. An input may have only a single video selector.
See Also:
  • Method Details

    • colorSpace

      public final VideoSelectorColorSpace colorSpace()
      Specifies the color space of an input. This setting works in tandem with colorSpaceUsage and a video description's colorSpaceSettingsChoice to determine if any conversion will be performed.

      If the service returns an enum value that is not available in the current SDK version, colorSpace will return VideoSelectorColorSpace.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from colorSpaceAsString().

      Returns:
      Specifies the color space of an input. This setting works in tandem with colorSpaceUsage and a video description's colorSpaceSettingsChoice to determine if any conversion will be performed.
      See Also:
    • colorSpaceAsString

      public final String colorSpaceAsString()
      Specifies the color space of an input. This setting works in tandem with colorSpaceUsage and a video description's colorSpaceSettingsChoice to determine if any conversion will be performed.

      If the service returns an enum value that is not available in the current SDK version, colorSpace will return VideoSelectorColorSpace.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from colorSpaceAsString().

      Returns:
      Specifies the color space of an input. This setting works in tandem with colorSpaceUsage and a video description's colorSpaceSettingsChoice to determine if any conversion will be performed.
      See Also:
    • colorSpaceSettings

      public final VideoSelectorColorSpaceSettings colorSpaceSettings()
      Color space settings
      Returns:
      Color space settings
    • colorSpaceUsage

      public final VideoSelectorColorSpaceUsage colorSpaceUsage()
      Applies only if colorSpace is a value other than follow. This field controls how the value in the colorSpace field will be used. fallback means that when the input does include color space data, that data will be used, but when the input has no color space data, the value in colorSpace will be used. Choose fallback if your input is sometimes missing color space data, but when it does have color space data, that data is correct. force means to always use the value in colorSpace. Choose force if your input usually has no color space data or might have unreliable color space data.

      If the service returns an enum value that is not available in the current SDK version, colorSpaceUsage will return VideoSelectorColorSpaceUsage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from colorSpaceUsageAsString().

      Returns:
      Applies only if colorSpace is a value other than follow. This field controls how the value in the colorSpace field will be used. fallback means that when the input does include color space data, that data will be used, but when the input has no color space data, the value in colorSpace will be used. Choose fallback if your input is sometimes missing color space data, but when it does have color space data, that data is correct. force means to always use the value in colorSpace. Choose force if your input usually has no color space data or might have unreliable color space data.
      See Also:
    • colorSpaceUsageAsString

      public final String colorSpaceUsageAsString()
      Applies only if colorSpace is a value other than follow. This field controls how the value in the colorSpace field will be used. fallback means that when the input does include color space data, that data will be used, but when the input has no color space data, the value in colorSpace will be used. Choose fallback if your input is sometimes missing color space data, but when it does have color space data, that data is correct. force means to always use the value in colorSpace. Choose force if your input usually has no color space data or might have unreliable color space data.

      If the service returns an enum value that is not available in the current SDK version, colorSpaceUsage will return VideoSelectorColorSpaceUsage.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from colorSpaceUsageAsString().

      Returns:
      Applies only if colorSpace is a value other than follow. This field controls how the value in the colorSpace field will be used. fallback means that when the input does include color space data, that data will be used, but when the input has no color space data, the value in colorSpace will be used. Choose fallback if your input is sometimes missing color space data, but when it does have color space data, that data is correct. force means to always use the value in colorSpace. Choose force if your input usually has no color space data or might have unreliable color space data.
      See Also:
    • selectorSettings

      public final VideoSelectorSettings selectorSettings()
      The video selector settings.
      Returns:
      The video selector settings.
    • toBuilder

      public VideoSelector.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<VideoSelector.Builder,VideoSelector>
      Returns:
      a builder for type T
    • builder

      public static VideoSelector.Builder builder()
    • serializableBuilderClass

      public static Class<? extends VideoSelector.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.