{-# 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.FixedAfd
-- 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.FixedAfd
  ( FixedAfd
      ( ..,
        FixedAfd_AFD_0000,
        FixedAfd_AFD_0010,
        FixedAfd_AFD_0011,
        FixedAfd_AFD_0100,
        FixedAfd_AFD_1000,
        FixedAfd_AFD_1001,
        FixedAfd_AFD_1010,
        FixedAfd_AFD_1011,
        FixedAfd_AFD_1101,
        FixedAfd_AFD_1110,
        FixedAfd_AFD_1111
      ),
  )
where

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

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

pattern FixedAfd_AFD_0000 :: FixedAfd
pattern $bFixedAfd_AFD_0000 :: FixedAfd
$mFixedAfd_AFD_0000 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_0000 = FixedAfd' "AFD_0000"

pattern FixedAfd_AFD_0010 :: FixedAfd
pattern $bFixedAfd_AFD_0010 :: FixedAfd
$mFixedAfd_AFD_0010 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_0010 = FixedAfd' "AFD_0010"

pattern FixedAfd_AFD_0011 :: FixedAfd
pattern $bFixedAfd_AFD_0011 :: FixedAfd
$mFixedAfd_AFD_0011 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_0011 = FixedAfd' "AFD_0011"

pattern FixedAfd_AFD_0100 :: FixedAfd
pattern $bFixedAfd_AFD_0100 :: FixedAfd
$mFixedAfd_AFD_0100 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_0100 = FixedAfd' "AFD_0100"

pattern FixedAfd_AFD_1000 :: FixedAfd
pattern $bFixedAfd_AFD_1000 :: FixedAfd
$mFixedAfd_AFD_1000 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_1000 = FixedAfd' "AFD_1000"

pattern FixedAfd_AFD_1001 :: FixedAfd
pattern $bFixedAfd_AFD_1001 :: FixedAfd
$mFixedAfd_AFD_1001 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_1001 = FixedAfd' "AFD_1001"

pattern FixedAfd_AFD_1010 :: FixedAfd
pattern $bFixedAfd_AFD_1010 :: FixedAfd
$mFixedAfd_AFD_1010 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_1010 = FixedAfd' "AFD_1010"

pattern FixedAfd_AFD_1011 :: FixedAfd
pattern $bFixedAfd_AFD_1011 :: FixedAfd
$mFixedAfd_AFD_1011 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_1011 = FixedAfd' "AFD_1011"

pattern FixedAfd_AFD_1101 :: FixedAfd
pattern $bFixedAfd_AFD_1101 :: FixedAfd
$mFixedAfd_AFD_1101 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_1101 = FixedAfd' "AFD_1101"

pattern FixedAfd_AFD_1110 :: FixedAfd
pattern $bFixedAfd_AFD_1110 :: FixedAfd
$mFixedAfd_AFD_1110 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_1110 = FixedAfd' "AFD_1110"

pattern FixedAfd_AFD_1111 :: FixedAfd
pattern $bFixedAfd_AFD_1111 :: FixedAfd
$mFixedAfd_AFD_1111 :: forall r. FixedAfd -> (Void# -> r) -> (Void# -> r) -> r
FixedAfd_AFD_1111 = FixedAfd' "AFD_1111"

{-# COMPLETE
  FixedAfd_AFD_0000,
  FixedAfd_AFD_0010,
  FixedAfd_AFD_0011,
  FixedAfd_AFD_0100,
  FixedAfd_AFD_1000,
  FixedAfd_AFD_1001,
  FixedAfd_AFD_1010,
  FixedAfd_AFD_1011,
  FixedAfd_AFD_1101,
  FixedAfd_AFD_1110,
  FixedAfd_AFD_1111,
  FixedAfd'
  #-}