{-# 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.AfdSignaling
-- 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.MediaLive.Types.AfdSignaling
  ( AfdSignaling
      ( ..,
        AfdSignaling_AUTO,
        AfdSignaling_FIXED,
        AfdSignaling_NONE
      ),
  )
where

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

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

pattern AfdSignaling_AUTO :: AfdSignaling
pattern $bAfdSignaling_AUTO :: AfdSignaling
$mAfdSignaling_AUTO :: forall r. AfdSignaling -> (Void# -> r) -> (Void# -> r) -> r
AfdSignaling_AUTO = AfdSignaling' "AUTO"

pattern AfdSignaling_FIXED :: AfdSignaling
pattern $bAfdSignaling_FIXED :: AfdSignaling
$mAfdSignaling_FIXED :: forall r. AfdSignaling -> (Void# -> r) -> (Void# -> r) -> r
AfdSignaling_FIXED = AfdSignaling' "FIXED"

pattern AfdSignaling_NONE :: AfdSignaling
pattern $bAfdSignaling_NONE :: AfdSignaling
$mAfdSignaling_NONE :: forall r. AfdSignaling -> (Void# -> r) -> (Void# -> r) -> r
AfdSignaling_NONE = AfdSignaling' "NONE"

{-# COMPLETE
  AfdSignaling_AUTO,
  AfdSignaling_FIXED,
  AfdSignaling_NONE,
  AfdSignaling'
  #-}