{-# 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.H265GopSizeUnits
-- 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.H265GopSizeUnits
  ( H265GopSizeUnits
      ( ..,
        H265GopSizeUnits_FRAMES,
        H265GopSizeUnits_SECONDS
      ),
  )
where

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

-- | Indicates if the GOP Size in H265 is specified in frames or seconds. If
-- seconds the system will convert the GOP Size into a frame count at run
-- time.
newtype H265GopSizeUnits = H265GopSizeUnits'
  { H265GopSizeUnits -> Text
fromH265GopSizeUnits ::
      Core.Text
  }
  deriving stock
    ( Int -> H265GopSizeUnits -> ShowS
[H265GopSizeUnits] -> ShowS
H265GopSizeUnits -> String
(Int -> H265GopSizeUnits -> ShowS)
-> (H265GopSizeUnits -> String)
-> ([H265GopSizeUnits] -> ShowS)
-> Show H265GopSizeUnits
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [H265GopSizeUnits] -> ShowS
$cshowList :: [H265GopSizeUnits] -> ShowS
show :: H265GopSizeUnits -> String
$cshow :: H265GopSizeUnits -> String
showsPrec :: Int -> H265GopSizeUnits -> ShowS
$cshowsPrec :: Int -> H265GopSizeUnits -> ShowS
Prelude.Show,
      ReadPrec [H265GopSizeUnits]
ReadPrec H265GopSizeUnits
Int -> ReadS H265GopSizeUnits
ReadS [H265GopSizeUnits]
(Int -> ReadS H265GopSizeUnits)
-> ReadS [H265GopSizeUnits]
-> ReadPrec H265GopSizeUnits
-> ReadPrec [H265GopSizeUnits]
-> Read H265GopSizeUnits
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [H265GopSizeUnits]
$creadListPrec :: ReadPrec [H265GopSizeUnits]
readPrec :: ReadPrec H265GopSizeUnits
$creadPrec :: ReadPrec H265GopSizeUnits
readList :: ReadS [H265GopSizeUnits]
$creadList :: ReadS [H265GopSizeUnits]
readsPrec :: Int -> ReadS H265GopSizeUnits
$creadsPrec :: Int -> ReadS H265GopSizeUnits
Prelude.Read,
      H265GopSizeUnits -> H265GopSizeUnits -> Bool
(H265GopSizeUnits -> H265GopSizeUnits -> Bool)
-> (H265GopSizeUnits -> H265GopSizeUnits -> Bool)
-> Eq H265GopSizeUnits
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
$c/= :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
== :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
$c== :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
Prelude.Eq,
      Eq H265GopSizeUnits
Eq H265GopSizeUnits
-> (H265GopSizeUnits -> H265GopSizeUnits -> Ordering)
-> (H265GopSizeUnits -> H265GopSizeUnits -> Bool)
-> (H265GopSizeUnits -> H265GopSizeUnits -> Bool)
-> (H265GopSizeUnits -> H265GopSizeUnits -> Bool)
-> (H265GopSizeUnits -> H265GopSizeUnits -> Bool)
-> (H265GopSizeUnits -> H265GopSizeUnits -> H265GopSizeUnits)
-> (H265GopSizeUnits -> H265GopSizeUnits -> H265GopSizeUnits)
-> Ord H265GopSizeUnits
H265GopSizeUnits -> H265GopSizeUnits -> Bool
H265GopSizeUnits -> H265GopSizeUnits -> Ordering
H265GopSizeUnits -> H265GopSizeUnits -> H265GopSizeUnits
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 :: H265GopSizeUnits -> H265GopSizeUnits -> H265GopSizeUnits
$cmin :: H265GopSizeUnits -> H265GopSizeUnits -> H265GopSizeUnits
max :: H265GopSizeUnits -> H265GopSizeUnits -> H265GopSizeUnits
$cmax :: H265GopSizeUnits -> H265GopSizeUnits -> H265GopSizeUnits
>= :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
$c>= :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
> :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
$c> :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
<= :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
$c<= :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
< :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
$c< :: H265GopSizeUnits -> H265GopSizeUnits -> Bool
compare :: H265GopSizeUnits -> H265GopSizeUnits -> Ordering
$ccompare :: H265GopSizeUnits -> H265GopSizeUnits -> Ordering
$cp1Ord :: Eq H265GopSizeUnits
Prelude.Ord,
      (forall x. H265GopSizeUnits -> Rep H265GopSizeUnits x)
-> (forall x. Rep H265GopSizeUnits x -> H265GopSizeUnits)
-> Generic H265GopSizeUnits
forall x. Rep H265GopSizeUnits x -> H265GopSizeUnits
forall x. H265GopSizeUnits -> Rep H265GopSizeUnits x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep H265GopSizeUnits x -> H265GopSizeUnits
$cfrom :: forall x. H265GopSizeUnits -> Rep H265GopSizeUnits x
Prelude.Generic
    )
  deriving newtype
    ( Int -> H265GopSizeUnits -> Int
H265GopSizeUnits -> Int
(Int -> H265GopSizeUnits -> Int)
-> (H265GopSizeUnits -> Int) -> Hashable H265GopSizeUnits
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: H265GopSizeUnits -> Int
$chash :: H265GopSizeUnits -> Int
hashWithSalt :: Int -> H265GopSizeUnits -> Int
$chashWithSalt :: Int -> H265GopSizeUnits -> Int
Prelude.Hashable,
      H265GopSizeUnits -> ()
(H265GopSizeUnits -> ()) -> NFData H265GopSizeUnits
forall a. (a -> ()) -> NFData a
rnf :: H265GopSizeUnits -> ()
$crnf :: H265GopSizeUnits -> ()
Prelude.NFData,
      Text -> Either String H265GopSizeUnits
(Text -> Either String H265GopSizeUnits)
-> FromText H265GopSizeUnits
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String H265GopSizeUnits
$cfromText :: Text -> Either String H265GopSizeUnits
Core.FromText,
      H265GopSizeUnits -> Text
(H265GopSizeUnits -> Text) -> ToText H265GopSizeUnits
forall a. (a -> Text) -> ToText a
toText :: H265GopSizeUnits -> Text
$ctoText :: H265GopSizeUnits -> Text
Core.ToText,
      H265GopSizeUnits -> ByteString
(H265GopSizeUnits -> ByteString) -> ToByteString H265GopSizeUnits
forall a. (a -> ByteString) -> ToByteString a
toBS :: H265GopSizeUnits -> ByteString
$ctoBS :: H265GopSizeUnits -> ByteString
Core.ToByteString,
      H265GopSizeUnits -> ByteStringBuilder
(H265GopSizeUnits -> ByteStringBuilder) -> ToLog H265GopSizeUnits
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: H265GopSizeUnits -> ByteStringBuilder
$cbuild :: H265GopSizeUnits -> ByteStringBuilder
Core.ToLog,
      HeaderName -> H265GopSizeUnits -> [Header]
(HeaderName -> H265GopSizeUnits -> [Header])
-> ToHeader H265GopSizeUnits
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> H265GopSizeUnits -> [Header]
$ctoHeader :: HeaderName -> H265GopSizeUnits -> [Header]
Core.ToHeader,
      H265GopSizeUnits -> QueryString
(H265GopSizeUnits -> QueryString) -> ToQuery H265GopSizeUnits
forall a. (a -> QueryString) -> ToQuery a
toQuery :: H265GopSizeUnits -> QueryString
$ctoQuery :: H265GopSizeUnits -> QueryString
Core.ToQuery,
      Value -> Parser [H265GopSizeUnits]
Value -> Parser H265GopSizeUnits
(Value -> Parser H265GopSizeUnits)
-> (Value -> Parser [H265GopSizeUnits])
-> FromJSON H265GopSizeUnits
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [H265GopSizeUnits]
$cparseJSONList :: Value -> Parser [H265GopSizeUnits]
parseJSON :: Value -> Parser H265GopSizeUnits
$cparseJSON :: Value -> Parser H265GopSizeUnits
Core.FromJSON,
      FromJSONKeyFunction [H265GopSizeUnits]
FromJSONKeyFunction H265GopSizeUnits
FromJSONKeyFunction H265GopSizeUnits
-> FromJSONKeyFunction [H265GopSizeUnits]
-> FromJSONKey H265GopSizeUnits
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [H265GopSizeUnits]
$cfromJSONKeyList :: FromJSONKeyFunction [H265GopSizeUnits]
fromJSONKey :: FromJSONKeyFunction H265GopSizeUnits
$cfromJSONKey :: FromJSONKeyFunction H265GopSizeUnits
Core.FromJSONKey,
      [H265GopSizeUnits] -> Encoding
[H265GopSizeUnits] -> Value
H265GopSizeUnits -> Encoding
H265GopSizeUnits -> Value
(H265GopSizeUnits -> Value)
-> (H265GopSizeUnits -> Encoding)
-> ([H265GopSizeUnits] -> Value)
-> ([H265GopSizeUnits] -> Encoding)
-> ToJSON H265GopSizeUnits
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [H265GopSizeUnits] -> Encoding
$ctoEncodingList :: [H265GopSizeUnits] -> Encoding
toJSONList :: [H265GopSizeUnits] -> Value
$ctoJSONList :: [H265GopSizeUnits] -> Value
toEncoding :: H265GopSizeUnits -> Encoding
$ctoEncoding :: H265GopSizeUnits -> Encoding
toJSON :: H265GopSizeUnits -> Value
$ctoJSON :: H265GopSizeUnits -> Value
Core.ToJSON,
      ToJSONKeyFunction [H265GopSizeUnits]
ToJSONKeyFunction H265GopSizeUnits
ToJSONKeyFunction H265GopSizeUnits
-> ToJSONKeyFunction [H265GopSizeUnits]
-> ToJSONKey H265GopSizeUnits
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [H265GopSizeUnits]
$ctoJSONKeyList :: ToJSONKeyFunction [H265GopSizeUnits]
toJSONKey :: ToJSONKeyFunction H265GopSizeUnits
$ctoJSONKey :: ToJSONKeyFunction H265GopSizeUnits
Core.ToJSONKey,
      [Node] -> Either String H265GopSizeUnits
([Node] -> Either String H265GopSizeUnits)
-> FromXML H265GopSizeUnits
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String H265GopSizeUnits
$cparseXML :: [Node] -> Either String H265GopSizeUnits
Core.FromXML,
      H265GopSizeUnits -> XML
(H265GopSizeUnits -> XML) -> ToXML H265GopSizeUnits
forall a. (a -> XML) -> ToXML a
toXML :: H265GopSizeUnits -> XML
$ctoXML :: H265GopSizeUnits -> XML
Core.ToXML
    )

pattern H265GopSizeUnits_FRAMES :: H265GopSizeUnits
pattern $bH265GopSizeUnits_FRAMES :: H265GopSizeUnits
$mH265GopSizeUnits_FRAMES :: forall r. H265GopSizeUnits -> (Void# -> r) -> (Void# -> r) -> r
H265GopSizeUnits_FRAMES = H265GopSizeUnits' "FRAMES"

pattern H265GopSizeUnits_SECONDS :: H265GopSizeUnits
pattern $bH265GopSizeUnits_SECONDS :: H265GopSizeUnits
$mH265GopSizeUnits_SECONDS :: forall r. H265GopSizeUnits -> (Void# -> r) -> (Void# -> r) -> r
H265GopSizeUnits_SECONDS = H265GopSizeUnits' "SECONDS"

{-# COMPLETE
  H265GopSizeUnits_FRAMES,
  H265GopSizeUnits_SECONDS,
  H265GopSizeUnits'
  #-}