{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MediaConnect.Types.FailoverMode
( FailoverMode
( ..,
FailoverMode_FAILOVER,
FailoverMode_MERGE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FailoverMode = FailoverMode'
{ FailoverMode -> Text
fromFailoverMode ::
Core.Text
}
deriving stock
( Int -> FailoverMode -> ShowS
[FailoverMode] -> ShowS
FailoverMode -> String
(Int -> FailoverMode -> ShowS)
-> (FailoverMode -> String)
-> ([FailoverMode] -> ShowS)
-> Show FailoverMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FailoverMode] -> ShowS
$cshowList :: [FailoverMode] -> ShowS
show :: FailoverMode -> String
$cshow :: FailoverMode -> String
showsPrec :: Int -> FailoverMode -> ShowS
$cshowsPrec :: Int -> FailoverMode -> ShowS
Prelude.Show,
ReadPrec [FailoverMode]
ReadPrec FailoverMode
Int -> ReadS FailoverMode
ReadS [FailoverMode]
(Int -> ReadS FailoverMode)
-> ReadS [FailoverMode]
-> ReadPrec FailoverMode
-> ReadPrec [FailoverMode]
-> Read FailoverMode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FailoverMode]
$creadListPrec :: ReadPrec [FailoverMode]
readPrec :: ReadPrec FailoverMode
$creadPrec :: ReadPrec FailoverMode
readList :: ReadS [FailoverMode]
$creadList :: ReadS [FailoverMode]
readsPrec :: Int -> ReadS FailoverMode
$creadsPrec :: Int -> ReadS FailoverMode
Prelude.Read,
FailoverMode -> FailoverMode -> Bool
(FailoverMode -> FailoverMode -> Bool)
-> (FailoverMode -> FailoverMode -> Bool) -> Eq FailoverMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FailoverMode -> FailoverMode -> Bool
$c/= :: FailoverMode -> FailoverMode -> Bool
== :: FailoverMode -> FailoverMode -> Bool
$c== :: FailoverMode -> FailoverMode -> Bool
Prelude.Eq,
Eq FailoverMode
Eq FailoverMode
-> (FailoverMode -> FailoverMode -> Ordering)
-> (FailoverMode -> FailoverMode -> Bool)
-> (FailoverMode -> FailoverMode -> Bool)
-> (FailoverMode -> FailoverMode -> Bool)
-> (FailoverMode -> FailoverMode -> Bool)
-> (FailoverMode -> FailoverMode -> FailoverMode)
-> (FailoverMode -> FailoverMode -> FailoverMode)
-> Ord FailoverMode
FailoverMode -> FailoverMode -> Bool
FailoverMode -> FailoverMode -> Ordering
FailoverMode -> FailoverMode -> FailoverMode
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 :: FailoverMode -> FailoverMode -> FailoverMode
$cmin :: FailoverMode -> FailoverMode -> FailoverMode
max :: FailoverMode -> FailoverMode -> FailoverMode
$cmax :: FailoverMode -> FailoverMode -> FailoverMode
>= :: FailoverMode -> FailoverMode -> Bool
$c>= :: FailoverMode -> FailoverMode -> Bool
> :: FailoverMode -> FailoverMode -> Bool
$c> :: FailoverMode -> FailoverMode -> Bool
<= :: FailoverMode -> FailoverMode -> Bool
$c<= :: FailoverMode -> FailoverMode -> Bool
< :: FailoverMode -> FailoverMode -> Bool
$c< :: FailoverMode -> FailoverMode -> Bool
compare :: FailoverMode -> FailoverMode -> Ordering
$ccompare :: FailoverMode -> FailoverMode -> Ordering
$cp1Ord :: Eq FailoverMode
Prelude.Ord,
(forall x. FailoverMode -> Rep FailoverMode x)
-> (forall x. Rep FailoverMode x -> FailoverMode)
-> Generic FailoverMode
forall x. Rep FailoverMode x -> FailoverMode
forall x. FailoverMode -> Rep FailoverMode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FailoverMode x -> FailoverMode
$cfrom :: forall x. FailoverMode -> Rep FailoverMode x
Prelude.Generic
)
deriving newtype
( Int -> FailoverMode -> Int
FailoverMode -> Int
(Int -> FailoverMode -> Int)
-> (FailoverMode -> Int) -> Hashable FailoverMode
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FailoverMode -> Int
$chash :: FailoverMode -> Int
hashWithSalt :: Int -> FailoverMode -> Int
$chashWithSalt :: Int -> FailoverMode -> Int
Prelude.Hashable,
FailoverMode -> ()
(FailoverMode -> ()) -> NFData FailoverMode
forall a. (a -> ()) -> NFData a
rnf :: FailoverMode -> ()
$crnf :: FailoverMode -> ()
Prelude.NFData,
Text -> Either String FailoverMode
(Text -> Either String FailoverMode) -> FromText FailoverMode
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FailoverMode
$cfromText :: Text -> Either String FailoverMode
Core.FromText,
FailoverMode -> Text
(FailoverMode -> Text) -> ToText FailoverMode
forall a. (a -> Text) -> ToText a
toText :: FailoverMode -> Text
$ctoText :: FailoverMode -> Text
Core.ToText,
FailoverMode -> ByteString
(FailoverMode -> ByteString) -> ToByteString FailoverMode
forall a. (a -> ByteString) -> ToByteString a
toBS :: FailoverMode -> ByteString
$ctoBS :: FailoverMode -> ByteString
Core.ToByteString,
FailoverMode -> ByteStringBuilder
(FailoverMode -> ByteStringBuilder) -> ToLog FailoverMode
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FailoverMode -> ByteStringBuilder
$cbuild :: FailoverMode -> ByteStringBuilder
Core.ToLog,
HeaderName -> FailoverMode -> [Header]
(HeaderName -> FailoverMode -> [Header]) -> ToHeader FailoverMode
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FailoverMode -> [Header]
$ctoHeader :: HeaderName -> FailoverMode -> [Header]
Core.ToHeader,
FailoverMode -> QueryString
(FailoverMode -> QueryString) -> ToQuery FailoverMode
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FailoverMode -> QueryString
$ctoQuery :: FailoverMode -> QueryString
Core.ToQuery,
Value -> Parser [FailoverMode]
Value -> Parser FailoverMode
(Value -> Parser FailoverMode)
-> (Value -> Parser [FailoverMode]) -> FromJSON FailoverMode
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FailoverMode]
$cparseJSONList :: Value -> Parser [FailoverMode]
parseJSON :: Value -> Parser FailoverMode
$cparseJSON :: Value -> Parser FailoverMode
Core.FromJSON,
FromJSONKeyFunction [FailoverMode]
FromJSONKeyFunction FailoverMode
FromJSONKeyFunction FailoverMode
-> FromJSONKeyFunction [FailoverMode] -> FromJSONKey FailoverMode
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FailoverMode]
$cfromJSONKeyList :: FromJSONKeyFunction [FailoverMode]
fromJSONKey :: FromJSONKeyFunction FailoverMode
$cfromJSONKey :: FromJSONKeyFunction FailoverMode
Core.FromJSONKey,
[FailoverMode] -> Encoding
[FailoverMode] -> Value
FailoverMode -> Encoding
FailoverMode -> Value
(FailoverMode -> Value)
-> (FailoverMode -> Encoding)
-> ([FailoverMode] -> Value)
-> ([FailoverMode] -> Encoding)
-> ToJSON FailoverMode
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FailoverMode] -> Encoding
$ctoEncodingList :: [FailoverMode] -> Encoding
toJSONList :: [FailoverMode] -> Value
$ctoJSONList :: [FailoverMode] -> Value
toEncoding :: FailoverMode -> Encoding
$ctoEncoding :: FailoverMode -> Encoding
toJSON :: FailoverMode -> Value
$ctoJSON :: FailoverMode -> Value
Core.ToJSON,
ToJSONKeyFunction [FailoverMode]
ToJSONKeyFunction FailoverMode
ToJSONKeyFunction FailoverMode
-> ToJSONKeyFunction [FailoverMode] -> ToJSONKey FailoverMode
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FailoverMode]
$ctoJSONKeyList :: ToJSONKeyFunction [FailoverMode]
toJSONKey :: ToJSONKeyFunction FailoverMode
$ctoJSONKey :: ToJSONKeyFunction FailoverMode
Core.ToJSONKey,
[Node] -> Either String FailoverMode
([Node] -> Either String FailoverMode) -> FromXML FailoverMode
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FailoverMode
$cparseXML :: [Node] -> Either String FailoverMode
Core.FromXML,
FailoverMode -> XML
(FailoverMode -> XML) -> ToXML FailoverMode
forall a. (a -> XML) -> ToXML a
toXML :: FailoverMode -> XML
$ctoXML :: FailoverMode -> XML
Core.ToXML
)
pattern FailoverMode_FAILOVER :: FailoverMode
pattern $bFailoverMode_FAILOVER :: FailoverMode
$mFailoverMode_FAILOVER :: forall r. FailoverMode -> (Void# -> r) -> (Void# -> r) -> r
FailoverMode_FAILOVER = FailoverMode' "FAILOVER"
pattern FailoverMode_MERGE :: FailoverMode
pattern $bFailoverMode_MERGE :: FailoverMode
$mFailoverMode_MERGE :: forall r. FailoverMode -> (Void# -> r) -> (Void# -> r) -> r
FailoverMode_MERGE = FailoverMode' "MERGE"
{-# COMPLETE
FailoverMode_FAILOVER,
FailoverMode_MERGE,
FailoverMode'
#-}