{-# 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.IoTSecureTunneling.Types.ConnectionStatus
-- 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.IoTSecureTunneling.Types.ConnectionStatus
  ( ConnectionStatus
      ( ..,
        ConnectionStatus_CONNECTED,
        ConnectionStatus_DISCONNECTED
      ),
  )
where

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

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

pattern ConnectionStatus_CONNECTED :: ConnectionStatus
pattern $bConnectionStatus_CONNECTED :: ConnectionStatus
$mConnectionStatus_CONNECTED :: forall r. ConnectionStatus -> (Void# -> r) -> (Void# -> r) -> r
ConnectionStatus_CONNECTED = ConnectionStatus' "CONNECTED"

pattern ConnectionStatus_DISCONNECTED :: ConnectionStatus
pattern $bConnectionStatus_DISCONNECTED :: ConnectionStatus
$mConnectionStatus_DISCONNECTED :: forall r. ConnectionStatus -> (Void# -> r) -> (Void# -> r) -> r
ConnectionStatus_DISCONNECTED = ConnectionStatus' "DISCONNECTED"

{-# COMPLETE
  ConnectionStatus_CONNECTED,
  ConnectionStatus_DISCONNECTED,
  ConnectionStatus'
  #-}