{-# 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.DirectConnect.Types.HasLogicalRedundancy
-- 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.DirectConnect.Types.HasLogicalRedundancy
  ( HasLogicalRedundancy
      ( ..,
        HasLogicalRedundancy_No,
        HasLogicalRedundancy_Unknown,
        HasLogicalRedundancy_Yes
      ),
  )
where

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

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

pattern HasLogicalRedundancy_No :: HasLogicalRedundancy
pattern $bHasLogicalRedundancy_No :: HasLogicalRedundancy
$mHasLogicalRedundancy_No :: forall r. HasLogicalRedundancy -> (Void# -> r) -> (Void# -> r) -> r
HasLogicalRedundancy_No = HasLogicalRedundancy' "no"

pattern HasLogicalRedundancy_Unknown :: HasLogicalRedundancy
pattern $bHasLogicalRedundancy_Unknown :: HasLogicalRedundancy
$mHasLogicalRedundancy_Unknown :: forall r. HasLogicalRedundancy -> (Void# -> r) -> (Void# -> r) -> r
HasLogicalRedundancy_Unknown = HasLogicalRedundancy' "unknown"

pattern HasLogicalRedundancy_Yes :: HasLogicalRedundancy
pattern $bHasLogicalRedundancy_Yes :: HasLogicalRedundancy
$mHasLogicalRedundancy_Yes :: forall r. HasLogicalRedundancy -> (Void# -> r) -> (Void# -> r) -> r
HasLogicalRedundancy_Yes = HasLogicalRedundancy' "yes"

{-# COMPLETE
  HasLogicalRedundancy_No,
  HasLogicalRedundancy_Unknown,
  HasLogicalRedundancy_Yes,
  HasLogicalRedundancy'
  #-}