{-# 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.CodeArtifact.Types.ExternalConnectionStatus
-- 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.CodeArtifact.Types.ExternalConnectionStatus
  ( ExternalConnectionStatus
      ( ..,
        ExternalConnectionStatus_Available
      ),
  )
where

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

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

pattern ExternalConnectionStatus_Available :: ExternalConnectionStatus
pattern $bExternalConnectionStatus_Available :: ExternalConnectionStatus
$mExternalConnectionStatus_Available :: forall r.
ExternalConnectionStatus -> (Void# -> r) -> (Void# -> r) -> r
ExternalConnectionStatus_Available = ExternalConnectionStatus' "Available"

{-# COMPLETE
  ExternalConnectionStatus_Available,
  ExternalConnectionStatus'
  #-}