{-# 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.Route53Resolver.Types.ResolverEndpointStatus
-- 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.Route53Resolver.Types.ResolverEndpointStatus
  ( ResolverEndpointStatus
      ( ..,
        ResolverEndpointStatus_ACTION_NEEDED,
        ResolverEndpointStatus_AUTO_RECOVERING,
        ResolverEndpointStatus_CREATING,
        ResolverEndpointStatus_DELETING,
        ResolverEndpointStatus_OPERATIONAL,
        ResolverEndpointStatus_UPDATING
      ),
  )
where

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

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

pattern ResolverEndpointStatus_ACTION_NEEDED :: ResolverEndpointStatus
pattern $bResolverEndpointStatus_ACTION_NEEDED :: ResolverEndpointStatus
$mResolverEndpointStatus_ACTION_NEEDED :: forall r.
ResolverEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverEndpointStatus_ACTION_NEEDED = ResolverEndpointStatus' "ACTION_NEEDED"

pattern ResolverEndpointStatus_AUTO_RECOVERING :: ResolverEndpointStatus
pattern $bResolverEndpointStatus_AUTO_RECOVERING :: ResolverEndpointStatus
$mResolverEndpointStatus_AUTO_RECOVERING :: forall r.
ResolverEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverEndpointStatus_AUTO_RECOVERING = ResolverEndpointStatus' "AUTO_RECOVERING"

pattern ResolverEndpointStatus_CREATING :: ResolverEndpointStatus
pattern $bResolverEndpointStatus_CREATING :: ResolverEndpointStatus
$mResolverEndpointStatus_CREATING :: forall r.
ResolverEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverEndpointStatus_CREATING = ResolverEndpointStatus' "CREATING"

pattern ResolverEndpointStatus_DELETING :: ResolverEndpointStatus
pattern $bResolverEndpointStatus_DELETING :: ResolverEndpointStatus
$mResolverEndpointStatus_DELETING :: forall r.
ResolverEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverEndpointStatus_DELETING = ResolverEndpointStatus' "DELETING"

pattern ResolverEndpointStatus_OPERATIONAL :: ResolverEndpointStatus
pattern $bResolverEndpointStatus_OPERATIONAL :: ResolverEndpointStatus
$mResolverEndpointStatus_OPERATIONAL :: forall r.
ResolverEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverEndpointStatus_OPERATIONAL = ResolverEndpointStatus' "OPERATIONAL"

pattern ResolverEndpointStatus_UPDATING :: ResolverEndpointStatus
pattern $bResolverEndpointStatus_UPDATING :: ResolverEndpointStatus
$mResolverEndpointStatus_UPDATING :: forall r.
ResolverEndpointStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverEndpointStatus_UPDATING = ResolverEndpointStatus' "UPDATING"

{-# COMPLETE
  ResolverEndpointStatus_ACTION_NEEDED,
  ResolverEndpointStatus_AUTO_RECOVERING,
  ResolverEndpointStatus_CREATING,
  ResolverEndpointStatus_DELETING,
  ResolverEndpointStatus_OPERATIONAL,
  ResolverEndpointStatus_UPDATING,
  ResolverEndpointStatus'
  #-}