{-# 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.ResolverRuleStatus
-- 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.ResolverRuleStatus
  ( ResolverRuleStatus
      ( ..,
        ResolverRuleStatus_COMPLETE,
        ResolverRuleStatus_DELETING,
        ResolverRuleStatus_FAILED,
        ResolverRuleStatus_UPDATING
      ),
  )
where

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

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

pattern ResolverRuleStatus_COMPLETE :: ResolverRuleStatus
pattern $bResolverRuleStatus_COMPLETE :: ResolverRuleStatus
$mResolverRuleStatus_COMPLETE :: forall r. ResolverRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleStatus_COMPLETE = ResolverRuleStatus' "COMPLETE"

pattern ResolverRuleStatus_DELETING :: ResolverRuleStatus
pattern $bResolverRuleStatus_DELETING :: ResolverRuleStatus
$mResolverRuleStatus_DELETING :: forall r. ResolverRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleStatus_DELETING = ResolverRuleStatus' "DELETING"

pattern ResolverRuleStatus_FAILED :: ResolverRuleStatus
pattern $bResolverRuleStatus_FAILED :: ResolverRuleStatus
$mResolverRuleStatus_FAILED :: forall r. ResolverRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleStatus_FAILED = ResolverRuleStatus' "FAILED"

pattern ResolverRuleStatus_UPDATING :: ResolverRuleStatus
pattern $bResolverRuleStatus_UPDATING :: ResolverRuleStatus
$mResolverRuleStatus_UPDATING :: forall r. ResolverRuleStatus -> (Void# -> r) -> (Void# -> r) -> r
ResolverRuleStatus_UPDATING = ResolverRuleStatus' "UPDATING"

{-# COMPLETE
  ResolverRuleStatus_COMPLETE,
  ResolverRuleStatus_DELETING,
  ResolverRuleStatus_FAILED,
  ResolverRuleStatus_UPDATING,
  ResolverRuleStatus'
  #-}