{-# 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.AppFlow.Types.ConnectionMode
-- 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.AppFlow.Types.ConnectionMode
  ( ConnectionMode
      ( ..,
        ConnectionMode_Private,
        ConnectionMode_Public
      ),
  )
where

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

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

pattern ConnectionMode_Private :: ConnectionMode
pattern $bConnectionMode_Private :: ConnectionMode
$mConnectionMode_Private :: forall r. ConnectionMode -> (Void# -> r) -> (Void# -> r) -> r
ConnectionMode_Private = ConnectionMode' "Private"

pattern ConnectionMode_Public :: ConnectionMode
pattern $bConnectionMode_Public :: ConnectionMode
$mConnectionMode_Public :: forall r. ConnectionMode -> (Void# -> r) -> (Void# -> r) -> r
ConnectionMode_Public = ConnectionMode' "Public"

{-# COMPLETE
  ConnectionMode_Private,
  ConnectionMode_Public,
  ConnectionMode'
  #-}