{-# 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.MediaLive.Types.VideoDescriptionRespondToAfd
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.VideoDescriptionRespondToAfd
  ( VideoDescriptionRespondToAfd
      ( ..,
        VideoDescriptionRespondToAfd_NONE,
        VideoDescriptionRespondToAfd_PASSTHROUGH,
        VideoDescriptionRespondToAfd_RESPOND
      ),
  )
where

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

-- | Video Description Respond To Afd
newtype VideoDescriptionRespondToAfd = VideoDescriptionRespondToAfd'
  { VideoDescriptionRespondToAfd -> Text
fromVideoDescriptionRespondToAfd ::
      Data.Text
  }
  deriving stock
    ( Int -> VideoDescriptionRespondToAfd -> ShowS
[VideoDescriptionRespondToAfd] -> ShowS
VideoDescriptionRespondToAfd -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VideoDescriptionRespondToAfd] -> ShowS
$cshowList :: [VideoDescriptionRespondToAfd] -> ShowS
show :: VideoDescriptionRespondToAfd -> String
$cshow :: VideoDescriptionRespondToAfd -> String
showsPrec :: Int -> VideoDescriptionRespondToAfd -> ShowS
$cshowsPrec :: Int -> VideoDescriptionRespondToAfd -> ShowS
Prelude.Show,
      ReadPrec [VideoDescriptionRespondToAfd]
ReadPrec VideoDescriptionRespondToAfd
Int -> ReadS VideoDescriptionRespondToAfd
ReadS [VideoDescriptionRespondToAfd]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VideoDescriptionRespondToAfd]
$creadListPrec :: ReadPrec [VideoDescriptionRespondToAfd]
readPrec :: ReadPrec VideoDescriptionRespondToAfd
$creadPrec :: ReadPrec VideoDescriptionRespondToAfd
readList :: ReadS [VideoDescriptionRespondToAfd]
$creadList :: ReadS [VideoDescriptionRespondToAfd]
readsPrec :: Int -> ReadS VideoDescriptionRespondToAfd
$creadsPrec :: Int -> ReadS VideoDescriptionRespondToAfd
Prelude.Read,
      VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
$c/= :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
== :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
$c== :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
Prelude.Eq,
      Eq VideoDescriptionRespondToAfd
VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Ordering
VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> VideoDescriptionRespondToAfd
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 :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> VideoDescriptionRespondToAfd
$cmin :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> VideoDescriptionRespondToAfd
max :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> VideoDescriptionRespondToAfd
$cmax :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> VideoDescriptionRespondToAfd
>= :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
$c>= :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
> :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
$c> :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
<= :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
$c<= :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
< :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
$c< :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Bool
compare :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Ordering
$ccompare :: VideoDescriptionRespondToAfd
-> VideoDescriptionRespondToAfd -> Ordering
Prelude.Ord,
      forall x.
Rep VideoDescriptionRespondToAfd x -> VideoDescriptionRespondToAfd
forall x.
VideoDescriptionRespondToAfd -> Rep VideoDescriptionRespondToAfd x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VideoDescriptionRespondToAfd x -> VideoDescriptionRespondToAfd
$cfrom :: forall x.
VideoDescriptionRespondToAfd -> Rep VideoDescriptionRespondToAfd x
Prelude.Generic
    )
  deriving newtype
    ( Eq VideoDescriptionRespondToAfd
Int -> VideoDescriptionRespondToAfd -> Int
VideoDescriptionRespondToAfd -> Int
forall a. Eq a -> (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: VideoDescriptionRespondToAfd -> Int
$chash :: VideoDescriptionRespondToAfd -> Int
hashWithSalt :: Int -> VideoDescriptionRespondToAfd -> Int
$chashWithSalt :: Int -> VideoDescriptionRespondToAfd -> Int
Prelude.Hashable,
      VideoDescriptionRespondToAfd -> ()
forall a. (a -> ()) -> NFData a
rnf :: VideoDescriptionRespondToAfd -> ()
$crnf :: VideoDescriptionRespondToAfd -> ()
Prelude.NFData,
      Text -> Either String VideoDescriptionRespondToAfd
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String VideoDescriptionRespondToAfd
$cfromText :: Text -> Either String VideoDescriptionRespondToAfd
Data.FromText,
      VideoDescriptionRespondToAfd -> Text
forall a. (a -> Text) -> ToText a
toText :: VideoDescriptionRespondToAfd -> Text
$ctoText :: VideoDescriptionRespondToAfd -> Text
Data.ToText,
      VideoDescriptionRespondToAfd -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: VideoDescriptionRespondToAfd -> ByteString
$ctoBS :: VideoDescriptionRespondToAfd -> ByteString
Data.ToByteString,
      VideoDescriptionRespondToAfd -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: VideoDescriptionRespondToAfd -> ByteStringBuilder
$cbuild :: VideoDescriptionRespondToAfd -> ByteStringBuilder
Data.ToLog,
      HeaderName -> VideoDescriptionRespondToAfd -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> VideoDescriptionRespondToAfd -> [Header]
$ctoHeader :: HeaderName -> VideoDescriptionRespondToAfd -> [Header]
Data.ToHeader,
      VideoDescriptionRespondToAfd -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: VideoDescriptionRespondToAfd -> QueryString
$ctoQuery :: VideoDescriptionRespondToAfd -> QueryString
Data.ToQuery,
      Value -> Parser [VideoDescriptionRespondToAfd]
Value -> Parser VideoDescriptionRespondToAfd
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [VideoDescriptionRespondToAfd]
$cparseJSONList :: Value -> Parser [VideoDescriptionRespondToAfd]
parseJSON :: Value -> Parser VideoDescriptionRespondToAfd
$cparseJSON :: Value -> Parser VideoDescriptionRespondToAfd
Data.FromJSON,
      FromJSONKeyFunction [VideoDescriptionRespondToAfd]
FromJSONKeyFunction VideoDescriptionRespondToAfd
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [VideoDescriptionRespondToAfd]
$cfromJSONKeyList :: FromJSONKeyFunction [VideoDescriptionRespondToAfd]
fromJSONKey :: FromJSONKeyFunction VideoDescriptionRespondToAfd
$cfromJSONKey :: FromJSONKeyFunction VideoDescriptionRespondToAfd
Data.FromJSONKey,
      [VideoDescriptionRespondToAfd] -> Encoding
[VideoDescriptionRespondToAfd] -> Value
VideoDescriptionRespondToAfd -> Encoding
VideoDescriptionRespondToAfd -> Value
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [VideoDescriptionRespondToAfd] -> Encoding
$ctoEncodingList :: [VideoDescriptionRespondToAfd] -> Encoding
toJSONList :: [VideoDescriptionRespondToAfd] -> Value
$ctoJSONList :: [VideoDescriptionRespondToAfd] -> Value
toEncoding :: VideoDescriptionRespondToAfd -> Encoding
$ctoEncoding :: VideoDescriptionRespondToAfd -> Encoding
toJSON :: VideoDescriptionRespondToAfd -> Value
$ctoJSON :: VideoDescriptionRespondToAfd -> Value
Data.ToJSON,
      ToJSONKeyFunction [VideoDescriptionRespondToAfd]
ToJSONKeyFunction VideoDescriptionRespondToAfd
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [VideoDescriptionRespondToAfd]
$ctoJSONKeyList :: ToJSONKeyFunction [VideoDescriptionRespondToAfd]
toJSONKey :: ToJSONKeyFunction VideoDescriptionRespondToAfd
$ctoJSONKey :: ToJSONKeyFunction VideoDescriptionRespondToAfd
Data.ToJSONKey,
      [Node] -> Either String VideoDescriptionRespondToAfd
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String VideoDescriptionRespondToAfd
$cparseXML :: [Node] -> Either String VideoDescriptionRespondToAfd
Data.FromXML,
      VideoDescriptionRespondToAfd -> XML
forall a. (a -> XML) -> ToXML a
toXML :: VideoDescriptionRespondToAfd -> XML
$ctoXML :: VideoDescriptionRespondToAfd -> XML
Data.ToXML
    )

pattern VideoDescriptionRespondToAfd_NONE :: VideoDescriptionRespondToAfd
pattern $bVideoDescriptionRespondToAfd_NONE :: VideoDescriptionRespondToAfd
$mVideoDescriptionRespondToAfd_NONE :: forall {r}.
VideoDescriptionRespondToAfd -> ((# #) -> r) -> ((# #) -> r) -> r
VideoDescriptionRespondToAfd_NONE = VideoDescriptionRespondToAfd' "NONE"

pattern VideoDescriptionRespondToAfd_PASSTHROUGH :: VideoDescriptionRespondToAfd
pattern $bVideoDescriptionRespondToAfd_PASSTHROUGH :: VideoDescriptionRespondToAfd
$mVideoDescriptionRespondToAfd_PASSTHROUGH :: forall {r}.
VideoDescriptionRespondToAfd -> ((# #) -> r) -> ((# #) -> r) -> r
VideoDescriptionRespondToAfd_PASSTHROUGH = VideoDescriptionRespondToAfd' "PASSTHROUGH"

pattern VideoDescriptionRespondToAfd_RESPOND :: VideoDescriptionRespondToAfd
pattern $bVideoDescriptionRespondToAfd_RESPOND :: VideoDescriptionRespondToAfd
$mVideoDescriptionRespondToAfd_RESPOND :: forall {r}.
VideoDescriptionRespondToAfd -> ((# #) -> r) -> ((# #) -> r) -> r
VideoDescriptionRespondToAfd_RESPOND = VideoDescriptionRespondToAfd' "RESPOND"

{-# COMPLETE
  VideoDescriptionRespondToAfd_NONE,
  VideoDescriptionRespondToAfd_PASSTHROUGH,
  VideoDescriptionRespondToAfd_RESPOND,
  VideoDescriptionRespondToAfd'
  #-}