{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ElasticTranscoder.Types.JobOutput
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.ElasticTranscoder.Types.JobOutput where

import qualified Amazonka.Core as Core
import Amazonka.ElasticTranscoder.Types.Captions
import Amazonka.ElasticTranscoder.Types.Clip
import Amazonka.ElasticTranscoder.Types.Encryption
import Amazonka.ElasticTranscoder.Types.JobAlbumArt
import Amazonka.ElasticTranscoder.Types.JobWatermark
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Outputs recommended instead.
--
-- If you specified one output for a job, information about that output. If
-- you specified multiple outputs for a job, the @Output@ object lists
-- information about the first output. This duplicates the information that
-- is listed for the first output in the @Outputs@ object.
--
-- /See:/ 'newJobOutput' smart constructor.
data JobOutput = JobOutput'
  { -- | If Elastic Transcoder used a preset with a @ColorSpaceConversionMode@ to
    -- transcode the output file, the @AppliedColorSpaceConversion@ parameter
    -- shows the conversion used. If no @ColorSpaceConversionMode@ was defined
    -- in the preset, this parameter is not be included in the job response.
    JobOutput -> Maybe Text
appliedColorSpaceConversion :: Prelude.Maybe Prelude.Text,
    -- | Whether you want Elastic Transcoder to create thumbnails for your videos
    -- and, if so, how you want Elastic Transcoder to name the files.
    --
    -- If you don\'t want Elastic Transcoder to create thumbnails, specify
    -- \"\".
    --
    -- If you do want Elastic Transcoder to create thumbnails, specify the
    -- information that you want to include in the file name for each
    -- thumbnail. You can specify the following values in any sequence:
    --
    -- -   __@{count}@ (Required)__: If you want to create thumbnails, you must
    --     include @{count}@ in the @ThumbnailPattern@ object. Wherever you
    --     specify @{count}@, Elastic Transcoder adds a five-digit sequence
    --     number (beginning with __00001__) to thumbnail file names. The
    --     number indicates where a given thumbnail appears in the sequence of
    --     thumbnails for a transcoded file.
    --
    --     If you specify a literal value and\/or @{resolution}@ but you omit
    --     @{count}@, Elastic Transcoder returns a validation error and does
    --     not create the job.
    --
    -- -   __Literal values (Optional)__: You can specify literal values
    --     anywhere in the @ThumbnailPattern@ object. For example, you can
    --     include them as a file name prefix or as a delimiter between
    --     @{resolution}@ and @{count}@.
    --
    -- -   __@{resolution}@ (Optional)__: If you want Elastic Transcoder to
    --     include the resolution in the file name, include @{resolution}@ in
    --     the @ThumbnailPattern@ object.
    --
    -- When creating thumbnails, Elastic Transcoder automatically saves the
    -- files in the format (.jpg or .png) that appears in the preset that you
    -- specified in the @PresetID@ value of @CreateJobOutput@. Elastic
    -- Transcoder also appends the applicable file name extension.
    JobOutput -> Maybe Text
thumbnailPattern :: Prelude.Maybe Prelude.Text,
    -- | The status of one output in a job. If you specified only one output for
    -- the job, @Outputs:Status@ is always the same as @Job:Status@. If you
    -- specified more than one output:
    --
    -- -   @Job:Status@ and @Outputs:Status@ for all of the outputs is
    --     Submitted until Elastic Transcoder starts to process the first
    --     output.
    --
    -- -   When Elastic Transcoder starts to process the first output,
    --     @Outputs:Status@ for that output and @Job:Status@ both change to
    --     Progressing. For each output, the value of @Outputs:Status@ remains
    --     Submitted until Elastic Transcoder starts to process the output.
    --
    -- -   Job:Status remains Progressing until all of the outputs reach a
    --     terminal status, either Complete or Error.
    --
    -- -   When all of the outputs reach a terminal status, @Job:Status@
    --     changes to Complete only if @Outputs:Status@ for all of the outputs
    --     is @Complete@. If @Outputs:Status@ for one or more outputs is
    --     @Error@, the terminal status for @Job:Status@ is also @Error@.
    --
    -- The value of @Status@ is one of the following: @Submitted@,
    -- @Progressing@, @Complete@, @Canceled@, or @Error@.
    JobOutput -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
    -- | Height of the output file, in pixels.
    JobOutput -> Maybe Int
height :: Prelude.Maybe Prelude.Int,
    -- | Frame rate of the output file, in frames per second.
    JobOutput -> Maybe Text
frameRate :: Prelude.Maybe Prelude.Text,
    -- | You can configure Elastic Transcoder to transcode captions, or
    -- subtitles, from one format to another. All captions must be in UTF-8.
    -- Elastic Transcoder supports two types of captions:
    --
    -- -   __Embedded:__ Embedded captions are included in the same file as the
    --     audio and video. Elastic Transcoder supports only one embedded
    --     caption per language, to a maximum of 300 embedded captions per
    --     file.
    --
    --     Valid input values include: @CEA-608 (EIA-608@, first non-empty
    --     channel only), @CEA-708 (EIA-708@, first non-empty channel only),
    --     and @mov-text@
    --
    --     Valid outputs include: @mov-text@
    --
    --     Elastic Transcoder supports a maximum of one embedded format per
    --     output.
    --
    -- -   __Sidecar:__ Sidecar captions are kept in a separate metadata file
    --     from the audio and video data. Sidecar captions require a player
    --     that is capable of understanding the relationship between the video
    --     file and the sidecar file. Elastic Transcoder supports only one
    --     sidecar caption per language, to a maximum of 20 sidecar captions
    --     per file.
    --
    --     Valid input values include: @dfxp@ (first div element only),
    --     @ebu-tt@, @scc@, @smpt@, @srt@, @ttml@ (first div element only), and
    --     @webvtt@
    --
    --     Valid outputs include: @dfxp@ (first div element only), @scc@,
    --     @srt@, and @webvtt@.
    --
    -- If you want ttml or smpte-tt compatible captions, specify dfxp as your
    -- output format.
    --
    -- Elastic Transcoder does not support OCR (Optical Character Recognition),
    -- does not accept pictures as a valid input for captions, and is not
    -- available for audio-only transcoding. Elastic Transcoder does not
    -- preserve text formatting (for example, italics) during the transcoding
    -- process.
    --
    -- To remove captions or leave the captions empty, set @Captions@ to null.
    -- To pass through existing captions unchanged, set the @MergePolicy@ to
    -- @MergeRetain@, and pass in a null @CaptionSources@ array.
    --
    -- For more information on embedded files, see the Subtitles Wikipedia
    -- page.
    --
    -- For more information on sidecar files, see the Extensible Metadata
    -- Platform and Sidecar file Wikipedia pages.
    JobOutput -> Maybe Captions
captions :: Prelude.Maybe Captions,
    -- | The value of the @Id@ object for the preset that you want to use for
    -- this job. The preset determines the audio, video, and thumbnail settings
    -- that Elastic Transcoder uses for transcoding. To use a preset that you
    -- created, specify the preset ID that Elastic Transcoder returned in the
    -- response when you created the preset. You can also use the Elastic
    -- Transcoder system presets, which you can get with @ListPresets@.
    JobOutput -> Maybe Text
presetId :: Prelude.Maybe Prelude.Text,
    -- | You can create an output file that contains an excerpt from the input
    -- file. This excerpt, called a clip, can come from the beginning, middle,
    -- or end of the file. The Composition object contains settings for the
    -- clips that make up an output file. For the current release, you can only
    -- specify settings for a single clip per output file. The Composition
    -- object cannot be null.
    JobOutput -> Maybe [Clip]
composition :: Prelude.Maybe [Clip],
    -- | The album art to be associated with the output file, if any.
    JobOutput -> Maybe JobAlbumArt
albumArt :: Prelude.Maybe JobAlbumArt,
    -- | File size of the output file, in bytes.
    JobOutput -> Maybe Integer
fileSize :: Prelude.Maybe Prelude.Integer,
    -- | Information about the watermarks that you want Elastic Transcoder to add
    -- to the video during transcoding. You can specify up to four watermarks
    -- for each output. Settings for each watermark must be defined in the
    -- preset that you specify in @Preset@ for the current output.
    --
    -- Watermarks are added to the output video in the sequence in which you
    -- list them in the job output—the first watermark in the list is added to
    -- the output video first, the second watermark in the list is added next,
    -- and so on. As a result, if the settings in a preset cause Elastic
    -- Transcoder to place all watermarks in the same location, the second
    -- watermark that you add covers the first one, the third one covers the
    -- second, and the fourth one covers the third.
    JobOutput -> Maybe [JobWatermark]
watermarks :: Prelude.Maybe [JobWatermark],
    -- | Specifies the width of the output file in pixels.
    JobOutput -> Maybe Int
width :: Prelude.Maybe Prelude.Int,
    -- | The encryption settings, if any, that you want Elastic Transcoder to
    -- apply to your output files. If you choose to use encryption, you must
    -- specify a mode to use. If you choose not to use encryption, Elastic
    -- Transcoder writes an unencrypted file to your Amazon S3 bucket.
    JobOutput -> Maybe Encryption
encryption :: Prelude.Maybe Encryption,
    -- | The name to assign to the transcoded file. Elastic Transcoder saves the
    -- file in the Amazon S3 bucket specified by the @OutputBucket@ object in
    -- the pipeline that is specified by the pipeline ID.
    JobOutput -> Maybe Text
key :: Prelude.Maybe Prelude.Text,
    -- | Information that further explains @Status@.
    JobOutput -> Maybe Text
statusDetail :: Prelude.Maybe Prelude.Text,
    -- | A sequential counter, starting with 1, that identifies an output among
    -- the outputs from the current job. In the Output syntax, this value is
    -- always 1.
    JobOutput -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | (Outputs in Fragmented MP4 or MPEG-TS format only.
    --
    -- If you specify a preset in @PresetId@ for which the value of @Container@
    -- is @fmp4@ (Fragmented MP4) or @ts@ (MPEG-TS), @SegmentDuration@ is the
    -- target maximum duration of each segment in seconds. For @HLSv3@ format
    -- playlists, each media segment is stored in a separate @.ts@ file. For
    -- @HLSv4@, @MPEG-DASH@, and @Smooth@ playlists, all media segments for an
    -- output are stored in a single file. Each segment is approximately the
    -- length of the @SegmentDuration@, though individual segments might be
    -- shorter or longer.
    --
    -- The range of valid values is 1 to 60 seconds. If the duration of the
    -- video is not evenly divisible by @SegmentDuration@, the duration of the
    -- last segment is the remainder of total length\/SegmentDuration.
    --
    -- Elastic Transcoder creates an output-specific playlist for each output
    -- @HLS@ output that you specify in OutputKeys. To add an output to the
    -- master playlist for this job, include it in the @OutputKeys@ of the
    -- associated playlist.
    JobOutput -> Maybe Text
segmentDuration :: Prelude.Maybe Prelude.Text,
    -- | Duration of the output file, in milliseconds.
    JobOutput -> Maybe Integer
durationMillis :: Prelude.Maybe Prelude.Integer,
    -- | The encryption settings, if any, that you want Elastic Transcoder to
    -- apply to your thumbnail.
    JobOutput -> Maybe Encryption
thumbnailEncryption :: Prelude.Maybe Encryption,
    -- | Duration of the output file, in seconds.
    JobOutput -> Maybe Integer
duration :: Prelude.Maybe Prelude.Integer,
    -- | The number of degrees clockwise by which you want Elastic Transcoder to
    -- rotate the output relative to the input. Enter one of the following
    -- values:
    --
    -- @auto@, @0@, @90@, @180@, @270@
    --
    -- The value @auto@ generally works only if the file that you\'re
    -- transcoding contains rotation metadata.
    JobOutput -> Maybe Text
rotate :: Prelude.Maybe Prelude.Text
  }
  deriving (JobOutput -> JobOutput -> Bool
(JobOutput -> JobOutput -> Bool)
-> (JobOutput -> JobOutput -> Bool) -> Eq JobOutput
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: JobOutput -> JobOutput -> Bool
$c/= :: JobOutput -> JobOutput -> Bool
== :: JobOutput -> JobOutput -> Bool
$c== :: JobOutput -> JobOutput -> Bool
Prelude.Eq, ReadPrec [JobOutput]
ReadPrec JobOutput
Int -> ReadS JobOutput
ReadS [JobOutput]
(Int -> ReadS JobOutput)
-> ReadS [JobOutput]
-> ReadPrec JobOutput
-> ReadPrec [JobOutput]
-> Read JobOutput
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [JobOutput]
$creadListPrec :: ReadPrec [JobOutput]
readPrec :: ReadPrec JobOutput
$creadPrec :: ReadPrec JobOutput
readList :: ReadS [JobOutput]
$creadList :: ReadS [JobOutput]
readsPrec :: Int -> ReadS JobOutput
$creadsPrec :: Int -> ReadS JobOutput
Prelude.Read, Int -> JobOutput -> ShowS
[JobOutput] -> ShowS
JobOutput -> String
(Int -> JobOutput -> ShowS)
-> (JobOutput -> String)
-> ([JobOutput] -> ShowS)
-> Show JobOutput
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [JobOutput] -> ShowS
$cshowList :: [JobOutput] -> ShowS
show :: JobOutput -> String
$cshow :: JobOutput -> String
showsPrec :: Int -> JobOutput -> ShowS
$cshowsPrec :: Int -> JobOutput -> ShowS
Prelude.Show, (forall x. JobOutput -> Rep JobOutput x)
-> (forall x. Rep JobOutput x -> JobOutput) -> Generic JobOutput
forall x. Rep JobOutput x -> JobOutput
forall x. JobOutput -> Rep JobOutput x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep JobOutput x -> JobOutput
$cfrom :: forall x. JobOutput -> Rep JobOutput x
Prelude.Generic)

-- |
-- Create a value of 'JobOutput' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'appliedColorSpaceConversion', 'jobOutput_appliedColorSpaceConversion' - If Elastic Transcoder used a preset with a @ColorSpaceConversionMode@ to
-- transcode the output file, the @AppliedColorSpaceConversion@ parameter
-- shows the conversion used. If no @ColorSpaceConversionMode@ was defined
-- in the preset, this parameter is not be included in the job response.
--
-- 'thumbnailPattern', 'jobOutput_thumbnailPattern' - Whether you want Elastic Transcoder to create thumbnails for your videos
-- and, if so, how you want Elastic Transcoder to name the files.
--
-- If you don\'t want Elastic Transcoder to create thumbnails, specify
-- \"\".
--
-- If you do want Elastic Transcoder to create thumbnails, specify the
-- information that you want to include in the file name for each
-- thumbnail. You can specify the following values in any sequence:
--
-- -   __@{count}@ (Required)__: If you want to create thumbnails, you must
--     include @{count}@ in the @ThumbnailPattern@ object. Wherever you
--     specify @{count}@, Elastic Transcoder adds a five-digit sequence
--     number (beginning with __00001__) to thumbnail file names. The
--     number indicates where a given thumbnail appears in the sequence of
--     thumbnails for a transcoded file.
--
--     If you specify a literal value and\/or @{resolution}@ but you omit
--     @{count}@, Elastic Transcoder returns a validation error and does
--     not create the job.
--
-- -   __Literal values (Optional)__: You can specify literal values
--     anywhere in the @ThumbnailPattern@ object. For example, you can
--     include them as a file name prefix or as a delimiter between
--     @{resolution}@ and @{count}@.
--
-- -   __@{resolution}@ (Optional)__: If you want Elastic Transcoder to
--     include the resolution in the file name, include @{resolution}@ in
--     the @ThumbnailPattern@ object.
--
-- When creating thumbnails, Elastic Transcoder automatically saves the
-- files in the format (.jpg or .png) that appears in the preset that you
-- specified in the @PresetID@ value of @CreateJobOutput@. Elastic
-- Transcoder also appends the applicable file name extension.
--
-- 'status', 'jobOutput_status' - The status of one output in a job. If you specified only one output for
-- the job, @Outputs:Status@ is always the same as @Job:Status@. If you
-- specified more than one output:
--
-- -   @Job:Status@ and @Outputs:Status@ for all of the outputs is
--     Submitted until Elastic Transcoder starts to process the first
--     output.
--
-- -   When Elastic Transcoder starts to process the first output,
--     @Outputs:Status@ for that output and @Job:Status@ both change to
--     Progressing. For each output, the value of @Outputs:Status@ remains
--     Submitted until Elastic Transcoder starts to process the output.
--
-- -   Job:Status remains Progressing until all of the outputs reach a
--     terminal status, either Complete or Error.
--
-- -   When all of the outputs reach a terminal status, @Job:Status@
--     changes to Complete only if @Outputs:Status@ for all of the outputs
--     is @Complete@. If @Outputs:Status@ for one or more outputs is
--     @Error@, the terminal status for @Job:Status@ is also @Error@.
--
-- The value of @Status@ is one of the following: @Submitted@,
-- @Progressing@, @Complete@, @Canceled@, or @Error@.
--
-- 'height', 'jobOutput_height' - Height of the output file, in pixels.
--
-- 'frameRate', 'jobOutput_frameRate' - Frame rate of the output file, in frames per second.
--
-- 'captions', 'jobOutput_captions' - You can configure Elastic Transcoder to transcode captions, or
-- subtitles, from one format to another. All captions must be in UTF-8.
-- Elastic Transcoder supports two types of captions:
--
-- -   __Embedded:__ Embedded captions are included in the same file as the
--     audio and video. Elastic Transcoder supports only one embedded
--     caption per language, to a maximum of 300 embedded captions per
--     file.
--
--     Valid input values include: @CEA-608 (EIA-608@, first non-empty
--     channel only), @CEA-708 (EIA-708@, first non-empty channel only),
--     and @mov-text@
--
--     Valid outputs include: @mov-text@
--
--     Elastic Transcoder supports a maximum of one embedded format per
--     output.
--
-- -   __Sidecar:__ Sidecar captions are kept in a separate metadata file
--     from the audio and video data. Sidecar captions require a player
--     that is capable of understanding the relationship between the video
--     file and the sidecar file. Elastic Transcoder supports only one
--     sidecar caption per language, to a maximum of 20 sidecar captions
--     per file.
--
--     Valid input values include: @dfxp@ (first div element only),
--     @ebu-tt@, @scc@, @smpt@, @srt@, @ttml@ (first div element only), and
--     @webvtt@
--
--     Valid outputs include: @dfxp@ (first div element only), @scc@,
--     @srt@, and @webvtt@.
--
-- If you want ttml or smpte-tt compatible captions, specify dfxp as your
-- output format.
--
-- Elastic Transcoder does not support OCR (Optical Character Recognition),
-- does not accept pictures as a valid input for captions, and is not
-- available for audio-only transcoding. Elastic Transcoder does not
-- preserve text formatting (for example, italics) during the transcoding
-- process.
--
-- To remove captions or leave the captions empty, set @Captions@ to null.
-- To pass through existing captions unchanged, set the @MergePolicy@ to
-- @MergeRetain@, and pass in a null @CaptionSources@ array.
--
-- For more information on embedded files, see the Subtitles Wikipedia
-- page.
--
-- For more information on sidecar files, see the Extensible Metadata
-- Platform and Sidecar file Wikipedia pages.
--
-- 'presetId', 'jobOutput_presetId' - The value of the @Id@ object for the preset that you want to use for
-- this job. The preset determines the audio, video, and thumbnail settings
-- that Elastic Transcoder uses for transcoding. To use a preset that you
-- created, specify the preset ID that Elastic Transcoder returned in the
-- response when you created the preset. You can also use the Elastic
-- Transcoder system presets, which you can get with @ListPresets@.
--
-- 'composition', 'jobOutput_composition' - You can create an output file that contains an excerpt from the input
-- file. This excerpt, called a clip, can come from the beginning, middle,
-- or end of the file. The Composition object contains settings for the
-- clips that make up an output file. For the current release, you can only
-- specify settings for a single clip per output file. The Composition
-- object cannot be null.
--
-- 'albumArt', 'jobOutput_albumArt' - The album art to be associated with the output file, if any.
--
-- 'fileSize', 'jobOutput_fileSize' - File size of the output file, in bytes.
--
-- 'watermarks', 'jobOutput_watermarks' - Information about the watermarks that you want Elastic Transcoder to add
-- to the video during transcoding. You can specify up to four watermarks
-- for each output. Settings for each watermark must be defined in the
-- preset that you specify in @Preset@ for the current output.
--
-- Watermarks are added to the output video in the sequence in which you
-- list them in the job output—the first watermark in the list is added to
-- the output video first, the second watermark in the list is added next,
-- and so on. As a result, if the settings in a preset cause Elastic
-- Transcoder to place all watermarks in the same location, the second
-- watermark that you add covers the first one, the third one covers the
-- second, and the fourth one covers the third.
--
-- 'width', 'jobOutput_width' - Specifies the width of the output file in pixels.
--
-- 'encryption', 'jobOutput_encryption' - The encryption settings, if any, that you want Elastic Transcoder to
-- apply to your output files. If you choose to use encryption, you must
-- specify a mode to use. If you choose not to use encryption, Elastic
-- Transcoder writes an unencrypted file to your Amazon S3 bucket.
--
-- 'key', 'jobOutput_key' - The name to assign to the transcoded file. Elastic Transcoder saves the
-- file in the Amazon S3 bucket specified by the @OutputBucket@ object in
-- the pipeline that is specified by the pipeline ID.
--
-- 'statusDetail', 'jobOutput_statusDetail' - Information that further explains @Status@.
--
-- 'id', 'jobOutput_id' - A sequential counter, starting with 1, that identifies an output among
-- the outputs from the current job. In the Output syntax, this value is
-- always 1.
--
-- 'segmentDuration', 'jobOutput_segmentDuration' - (Outputs in Fragmented MP4 or MPEG-TS format only.
--
-- If you specify a preset in @PresetId@ for which the value of @Container@
-- is @fmp4@ (Fragmented MP4) or @ts@ (MPEG-TS), @SegmentDuration@ is the
-- target maximum duration of each segment in seconds. For @HLSv3@ format
-- playlists, each media segment is stored in a separate @.ts@ file. For
-- @HLSv4@, @MPEG-DASH@, and @Smooth@ playlists, all media segments for an
-- output are stored in a single file. Each segment is approximately the
-- length of the @SegmentDuration@, though individual segments might be
-- shorter or longer.
--
-- The range of valid values is 1 to 60 seconds. If the duration of the
-- video is not evenly divisible by @SegmentDuration@, the duration of the
-- last segment is the remainder of total length\/SegmentDuration.
--
-- Elastic Transcoder creates an output-specific playlist for each output
-- @HLS@ output that you specify in OutputKeys. To add an output to the
-- master playlist for this job, include it in the @OutputKeys@ of the
-- associated playlist.
--
-- 'durationMillis', 'jobOutput_durationMillis' - Duration of the output file, in milliseconds.
--
-- 'thumbnailEncryption', 'jobOutput_thumbnailEncryption' - The encryption settings, if any, that you want Elastic Transcoder to
-- apply to your thumbnail.
--
-- 'duration', 'jobOutput_duration' - Duration of the output file, in seconds.
--
-- 'rotate', 'jobOutput_rotate' - The number of degrees clockwise by which you want Elastic Transcoder to
-- rotate the output relative to the input. Enter one of the following
-- values:
--
-- @auto@, @0@, @90@, @180@, @270@
--
-- The value @auto@ generally works only if the file that you\'re
-- transcoding contains rotation metadata.
newJobOutput ::
  JobOutput
newJobOutput :: JobOutput
newJobOutput =
  JobOutput' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Captions
-> Maybe Text
-> Maybe [Clip]
-> Maybe JobAlbumArt
-> Maybe Integer
-> Maybe [JobWatermark]
-> Maybe Int
-> Maybe Encryption
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Encryption
-> Maybe Integer
-> Maybe Text
-> JobOutput
JobOutput'
    { $sel:appliedColorSpaceConversion:JobOutput' :: Maybe Text
appliedColorSpaceConversion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:thumbnailPattern:JobOutput' :: Maybe Text
thumbnailPattern = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:JobOutput' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:height:JobOutput' :: Maybe Int
height = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:frameRate:JobOutput' :: Maybe Text
frameRate = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:captions:JobOutput' :: Maybe Captions
captions = Maybe Captions
forall a. Maybe a
Prelude.Nothing,
      $sel:presetId:JobOutput' :: Maybe Text
presetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:composition:JobOutput' :: Maybe [Clip]
composition = Maybe [Clip]
forall a. Maybe a
Prelude.Nothing,
      $sel:albumArt:JobOutput' :: Maybe JobAlbumArt
albumArt = Maybe JobAlbumArt
forall a. Maybe a
Prelude.Nothing,
      $sel:fileSize:JobOutput' :: Maybe Integer
fileSize = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:watermarks:JobOutput' :: Maybe [JobWatermark]
watermarks = Maybe [JobWatermark]
forall a. Maybe a
Prelude.Nothing,
      $sel:width:JobOutput' :: Maybe Int
width = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:encryption:JobOutput' :: Maybe Encryption
encryption = Maybe Encryption
forall a. Maybe a
Prelude.Nothing,
      $sel:key:JobOutput' :: Maybe Text
key = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:statusDetail:JobOutput' :: Maybe Text
statusDetail = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:JobOutput' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:segmentDuration:JobOutput' :: Maybe Text
segmentDuration = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:durationMillis:JobOutput' :: Maybe Integer
durationMillis = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:thumbnailEncryption:JobOutput' :: Maybe Encryption
thumbnailEncryption = Maybe Encryption
forall a. Maybe a
Prelude.Nothing,
      $sel:duration:JobOutput' :: Maybe Integer
duration = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
      $sel:rotate:JobOutput' :: Maybe Text
rotate = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | If Elastic Transcoder used a preset with a @ColorSpaceConversionMode@ to
-- transcode the output file, the @AppliedColorSpaceConversion@ parameter
-- shows the conversion used. If no @ColorSpaceConversionMode@ was defined
-- in the preset, this parameter is not be included in the job response.
jobOutput_appliedColorSpaceConversion :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_appliedColorSpaceConversion :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_appliedColorSpaceConversion = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
appliedColorSpaceConversion :: Maybe Text
$sel:appliedColorSpaceConversion:JobOutput' :: JobOutput -> Maybe Text
appliedColorSpaceConversion} -> Maybe Text
appliedColorSpaceConversion) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:appliedColorSpaceConversion:JobOutput' :: Maybe Text
appliedColorSpaceConversion = Maybe Text
a} :: JobOutput)

-- | Whether you want Elastic Transcoder to create thumbnails for your videos
-- and, if so, how you want Elastic Transcoder to name the files.
--
-- If you don\'t want Elastic Transcoder to create thumbnails, specify
-- \"\".
--
-- If you do want Elastic Transcoder to create thumbnails, specify the
-- information that you want to include in the file name for each
-- thumbnail. You can specify the following values in any sequence:
--
-- -   __@{count}@ (Required)__: If you want to create thumbnails, you must
--     include @{count}@ in the @ThumbnailPattern@ object. Wherever you
--     specify @{count}@, Elastic Transcoder adds a five-digit sequence
--     number (beginning with __00001__) to thumbnail file names. The
--     number indicates where a given thumbnail appears in the sequence of
--     thumbnails for a transcoded file.
--
--     If you specify a literal value and\/or @{resolution}@ but you omit
--     @{count}@, Elastic Transcoder returns a validation error and does
--     not create the job.
--
-- -   __Literal values (Optional)__: You can specify literal values
--     anywhere in the @ThumbnailPattern@ object. For example, you can
--     include them as a file name prefix or as a delimiter between
--     @{resolution}@ and @{count}@.
--
-- -   __@{resolution}@ (Optional)__: If you want Elastic Transcoder to
--     include the resolution in the file name, include @{resolution}@ in
--     the @ThumbnailPattern@ object.
--
-- When creating thumbnails, Elastic Transcoder automatically saves the
-- files in the format (.jpg or .png) that appears in the preset that you
-- specified in the @PresetID@ value of @CreateJobOutput@. Elastic
-- Transcoder also appends the applicable file name extension.
jobOutput_thumbnailPattern :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_thumbnailPattern :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_thumbnailPattern = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
thumbnailPattern :: Maybe Text
$sel:thumbnailPattern:JobOutput' :: JobOutput -> Maybe Text
thumbnailPattern} -> Maybe Text
thumbnailPattern) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:thumbnailPattern:JobOutput' :: Maybe Text
thumbnailPattern = Maybe Text
a} :: JobOutput)

-- | The status of one output in a job. If you specified only one output for
-- the job, @Outputs:Status@ is always the same as @Job:Status@. If you
-- specified more than one output:
--
-- -   @Job:Status@ and @Outputs:Status@ for all of the outputs is
--     Submitted until Elastic Transcoder starts to process the first
--     output.
--
-- -   When Elastic Transcoder starts to process the first output,
--     @Outputs:Status@ for that output and @Job:Status@ both change to
--     Progressing. For each output, the value of @Outputs:Status@ remains
--     Submitted until Elastic Transcoder starts to process the output.
--
-- -   Job:Status remains Progressing until all of the outputs reach a
--     terminal status, either Complete or Error.
--
-- -   When all of the outputs reach a terminal status, @Job:Status@
--     changes to Complete only if @Outputs:Status@ for all of the outputs
--     is @Complete@. If @Outputs:Status@ for one or more outputs is
--     @Error@, the terminal status for @Job:Status@ is also @Error@.
--
-- The value of @Status@ is one of the following: @Submitted@,
-- @Progressing@, @Complete@, @Canceled@, or @Error@.
jobOutput_status :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_status :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_status = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
status :: Maybe Text
$sel:status:JobOutput' :: JobOutput -> Maybe Text
status} -> Maybe Text
status) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:status:JobOutput' :: Maybe Text
status = Maybe Text
a} :: JobOutput)

-- | Height of the output file, in pixels.
jobOutput_height :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Int)
jobOutput_height :: (Maybe Int -> f (Maybe Int)) -> JobOutput -> f JobOutput
jobOutput_height = (JobOutput -> Maybe Int)
-> (JobOutput -> Maybe Int -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Int
height :: Maybe Int
$sel:height:JobOutput' :: JobOutput -> Maybe Int
height} -> Maybe Int
height) (\s :: JobOutput
s@JobOutput' {} Maybe Int
a -> JobOutput
s {$sel:height:JobOutput' :: Maybe Int
height = Maybe Int
a} :: JobOutput)

-- | Frame rate of the output file, in frames per second.
jobOutput_frameRate :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_frameRate :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_frameRate = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
frameRate :: Maybe Text
$sel:frameRate:JobOutput' :: JobOutput -> Maybe Text
frameRate} -> Maybe Text
frameRate) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:frameRate:JobOutput' :: Maybe Text
frameRate = Maybe Text
a} :: JobOutput)

-- | You can configure Elastic Transcoder to transcode captions, or
-- subtitles, from one format to another. All captions must be in UTF-8.
-- Elastic Transcoder supports two types of captions:
--
-- -   __Embedded:__ Embedded captions are included in the same file as the
--     audio and video. Elastic Transcoder supports only one embedded
--     caption per language, to a maximum of 300 embedded captions per
--     file.
--
--     Valid input values include: @CEA-608 (EIA-608@, first non-empty
--     channel only), @CEA-708 (EIA-708@, first non-empty channel only),
--     and @mov-text@
--
--     Valid outputs include: @mov-text@
--
--     Elastic Transcoder supports a maximum of one embedded format per
--     output.
--
-- -   __Sidecar:__ Sidecar captions are kept in a separate metadata file
--     from the audio and video data. Sidecar captions require a player
--     that is capable of understanding the relationship between the video
--     file and the sidecar file. Elastic Transcoder supports only one
--     sidecar caption per language, to a maximum of 20 sidecar captions
--     per file.
--
--     Valid input values include: @dfxp@ (first div element only),
--     @ebu-tt@, @scc@, @smpt@, @srt@, @ttml@ (first div element only), and
--     @webvtt@
--
--     Valid outputs include: @dfxp@ (first div element only), @scc@,
--     @srt@, and @webvtt@.
--
-- If you want ttml or smpte-tt compatible captions, specify dfxp as your
-- output format.
--
-- Elastic Transcoder does not support OCR (Optical Character Recognition),
-- does not accept pictures as a valid input for captions, and is not
-- available for audio-only transcoding. Elastic Transcoder does not
-- preserve text formatting (for example, italics) during the transcoding
-- process.
--
-- To remove captions or leave the captions empty, set @Captions@ to null.
-- To pass through existing captions unchanged, set the @MergePolicy@ to
-- @MergeRetain@, and pass in a null @CaptionSources@ array.
--
-- For more information on embedded files, see the Subtitles Wikipedia
-- page.
--
-- For more information on sidecar files, see the Extensible Metadata
-- Platform and Sidecar file Wikipedia pages.
jobOutput_captions :: Lens.Lens' JobOutput (Prelude.Maybe Captions)
jobOutput_captions :: (Maybe Captions -> f (Maybe Captions)) -> JobOutput -> f JobOutput
jobOutput_captions = (JobOutput -> Maybe Captions)
-> (JobOutput -> Maybe Captions -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Captions) (Maybe Captions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Captions
captions :: Maybe Captions
$sel:captions:JobOutput' :: JobOutput -> Maybe Captions
captions} -> Maybe Captions
captions) (\s :: JobOutput
s@JobOutput' {} Maybe Captions
a -> JobOutput
s {$sel:captions:JobOutput' :: Maybe Captions
captions = Maybe Captions
a} :: JobOutput)

-- | The value of the @Id@ object for the preset that you want to use for
-- this job. The preset determines the audio, video, and thumbnail settings
-- that Elastic Transcoder uses for transcoding. To use a preset that you
-- created, specify the preset ID that Elastic Transcoder returned in the
-- response when you created the preset. You can also use the Elastic
-- Transcoder system presets, which you can get with @ListPresets@.
jobOutput_presetId :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_presetId :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_presetId = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
presetId :: Maybe Text
$sel:presetId:JobOutput' :: JobOutput -> Maybe Text
presetId} -> Maybe Text
presetId) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:presetId:JobOutput' :: Maybe Text
presetId = Maybe Text
a} :: JobOutput)

-- | You can create an output file that contains an excerpt from the input
-- file. This excerpt, called a clip, can come from the beginning, middle,
-- or end of the file. The Composition object contains settings for the
-- clips that make up an output file. For the current release, you can only
-- specify settings for a single clip per output file. The Composition
-- object cannot be null.
jobOutput_composition :: Lens.Lens' JobOutput (Prelude.Maybe [Clip])
jobOutput_composition :: (Maybe [Clip] -> f (Maybe [Clip])) -> JobOutput -> f JobOutput
jobOutput_composition = (JobOutput -> Maybe [Clip])
-> (JobOutput -> Maybe [Clip] -> JobOutput)
-> Lens JobOutput JobOutput (Maybe [Clip]) (Maybe [Clip])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe [Clip]
composition :: Maybe [Clip]
$sel:composition:JobOutput' :: JobOutput -> Maybe [Clip]
composition} -> Maybe [Clip]
composition) (\s :: JobOutput
s@JobOutput' {} Maybe [Clip]
a -> JobOutput
s {$sel:composition:JobOutput' :: Maybe [Clip]
composition = Maybe [Clip]
a} :: JobOutput) ((Maybe [Clip] -> f (Maybe [Clip])) -> JobOutput -> f JobOutput)
-> ((Maybe [Clip] -> f (Maybe [Clip]))
    -> Maybe [Clip] -> f (Maybe [Clip]))
-> (Maybe [Clip] -> f (Maybe [Clip]))
-> JobOutput
-> f JobOutput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Clip] [Clip] [Clip] [Clip]
-> Iso (Maybe [Clip]) (Maybe [Clip]) (Maybe [Clip]) (Maybe [Clip])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Clip] [Clip] [Clip] [Clip]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The album art to be associated with the output file, if any.
jobOutput_albumArt :: Lens.Lens' JobOutput (Prelude.Maybe JobAlbumArt)
jobOutput_albumArt :: (Maybe JobAlbumArt -> f (Maybe JobAlbumArt))
-> JobOutput -> f JobOutput
jobOutput_albumArt = (JobOutput -> Maybe JobAlbumArt)
-> (JobOutput -> Maybe JobAlbumArt -> JobOutput)
-> Lens JobOutput JobOutput (Maybe JobAlbumArt) (Maybe JobAlbumArt)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe JobAlbumArt
albumArt :: Maybe JobAlbumArt
$sel:albumArt:JobOutput' :: JobOutput -> Maybe JobAlbumArt
albumArt} -> Maybe JobAlbumArt
albumArt) (\s :: JobOutput
s@JobOutput' {} Maybe JobAlbumArt
a -> JobOutput
s {$sel:albumArt:JobOutput' :: Maybe JobAlbumArt
albumArt = Maybe JobAlbumArt
a} :: JobOutput)

-- | File size of the output file, in bytes.
jobOutput_fileSize :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Integer)
jobOutput_fileSize :: (Maybe Integer -> f (Maybe Integer)) -> JobOutput -> f JobOutput
jobOutput_fileSize = (JobOutput -> Maybe Integer)
-> (JobOutput -> Maybe Integer -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Integer
fileSize :: Maybe Integer
$sel:fileSize:JobOutput' :: JobOutput -> Maybe Integer
fileSize} -> Maybe Integer
fileSize) (\s :: JobOutput
s@JobOutput' {} Maybe Integer
a -> JobOutput
s {$sel:fileSize:JobOutput' :: Maybe Integer
fileSize = Maybe Integer
a} :: JobOutput)

-- | Information about the watermarks that you want Elastic Transcoder to add
-- to the video during transcoding. You can specify up to four watermarks
-- for each output. Settings for each watermark must be defined in the
-- preset that you specify in @Preset@ for the current output.
--
-- Watermarks are added to the output video in the sequence in which you
-- list them in the job output—the first watermark in the list is added to
-- the output video first, the second watermark in the list is added next,
-- and so on. As a result, if the settings in a preset cause Elastic
-- Transcoder to place all watermarks in the same location, the second
-- watermark that you add covers the first one, the third one covers the
-- second, and the fourth one covers the third.
jobOutput_watermarks :: Lens.Lens' JobOutput (Prelude.Maybe [JobWatermark])
jobOutput_watermarks :: (Maybe [JobWatermark] -> f (Maybe [JobWatermark]))
-> JobOutput -> f JobOutput
jobOutput_watermarks = (JobOutput -> Maybe [JobWatermark])
-> (JobOutput -> Maybe [JobWatermark] -> JobOutput)
-> Lens
     JobOutput JobOutput (Maybe [JobWatermark]) (Maybe [JobWatermark])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe [JobWatermark]
watermarks :: Maybe [JobWatermark]
$sel:watermarks:JobOutput' :: JobOutput -> Maybe [JobWatermark]
watermarks} -> Maybe [JobWatermark]
watermarks) (\s :: JobOutput
s@JobOutput' {} Maybe [JobWatermark]
a -> JobOutput
s {$sel:watermarks:JobOutput' :: Maybe [JobWatermark]
watermarks = Maybe [JobWatermark]
a} :: JobOutput) ((Maybe [JobWatermark] -> f (Maybe [JobWatermark]))
 -> JobOutput -> f JobOutput)
-> ((Maybe [JobWatermark] -> f (Maybe [JobWatermark]))
    -> Maybe [JobWatermark] -> f (Maybe [JobWatermark]))
-> (Maybe [JobWatermark] -> f (Maybe [JobWatermark]))
-> JobOutput
-> f JobOutput
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [JobWatermark] [JobWatermark] [JobWatermark] [JobWatermark]
-> Iso
     (Maybe [JobWatermark])
     (Maybe [JobWatermark])
     (Maybe [JobWatermark])
     (Maybe [JobWatermark])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [JobWatermark] [JobWatermark] [JobWatermark] [JobWatermark]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specifies the width of the output file in pixels.
jobOutput_width :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Int)
jobOutput_width :: (Maybe Int -> f (Maybe Int)) -> JobOutput -> f JobOutput
jobOutput_width = (JobOutput -> Maybe Int)
-> (JobOutput -> Maybe Int -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Int
width :: Maybe Int
$sel:width:JobOutput' :: JobOutput -> Maybe Int
width} -> Maybe Int
width) (\s :: JobOutput
s@JobOutput' {} Maybe Int
a -> JobOutput
s {$sel:width:JobOutput' :: Maybe Int
width = Maybe Int
a} :: JobOutput)

-- | The encryption settings, if any, that you want Elastic Transcoder to
-- apply to your output files. If you choose to use encryption, you must
-- specify a mode to use. If you choose not to use encryption, Elastic
-- Transcoder writes an unencrypted file to your Amazon S3 bucket.
jobOutput_encryption :: Lens.Lens' JobOutput (Prelude.Maybe Encryption)
jobOutput_encryption :: (Maybe Encryption -> f (Maybe Encryption))
-> JobOutput -> f JobOutput
jobOutput_encryption = (JobOutput -> Maybe Encryption)
-> (JobOutput -> Maybe Encryption -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Encryption) (Maybe Encryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Encryption
encryption :: Maybe Encryption
$sel:encryption:JobOutput' :: JobOutput -> Maybe Encryption
encryption} -> Maybe Encryption
encryption) (\s :: JobOutput
s@JobOutput' {} Maybe Encryption
a -> JobOutput
s {$sel:encryption:JobOutput' :: Maybe Encryption
encryption = Maybe Encryption
a} :: JobOutput)

-- | The name to assign to the transcoded file. Elastic Transcoder saves the
-- file in the Amazon S3 bucket specified by the @OutputBucket@ object in
-- the pipeline that is specified by the pipeline ID.
jobOutput_key :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_key :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_key = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
key :: Maybe Text
$sel:key:JobOutput' :: JobOutput -> Maybe Text
key} -> Maybe Text
key) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:key:JobOutput' :: Maybe Text
key = Maybe Text
a} :: JobOutput)

-- | Information that further explains @Status@.
jobOutput_statusDetail :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_statusDetail :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_statusDetail = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
statusDetail :: Maybe Text
$sel:statusDetail:JobOutput' :: JobOutput -> Maybe Text
statusDetail} -> Maybe Text
statusDetail) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:statusDetail:JobOutput' :: Maybe Text
statusDetail = Maybe Text
a} :: JobOutput)

-- | A sequential counter, starting with 1, that identifies an output among
-- the outputs from the current job. In the Output syntax, this value is
-- always 1.
jobOutput_id :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_id :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_id = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
id :: Maybe Text
$sel:id:JobOutput' :: JobOutput -> Maybe Text
id} -> Maybe Text
id) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:id:JobOutput' :: Maybe Text
id = Maybe Text
a} :: JobOutput)

-- | (Outputs in Fragmented MP4 or MPEG-TS format only.
--
-- If you specify a preset in @PresetId@ for which the value of @Container@
-- is @fmp4@ (Fragmented MP4) or @ts@ (MPEG-TS), @SegmentDuration@ is the
-- target maximum duration of each segment in seconds. For @HLSv3@ format
-- playlists, each media segment is stored in a separate @.ts@ file. For
-- @HLSv4@, @MPEG-DASH@, and @Smooth@ playlists, all media segments for an
-- output are stored in a single file. Each segment is approximately the
-- length of the @SegmentDuration@, though individual segments might be
-- shorter or longer.
--
-- The range of valid values is 1 to 60 seconds. If the duration of the
-- video is not evenly divisible by @SegmentDuration@, the duration of the
-- last segment is the remainder of total length\/SegmentDuration.
--
-- Elastic Transcoder creates an output-specific playlist for each output
-- @HLS@ output that you specify in OutputKeys. To add an output to the
-- master playlist for this job, include it in the @OutputKeys@ of the
-- associated playlist.
jobOutput_segmentDuration :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_segmentDuration :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_segmentDuration = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
segmentDuration :: Maybe Text
$sel:segmentDuration:JobOutput' :: JobOutput -> Maybe Text
segmentDuration} -> Maybe Text
segmentDuration) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:segmentDuration:JobOutput' :: Maybe Text
segmentDuration = Maybe Text
a} :: JobOutput)

-- | Duration of the output file, in milliseconds.
jobOutput_durationMillis :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Integer)
jobOutput_durationMillis :: (Maybe Integer -> f (Maybe Integer)) -> JobOutput -> f JobOutput
jobOutput_durationMillis = (JobOutput -> Maybe Integer)
-> (JobOutput -> Maybe Integer -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Integer
durationMillis :: Maybe Integer
$sel:durationMillis:JobOutput' :: JobOutput -> Maybe Integer
durationMillis} -> Maybe Integer
durationMillis) (\s :: JobOutput
s@JobOutput' {} Maybe Integer
a -> JobOutput
s {$sel:durationMillis:JobOutput' :: Maybe Integer
durationMillis = Maybe Integer
a} :: JobOutput)

-- | The encryption settings, if any, that you want Elastic Transcoder to
-- apply to your thumbnail.
jobOutput_thumbnailEncryption :: Lens.Lens' JobOutput (Prelude.Maybe Encryption)
jobOutput_thumbnailEncryption :: (Maybe Encryption -> f (Maybe Encryption))
-> JobOutput -> f JobOutput
jobOutput_thumbnailEncryption = (JobOutput -> Maybe Encryption)
-> (JobOutput -> Maybe Encryption -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Encryption) (Maybe Encryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Encryption
thumbnailEncryption :: Maybe Encryption
$sel:thumbnailEncryption:JobOutput' :: JobOutput -> Maybe Encryption
thumbnailEncryption} -> Maybe Encryption
thumbnailEncryption) (\s :: JobOutput
s@JobOutput' {} Maybe Encryption
a -> JobOutput
s {$sel:thumbnailEncryption:JobOutput' :: Maybe Encryption
thumbnailEncryption = Maybe Encryption
a} :: JobOutput)

-- | Duration of the output file, in seconds.
jobOutput_duration :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Integer)
jobOutput_duration :: (Maybe Integer -> f (Maybe Integer)) -> JobOutput -> f JobOutput
jobOutput_duration = (JobOutput -> Maybe Integer)
-> (JobOutput -> Maybe Integer -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Integer
duration :: Maybe Integer
$sel:duration:JobOutput' :: JobOutput -> Maybe Integer
duration} -> Maybe Integer
duration) (\s :: JobOutput
s@JobOutput' {} Maybe Integer
a -> JobOutput
s {$sel:duration:JobOutput' :: Maybe Integer
duration = Maybe Integer
a} :: JobOutput)

-- | The number of degrees clockwise by which you want Elastic Transcoder to
-- rotate the output relative to the input. Enter one of the following
-- values:
--
-- @auto@, @0@, @90@, @180@, @270@
--
-- The value @auto@ generally works only if the file that you\'re
-- transcoding contains rotation metadata.
jobOutput_rotate :: Lens.Lens' JobOutput (Prelude.Maybe Prelude.Text)
jobOutput_rotate :: (Maybe Text -> f (Maybe Text)) -> JobOutput -> f JobOutput
jobOutput_rotate = (JobOutput -> Maybe Text)
-> (JobOutput -> Maybe Text -> JobOutput)
-> Lens JobOutput JobOutput (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\JobOutput' {Maybe Text
rotate :: Maybe Text
$sel:rotate:JobOutput' :: JobOutput -> Maybe Text
rotate} -> Maybe Text
rotate) (\s :: JobOutput
s@JobOutput' {} Maybe Text
a -> JobOutput
s {$sel:rotate:JobOutput' :: Maybe Text
rotate = Maybe Text
a} :: JobOutput)

instance Core.FromJSON JobOutput where
  parseJSON :: Value -> Parser JobOutput
parseJSON =
    String -> (Object -> Parser JobOutput) -> Value -> Parser JobOutput
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"JobOutput"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Captions
-> Maybe Text
-> Maybe [Clip]
-> Maybe JobAlbumArt
-> Maybe Integer
-> Maybe [JobWatermark]
-> Maybe Int
-> Maybe Encryption
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Integer
-> Maybe Encryption
-> Maybe Integer
-> Maybe Text
-> JobOutput
JobOutput'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Int
 -> Maybe Text
 -> Maybe Captions
 -> Maybe Text
 -> Maybe [Clip]
 -> Maybe JobAlbumArt
 -> Maybe Integer
 -> Maybe [JobWatermark]
 -> Maybe Int
 -> Maybe Encryption
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Integer
 -> Maybe Encryption
 -> Maybe Integer
 -> Maybe Text
 -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Captions
      -> Maybe Text
      -> Maybe [Clip]
      -> Maybe JobAlbumArt
      -> Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AppliedColorSpaceConversion")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Captions
   -> Maybe Text
   -> Maybe [Clip]
   -> Maybe JobAlbumArt
   -> Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Int
      -> Maybe Text
      -> Maybe Captions
      -> Maybe Text
      -> Maybe [Clip]
      -> Maybe JobAlbumArt
      -> Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ThumbnailPattern")
            Parser
  (Maybe Text
   -> Maybe Int
   -> Maybe Text
   -> Maybe Captions
   -> Maybe Text
   -> Maybe [Clip]
   -> Maybe JobAlbumArt
   -> Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe Int
      -> Maybe Text
      -> Maybe Captions
      -> Maybe Text
      -> Maybe [Clip]
      -> Maybe JobAlbumArt
      -> Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
            Parser
  (Maybe Int
   -> Maybe Text
   -> Maybe Captions
   -> Maybe Text
   -> Maybe [Clip]
   -> Maybe JobAlbumArt
   -> Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Int)
-> Parser
     (Maybe Text
      -> Maybe Captions
      -> Maybe Text
      -> Maybe [Clip]
      -> Maybe JobAlbumArt
      -> Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Height")
            Parser
  (Maybe Text
   -> Maybe Captions
   -> Maybe Text
   -> Maybe [Clip]
   -> Maybe JobAlbumArt
   -> Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe Captions
      -> Maybe Text
      -> Maybe [Clip]
      -> Maybe JobAlbumArt
      -> Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FrameRate")
            Parser
  (Maybe Captions
   -> Maybe Text
   -> Maybe [Clip]
   -> Maybe JobAlbumArt
   -> Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Captions)
-> Parser
     (Maybe Text
      -> Maybe [Clip]
      -> Maybe JobAlbumArt
      -> Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Captions)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Captions")
            Parser
  (Maybe Text
   -> Maybe [Clip]
   -> Maybe JobAlbumArt
   -> Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe [Clip]
      -> Maybe JobAlbumArt
      -> Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PresetId")
            Parser
  (Maybe [Clip]
   -> Maybe JobAlbumArt
   -> Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe [Clip])
-> Parser
     (Maybe JobAlbumArt
      -> Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [Clip]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Composition" Parser (Maybe (Maybe [Clip]))
-> Maybe [Clip] -> Parser (Maybe [Clip])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Clip]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe JobAlbumArt
   -> Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe JobAlbumArt)
-> Parser
     (Maybe Integer
      -> Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe JobAlbumArt)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AlbumArt")
            Parser
  (Maybe Integer
   -> Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Integer)
-> Parser
     (Maybe [JobWatermark]
      -> Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FileSize")
            Parser
  (Maybe [JobWatermark]
   -> Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe [JobWatermark])
-> Parser
     (Maybe Int
      -> Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [JobWatermark]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Watermarks" Parser (Maybe (Maybe [JobWatermark]))
-> Maybe [JobWatermark] -> Parser (Maybe [JobWatermark])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [JobWatermark]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe Int
   -> Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Int)
-> Parser
     (Maybe Encryption
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Width")
            Parser
  (Maybe Encryption
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Encryption)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Encryption)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Encryption")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Key")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"StatusDetail")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Integer
      -> Maybe Encryption
      -> Maybe Integer
      -> Maybe Text
      -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Id")
            Parser
  (Maybe Text
   -> Maybe Integer
   -> Maybe Encryption
   -> Maybe Integer
   -> Maybe Text
   -> JobOutput)
-> Parser (Maybe Text)
-> Parser
     (Maybe Integer
      -> Maybe Encryption -> Maybe Integer -> Maybe Text -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SegmentDuration")
            Parser
  (Maybe Integer
   -> Maybe Encryption -> Maybe Integer -> Maybe Text -> JobOutput)
-> Parser (Maybe Integer)
-> Parser
     (Maybe Encryption -> Maybe Integer -> Maybe Text -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DurationMillis")
            Parser
  (Maybe Encryption -> Maybe Integer -> Maybe Text -> JobOutput)
-> Parser (Maybe Encryption)
-> Parser (Maybe Integer -> Maybe Text -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Encryption)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ThumbnailEncryption")
            Parser (Maybe Integer -> Maybe Text -> JobOutput)
-> Parser (Maybe Integer) -> Parser (Maybe Text -> JobOutput)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Duration")
            Parser (Maybe Text -> JobOutput)
-> Parser (Maybe Text) -> Parser JobOutput
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Rotate")
      )

instance Prelude.Hashable JobOutput

instance Prelude.NFData JobOutput