{-# 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.EC2.Types.BgpStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.EC2.Types.BgpStatus
  ( BgpStatus
      ( ..,
        BgpStatus_Down,
        BgpStatus_Up
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import qualified Amazonka.Prelude as Prelude

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

pattern BgpStatus_Down :: BgpStatus
pattern $bBgpStatus_Down :: BgpStatus
$mBgpStatus_Down :: forall {r}. BgpStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BgpStatus_Down = BgpStatus' "down"

pattern BgpStatus_Up :: BgpStatus
pattern $bBgpStatus_Up :: BgpStatus
$mBgpStatus_Up :: forall {r}. BgpStatus -> ((# #) -> r) -> ((# #) -> r) -> r
BgpStatus_Up = BgpStatus' "up"

{-# COMPLETE
  BgpStatus_Down,
  BgpStatus_Up,
  BgpStatus'
  #-}