{-# 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.Route53Domains.Types.OperationType
-- 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.Route53Domains.Types.OperationType
  ( OperationType
      ( ..,
        OperationType_ADD_DNSSEC,
        OperationType_CHANGE_DOMAIN_OWNER,
        OperationType_CHANGE_PRIVACY_PROTECTION,
        OperationType_DELETE_DOMAIN,
        OperationType_DISABLE_AUTORENEW,
        OperationType_DOMAIN_LOCK,
        OperationType_ENABLE_AUTORENEW,
        OperationType_EXPIRE_DOMAIN,
        OperationType_INTERNAL_TRANSFER_IN_DOMAIN,
        OperationType_INTERNAL_TRANSFER_OUT_DOMAIN,
        OperationType_PUSH_DOMAIN,
        OperationType_REGISTER_DOMAIN,
        OperationType_REMOVE_DNSSEC,
        OperationType_RENEW_DOMAIN,
        OperationType_TRANSFER_IN_DOMAIN,
        OperationType_TRANSFER_OUT_DOMAIN,
        OperationType_UPDATE_DOMAIN_CONTACT,
        OperationType_UPDATE_NAMESERVER
      ),
  )
where

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

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

pattern OperationType_ADD_DNSSEC :: OperationType
pattern $bOperationType_ADD_DNSSEC :: OperationType
$mOperationType_ADD_DNSSEC :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_ADD_DNSSEC = OperationType' "ADD_DNSSEC"

pattern OperationType_CHANGE_DOMAIN_OWNER :: OperationType
pattern $bOperationType_CHANGE_DOMAIN_OWNER :: OperationType
$mOperationType_CHANGE_DOMAIN_OWNER :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_CHANGE_DOMAIN_OWNER = OperationType' "CHANGE_DOMAIN_OWNER"

pattern OperationType_CHANGE_PRIVACY_PROTECTION :: OperationType
pattern $bOperationType_CHANGE_PRIVACY_PROTECTION :: OperationType
$mOperationType_CHANGE_PRIVACY_PROTECTION :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_CHANGE_PRIVACY_PROTECTION = OperationType' "CHANGE_PRIVACY_PROTECTION"

pattern OperationType_DELETE_DOMAIN :: OperationType
pattern $bOperationType_DELETE_DOMAIN :: OperationType
$mOperationType_DELETE_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_DELETE_DOMAIN = OperationType' "DELETE_DOMAIN"

pattern OperationType_DISABLE_AUTORENEW :: OperationType
pattern $bOperationType_DISABLE_AUTORENEW :: OperationType
$mOperationType_DISABLE_AUTORENEW :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_DISABLE_AUTORENEW = OperationType' "DISABLE_AUTORENEW"

pattern OperationType_DOMAIN_LOCK :: OperationType
pattern $bOperationType_DOMAIN_LOCK :: OperationType
$mOperationType_DOMAIN_LOCK :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_DOMAIN_LOCK = OperationType' "DOMAIN_LOCK"

pattern OperationType_ENABLE_AUTORENEW :: OperationType
pattern $bOperationType_ENABLE_AUTORENEW :: OperationType
$mOperationType_ENABLE_AUTORENEW :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_ENABLE_AUTORENEW = OperationType' "ENABLE_AUTORENEW"

pattern OperationType_EXPIRE_DOMAIN :: OperationType
pattern $bOperationType_EXPIRE_DOMAIN :: OperationType
$mOperationType_EXPIRE_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_EXPIRE_DOMAIN = OperationType' "EXPIRE_DOMAIN"

pattern OperationType_INTERNAL_TRANSFER_IN_DOMAIN :: OperationType
pattern $bOperationType_INTERNAL_TRANSFER_IN_DOMAIN :: OperationType
$mOperationType_INTERNAL_TRANSFER_IN_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_INTERNAL_TRANSFER_IN_DOMAIN = OperationType' "INTERNAL_TRANSFER_IN_DOMAIN"

pattern OperationType_INTERNAL_TRANSFER_OUT_DOMAIN :: OperationType
pattern $bOperationType_INTERNAL_TRANSFER_OUT_DOMAIN :: OperationType
$mOperationType_INTERNAL_TRANSFER_OUT_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_INTERNAL_TRANSFER_OUT_DOMAIN = OperationType' "INTERNAL_TRANSFER_OUT_DOMAIN"

pattern OperationType_PUSH_DOMAIN :: OperationType
pattern $bOperationType_PUSH_DOMAIN :: OperationType
$mOperationType_PUSH_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_PUSH_DOMAIN = OperationType' "PUSH_DOMAIN"

pattern OperationType_REGISTER_DOMAIN :: OperationType
pattern $bOperationType_REGISTER_DOMAIN :: OperationType
$mOperationType_REGISTER_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_REGISTER_DOMAIN = OperationType' "REGISTER_DOMAIN"

pattern OperationType_REMOVE_DNSSEC :: OperationType
pattern $bOperationType_REMOVE_DNSSEC :: OperationType
$mOperationType_REMOVE_DNSSEC :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_REMOVE_DNSSEC = OperationType' "REMOVE_DNSSEC"

pattern OperationType_RENEW_DOMAIN :: OperationType
pattern $bOperationType_RENEW_DOMAIN :: OperationType
$mOperationType_RENEW_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_RENEW_DOMAIN = OperationType' "RENEW_DOMAIN"

pattern OperationType_TRANSFER_IN_DOMAIN :: OperationType
pattern $bOperationType_TRANSFER_IN_DOMAIN :: OperationType
$mOperationType_TRANSFER_IN_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_TRANSFER_IN_DOMAIN = OperationType' "TRANSFER_IN_DOMAIN"

pattern OperationType_TRANSFER_OUT_DOMAIN :: OperationType
pattern $bOperationType_TRANSFER_OUT_DOMAIN :: OperationType
$mOperationType_TRANSFER_OUT_DOMAIN :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_TRANSFER_OUT_DOMAIN = OperationType' "TRANSFER_OUT_DOMAIN"

pattern OperationType_UPDATE_DOMAIN_CONTACT :: OperationType
pattern $bOperationType_UPDATE_DOMAIN_CONTACT :: OperationType
$mOperationType_UPDATE_DOMAIN_CONTACT :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_UPDATE_DOMAIN_CONTACT = OperationType' "UPDATE_DOMAIN_CONTACT"

pattern OperationType_UPDATE_NAMESERVER :: OperationType
pattern $bOperationType_UPDATE_NAMESERVER :: OperationType
$mOperationType_UPDATE_NAMESERVER :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_UPDATE_NAMESERVER = OperationType' "UPDATE_NAMESERVER"

{-# COMPLETE
  OperationType_ADD_DNSSEC,
  OperationType_CHANGE_DOMAIN_OWNER,
  OperationType_CHANGE_PRIVACY_PROTECTION,
  OperationType_DELETE_DOMAIN,
  OperationType_DISABLE_AUTORENEW,
  OperationType_DOMAIN_LOCK,
  OperationType_ENABLE_AUTORENEW,
  OperationType_EXPIRE_DOMAIN,
  OperationType_INTERNAL_TRANSFER_IN_DOMAIN,
  OperationType_INTERNAL_TRANSFER_OUT_DOMAIN,
  OperationType_PUSH_DOMAIN,
  OperationType_REGISTER_DOMAIN,
  OperationType_REMOVE_DNSSEC,
  OperationType_RENEW_DOMAIN,
  OperationType_TRANSFER_IN_DOMAIN,
  OperationType_TRANSFER_OUT_DOMAIN,
  OperationType_UPDATE_DOMAIN_CONTACT,
  OperationType_UPDATE_NAMESERVER,
  OperationType'
  #-}