{-# 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.FirewallDomainListStatus
-- 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.FirewallDomainListStatus
  ( FirewallDomainListStatus
      ( ..,
        FirewallDomainListStatus_COMPLETE,
        FirewallDomainListStatus_COMPLETE_IMPORT_FAILED,
        FirewallDomainListStatus_DELETING,
        FirewallDomainListStatus_IMPORTING,
        FirewallDomainListStatus_UPDATING
      ),
  )
where

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

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

pattern FirewallDomainListStatus_COMPLETE :: FirewallDomainListStatus
pattern $bFirewallDomainListStatus_COMPLETE :: FirewallDomainListStatus
$mFirewallDomainListStatus_COMPLETE :: forall r.
FirewallDomainListStatus -> (Void# -> r) -> (Void# -> r) -> r
FirewallDomainListStatus_COMPLETE = FirewallDomainListStatus' "COMPLETE"

pattern FirewallDomainListStatus_COMPLETE_IMPORT_FAILED :: FirewallDomainListStatus
pattern $bFirewallDomainListStatus_COMPLETE_IMPORT_FAILED :: FirewallDomainListStatus
$mFirewallDomainListStatus_COMPLETE_IMPORT_FAILED :: forall r.
FirewallDomainListStatus -> (Void# -> r) -> (Void# -> r) -> r
FirewallDomainListStatus_COMPLETE_IMPORT_FAILED = FirewallDomainListStatus' "COMPLETE_IMPORT_FAILED"

pattern FirewallDomainListStatus_DELETING :: FirewallDomainListStatus
pattern $bFirewallDomainListStatus_DELETING :: FirewallDomainListStatus
$mFirewallDomainListStatus_DELETING :: forall r.
FirewallDomainListStatus -> (Void# -> r) -> (Void# -> r) -> r
FirewallDomainListStatus_DELETING = FirewallDomainListStatus' "DELETING"

pattern FirewallDomainListStatus_IMPORTING :: FirewallDomainListStatus
pattern $bFirewallDomainListStatus_IMPORTING :: FirewallDomainListStatus
$mFirewallDomainListStatus_IMPORTING :: forall r.
FirewallDomainListStatus -> (Void# -> r) -> (Void# -> r) -> r
FirewallDomainListStatus_IMPORTING = FirewallDomainListStatus' "IMPORTING"

pattern FirewallDomainListStatus_UPDATING :: FirewallDomainListStatus
pattern $bFirewallDomainListStatus_UPDATING :: FirewallDomainListStatus
$mFirewallDomainListStatus_UPDATING :: forall r.
FirewallDomainListStatus -> (Void# -> r) -> (Void# -> r) -> r
FirewallDomainListStatus_UPDATING = FirewallDomainListStatus' "UPDATING"

{-# COMPLETE
  FirewallDomainListStatus_COMPLETE,
  FirewallDomainListStatus_COMPLETE_IMPORT_FAILED,
  FirewallDomainListStatus_DELETING,
  FirewallDomainListStatus_IMPORTING,
  FirewallDomainListStatus_UPDATING,
  FirewallDomainListStatus'
  #-}