{-# 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.TargetState
-- 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.RDS.Types.TargetState
  ( TargetState
      ( ..,
        TargetState_AVAILABLE,
        TargetState_REGISTERING,
        TargetState_UNAVAILABLE
      ),
  )
where

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

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

pattern TargetState_AVAILABLE :: TargetState
pattern $bTargetState_AVAILABLE :: TargetState
$mTargetState_AVAILABLE :: forall {r}. TargetState -> ((# #) -> r) -> ((# #) -> r) -> r
TargetState_AVAILABLE = TargetState' "AVAILABLE"

pattern TargetState_REGISTERING :: TargetState
pattern $bTargetState_REGISTERING :: TargetState
$mTargetState_REGISTERING :: forall {r}. TargetState -> ((# #) -> r) -> ((# #) -> r) -> r
TargetState_REGISTERING = TargetState' "REGISTERING"

pattern TargetState_UNAVAILABLE :: TargetState
pattern $bTargetState_UNAVAILABLE :: TargetState
$mTargetState_UNAVAILABLE :: forall {r}. TargetState -> ((# #) -> r) -> ((# #) -> r) -> r
TargetState_UNAVAILABLE = TargetState' "UNAVAILABLE"

{-# COMPLETE
  TargetState_AVAILABLE,
  TargetState_REGISTERING,
  TargetState_UNAVAILABLE,
  TargetState'
  #-}