{-# 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.FirewallDomainImportOperation
-- 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.FirewallDomainImportOperation
  ( FirewallDomainImportOperation
      ( ..,
        FirewallDomainImportOperation_REPLACE
      ),
  )
where

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

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

pattern FirewallDomainImportOperation_REPLACE :: FirewallDomainImportOperation
pattern $bFirewallDomainImportOperation_REPLACE :: FirewallDomainImportOperation
$mFirewallDomainImportOperation_REPLACE :: forall r.
FirewallDomainImportOperation -> (Void# -> r) -> (Void# -> r) -> r
FirewallDomainImportOperation_REPLACE = FirewallDomainImportOperation' "REPLACE"

{-# COMPLETE
  FirewallDomainImportOperation_REPLACE,
  FirewallDomainImportOperation'
  #-}