{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

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

-- |
-- Module      : Amazonka.MediaConvert.Types.DashIsoSegmentLengthControl
-- 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.MediaConvert.Types.DashIsoSegmentLengthControl
  ( DashIsoSegmentLengthControl
      ( ..,
        DashIsoSegmentLengthControl_EXACT,
        DashIsoSegmentLengthControl_GOP_MULTIPLE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

-- | Specify how you want MediaConvert to determine the segment length.
-- Choose Exact (EXACT) to have the encoder use the exact length that you
-- specify with the setting Segment length (SegmentLength). This might
-- result in extra I-frames. Choose Multiple of GOP (GOP_MULTIPLE) to have
-- the encoder round up the segment lengths to match the next GOP boundary.
newtype DashIsoSegmentLengthControl = DashIsoSegmentLengthControl'
  { DashIsoSegmentLengthControl -> Text
fromDashIsoSegmentLengthControl ::
      Core.Text
  }
  deriving stock
    ( Int -> DashIsoSegmentLengthControl -> ShowS
[DashIsoSegmentLengthControl] -> ShowS
DashIsoSegmentLengthControl -> String
(Int -> DashIsoSegmentLengthControl -> ShowS)
-> (DashIsoSegmentLengthControl -> String)
-> ([DashIsoSegmentLengthControl] -> ShowS)
-> Show DashIsoSegmentLengthControl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DashIsoSegmentLengthControl] -> ShowS
$cshowList :: [DashIsoSegmentLengthControl] -> ShowS
show :: DashIsoSegmentLengthControl -> String
$cshow :: DashIsoSegmentLengthControl -> String
showsPrec :: Int -> DashIsoSegmentLengthControl -> ShowS
$cshowsPrec :: Int -> DashIsoSegmentLengthControl -> ShowS
Prelude.Show,
      ReadPrec [DashIsoSegmentLengthControl]
ReadPrec DashIsoSegmentLengthControl
Int -> ReadS DashIsoSegmentLengthControl
ReadS [DashIsoSegmentLengthControl]
(Int -> ReadS DashIsoSegmentLengthControl)
-> ReadS [DashIsoSegmentLengthControl]
-> ReadPrec DashIsoSegmentLengthControl
-> ReadPrec [DashIsoSegmentLengthControl]
-> Read DashIsoSegmentLengthControl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DashIsoSegmentLengthControl]
$creadListPrec :: ReadPrec [DashIsoSegmentLengthControl]
readPrec :: ReadPrec DashIsoSegmentLengthControl
$creadPrec :: ReadPrec DashIsoSegmentLengthControl
readList :: ReadS [DashIsoSegmentLengthControl]
$creadList :: ReadS [DashIsoSegmentLengthControl]
readsPrec :: Int -> ReadS DashIsoSegmentLengthControl
$creadsPrec :: Int -> ReadS DashIsoSegmentLengthControl
Prelude.Read,
      DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
(DashIsoSegmentLengthControl
 -> DashIsoSegmentLengthControl -> Bool)
-> (DashIsoSegmentLengthControl
    -> DashIsoSegmentLengthControl -> Bool)
-> Eq DashIsoSegmentLengthControl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
$c/= :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
== :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
$c== :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
Prelude.Eq,
      Eq DashIsoSegmentLengthControl
Eq DashIsoSegmentLengthControl
-> (DashIsoSegmentLengthControl
    -> DashIsoSegmentLengthControl -> Ordering)
-> (DashIsoSegmentLengthControl
    -> DashIsoSegmentLengthControl -> Bool)
-> (DashIsoSegmentLengthControl
    -> DashIsoSegmentLengthControl -> Bool)
-> (DashIsoSegmentLengthControl
    -> DashIsoSegmentLengthControl -> Bool)
-> (DashIsoSegmentLengthControl
    -> DashIsoSegmentLengthControl -> Bool)
-> (DashIsoSegmentLengthControl
    -> DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl)
-> (DashIsoSegmentLengthControl
    -> DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl)
-> Ord DashIsoSegmentLengthControl
DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
DashIsoSegmentLengthControl
-> DashIsoSegmentLengthControl -> Ordering
DashIsoSegmentLengthControl
-> DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: DashIsoSegmentLengthControl
-> DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl
$cmin :: DashIsoSegmentLengthControl
-> DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl
max :: DashIsoSegmentLengthControl
-> DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl
$cmax :: DashIsoSegmentLengthControl
-> DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl
>= :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
$c>= :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
> :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
$c> :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
<= :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
$c<= :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
< :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
$c< :: DashIsoSegmentLengthControl -> DashIsoSegmentLengthControl -> Bool
compare :: DashIsoSegmentLengthControl
-> DashIsoSegmentLengthControl -> Ordering
$ccompare :: DashIsoSegmentLengthControl
-> DashIsoSegmentLengthControl -> Ordering
$cp1Ord :: Eq DashIsoSegmentLengthControl
Prelude.Ord,
      (forall x.
 DashIsoSegmentLengthControl -> Rep DashIsoSegmentLengthControl x)
-> (forall x.
    Rep DashIsoSegmentLengthControl x -> DashIsoSegmentLengthControl)
-> Generic DashIsoSegmentLengthControl
forall x.
Rep DashIsoSegmentLengthControl x -> DashIsoSegmentLengthControl
forall x.
DashIsoSegmentLengthControl -> Rep DashIsoSegmentLengthControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DashIsoSegmentLengthControl x -> DashIsoSegmentLengthControl
$cfrom :: forall x.
DashIsoSegmentLengthControl -> Rep DashIsoSegmentLengthControl x
Prelude.Generic
    )
  deriving newtype
    ( Int -> DashIsoSegmentLengthControl -> Int
DashIsoSegmentLengthControl -> Int
(Int -> DashIsoSegmentLengthControl -> Int)
-> (DashIsoSegmentLengthControl -> Int)
-> Hashable DashIsoSegmentLengthControl
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: DashIsoSegmentLengthControl -> Int
$chash :: DashIsoSegmentLengthControl -> Int
hashWithSalt :: Int -> DashIsoSegmentLengthControl -> Int
$chashWithSalt :: Int -> DashIsoSegmentLengthControl -> Int
Prelude.Hashable,
      DashIsoSegmentLengthControl -> ()
(DashIsoSegmentLengthControl -> ())
-> NFData DashIsoSegmentLengthControl
forall a. (a -> ()) -> NFData a
rnf :: DashIsoSegmentLengthControl -> ()
$crnf :: DashIsoSegmentLengthControl -> ()
Prelude.NFData,
      Text -> Either String DashIsoSegmentLengthControl
(Text -> Either String DashIsoSegmentLengthControl)
-> FromText DashIsoSegmentLengthControl
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DashIsoSegmentLengthControl
$cfromText :: Text -> Either String DashIsoSegmentLengthControl
Core.FromText,
      DashIsoSegmentLengthControl -> Text
(DashIsoSegmentLengthControl -> Text)
-> ToText DashIsoSegmentLengthControl
forall a. (a -> Text) -> ToText a
toText :: DashIsoSegmentLengthControl -> Text
$ctoText :: DashIsoSegmentLengthControl -> Text
Core.ToText,
      DashIsoSegmentLengthControl -> ByteString
(DashIsoSegmentLengthControl -> ByteString)
-> ToByteString DashIsoSegmentLengthControl
forall a. (a -> ByteString) -> ToByteString a
toBS :: DashIsoSegmentLengthControl -> ByteString
$ctoBS :: DashIsoSegmentLengthControl -> ByteString
Core.ToByteString,
      DashIsoSegmentLengthControl -> ByteStringBuilder
(DashIsoSegmentLengthControl -> ByteStringBuilder)
-> ToLog DashIsoSegmentLengthControl
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DashIsoSegmentLengthControl -> ByteStringBuilder
$cbuild :: DashIsoSegmentLengthControl -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DashIsoSegmentLengthControl -> [Header]
(HeaderName -> DashIsoSegmentLengthControl -> [Header])
-> ToHeader DashIsoSegmentLengthControl
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DashIsoSegmentLengthControl -> [Header]
$ctoHeader :: HeaderName -> DashIsoSegmentLengthControl -> [Header]
Core.ToHeader,
      DashIsoSegmentLengthControl -> QueryString
(DashIsoSegmentLengthControl -> QueryString)
-> ToQuery DashIsoSegmentLengthControl
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DashIsoSegmentLengthControl -> QueryString
$ctoQuery :: DashIsoSegmentLengthControl -> QueryString
Core.ToQuery,
      Value -> Parser [DashIsoSegmentLengthControl]
Value -> Parser DashIsoSegmentLengthControl
(Value -> Parser DashIsoSegmentLengthControl)
-> (Value -> Parser [DashIsoSegmentLengthControl])
-> FromJSON DashIsoSegmentLengthControl
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [DashIsoSegmentLengthControl]
$cparseJSONList :: Value -> Parser [DashIsoSegmentLengthControl]
parseJSON :: Value -> Parser DashIsoSegmentLengthControl
$cparseJSON :: Value -> Parser DashIsoSegmentLengthControl
Core.FromJSON,
      FromJSONKeyFunction [DashIsoSegmentLengthControl]
FromJSONKeyFunction DashIsoSegmentLengthControl
FromJSONKeyFunction DashIsoSegmentLengthControl
-> FromJSONKeyFunction [DashIsoSegmentLengthControl]
-> FromJSONKey DashIsoSegmentLengthControl
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DashIsoSegmentLengthControl]
$cfromJSONKeyList :: FromJSONKeyFunction [DashIsoSegmentLengthControl]
fromJSONKey :: FromJSONKeyFunction DashIsoSegmentLengthControl
$cfromJSONKey :: FromJSONKeyFunction DashIsoSegmentLengthControl
Core.FromJSONKey,
      [DashIsoSegmentLengthControl] -> Encoding
[DashIsoSegmentLengthControl] -> Value
DashIsoSegmentLengthControl -> Encoding
DashIsoSegmentLengthControl -> Value
(DashIsoSegmentLengthControl -> Value)
-> (DashIsoSegmentLengthControl -> Encoding)
-> ([DashIsoSegmentLengthControl] -> Value)
-> ([DashIsoSegmentLengthControl] -> Encoding)
-> ToJSON DashIsoSegmentLengthControl
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [DashIsoSegmentLengthControl] -> Encoding
$ctoEncodingList :: [DashIsoSegmentLengthControl] -> Encoding
toJSONList :: [DashIsoSegmentLengthControl] -> Value
$ctoJSONList :: [DashIsoSegmentLengthControl] -> Value
toEncoding :: DashIsoSegmentLengthControl -> Encoding
$ctoEncoding :: DashIsoSegmentLengthControl -> Encoding
toJSON :: DashIsoSegmentLengthControl -> Value
$ctoJSON :: DashIsoSegmentLengthControl -> Value
Core.ToJSON,
      ToJSONKeyFunction [DashIsoSegmentLengthControl]
ToJSONKeyFunction DashIsoSegmentLengthControl
ToJSONKeyFunction DashIsoSegmentLengthControl
-> ToJSONKeyFunction [DashIsoSegmentLengthControl]
-> ToJSONKey DashIsoSegmentLengthControl
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DashIsoSegmentLengthControl]
$ctoJSONKeyList :: ToJSONKeyFunction [DashIsoSegmentLengthControl]
toJSONKey :: ToJSONKeyFunction DashIsoSegmentLengthControl
$ctoJSONKey :: ToJSONKeyFunction DashIsoSegmentLengthControl
Core.ToJSONKey,
      [Node] -> Either String DashIsoSegmentLengthControl
([Node] -> Either String DashIsoSegmentLengthControl)
-> FromXML DashIsoSegmentLengthControl
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DashIsoSegmentLengthControl
$cparseXML :: [Node] -> Either String DashIsoSegmentLengthControl
Core.FromXML,
      DashIsoSegmentLengthControl -> XML
(DashIsoSegmentLengthControl -> XML)
-> ToXML DashIsoSegmentLengthControl
forall a. (a -> XML) -> ToXML a
toXML :: DashIsoSegmentLengthControl -> XML
$ctoXML :: DashIsoSegmentLengthControl -> XML
Core.ToXML
    )

pattern DashIsoSegmentLengthControl_EXACT :: DashIsoSegmentLengthControl
pattern $bDashIsoSegmentLengthControl_EXACT :: DashIsoSegmentLengthControl
$mDashIsoSegmentLengthControl_EXACT :: forall r.
DashIsoSegmentLengthControl -> (Void# -> r) -> (Void# -> r) -> r
DashIsoSegmentLengthControl_EXACT = DashIsoSegmentLengthControl' "EXACT"

pattern DashIsoSegmentLengthControl_GOP_MULTIPLE :: DashIsoSegmentLengthControl
pattern $bDashIsoSegmentLengthControl_GOP_MULTIPLE :: DashIsoSegmentLengthControl
$mDashIsoSegmentLengthControl_GOP_MULTIPLE :: forall r.
DashIsoSegmentLengthControl -> (Void# -> r) -> (Void# -> r) -> r
DashIsoSegmentLengthControl_GOP_MULTIPLE = DashIsoSegmentLengthControl' "GOP_MULTIPLE"

{-# COMPLETE
  DashIsoSegmentLengthControl_EXACT,
  DashIsoSegmentLengthControl_GOP_MULTIPLE,
  DashIsoSegmentLengthControl'
  #-}