{-# 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.RDS.Types.DBProxyEndpointStatus
-- 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.RDS.Types.DBProxyEndpointStatus
  ( DBProxyEndpointStatus
      ( ..,
        DBProxyEndpointStatus_Available,
        DBProxyEndpointStatus_Creating,
        DBProxyEndpointStatus_Deleting,
        DBProxyEndpointStatus_Incompatible_network,
        DBProxyEndpointStatus_Insufficient_resource_limits,
        DBProxyEndpointStatus_Modifying
      ),
  )
where

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

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

pattern DBProxyEndpointStatus_Available :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Available :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Available :: forall r.
DBProxyEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyEndpointStatus_Available = DBProxyEndpointStatus' "available"

pattern DBProxyEndpointStatus_Creating :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Creating :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Creating :: forall r.
DBProxyEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyEndpointStatus_Creating = DBProxyEndpointStatus' "creating"

pattern DBProxyEndpointStatus_Deleting :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Deleting :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Deleting :: forall r.
DBProxyEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyEndpointStatus_Deleting = DBProxyEndpointStatus' "deleting"

pattern DBProxyEndpointStatus_Incompatible_network :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Incompatible_network :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Incompatible_network :: forall r.
DBProxyEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyEndpointStatus_Incompatible_network = DBProxyEndpointStatus' "incompatible-network"

pattern DBProxyEndpointStatus_Insufficient_resource_limits :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Insufficient_resource_limits :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Insufficient_resource_limits :: forall r.
DBProxyEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyEndpointStatus_Insufficient_resource_limits = DBProxyEndpointStatus' "insufficient-resource-limits"

pattern DBProxyEndpointStatus_Modifying :: DBProxyEndpointStatus
pattern $bDBProxyEndpointStatus_Modifying :: DBProxyEndpointStatus
$mDBProxyEndpointStatus_Modifying :: forall r.
DBProxyEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
DBProxyEndpointStatus_Modifying = DBProxyEndpointStatus' "modifying"

{-# COMPLETE
  DBProxyEndpointStatus_Available,
  DBProxyEndpointStatus_Creating,
  DBProxyEndpointStatus_Deleting,
  DBProxyEndpointStatus_Incompatible_network,
  DBProxyEndpointStatus_Insufficient_resource_limits,
  DBProxyEndpointStatus_Modifying,
  DBProxyEndpointStatus'
  #-}