{-# 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.Route53AutoNaming.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.Route53AutoNaming.Types.OperationType
  ( OperationType
      ( ..,
        OperationType_CREATE_NAMESPACE,
        OperationType_DELETE_NAMESPACE,
        OperationType_DEREGISTER_INSTANCE,
        OperationType_REGISTER_INSTANCE,
        OperationType_UPDATE_NAMESPACE,
        OperationType_UPDATE_SERVICE
      ),
  )
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_CREATE_NAMESPACE :: OperationType
pattern $bOperationType_CREATE_NAMESPACE :: OperationType
$mOperationType_CREATE_NAMESPACE :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_CREATE_NAMESPACE = OperationType' "CREATE_NAMESPACE"

pattern OperationType_DELETE_NAMESPACE :: OperationType
pattern $bOperationType_DELETE_NAMESPACE :: OperationType
$mOperationType_DELETE_NAMESPACE :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_DELETE_NAMESPACE = OperationType' "DELETE_NAMESPACE"

pattern OperationType_DEREGISTER_INSTANCE :: OperationType
pattern $bOperationType_DEREGISTER_INSTANCE :: OperationType
$mOperationType_DEREGISTER_INSTANCE :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_DEREGISTER_INSTANCE = OperationType' "DEREGISTER_INSTANCE"

pattern OperationType_REGISTER_INSTANCE :: OperationType
pattern $bOperationType_REGISTER_INSTANCE :: OperationType
$mOperationType_REGISTER_INSTANCE :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_REGISTER_INSTANCE = OperationType' "REGISTER_INSTANCE"

pattern OperationType_UPDATE_NAMESPACE :: OperationType
pattern $bOperationType_UPDATE_NAMESPACE :: OperationType
$mOperationType_UPDATE_NAMESPACE :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_UPDATE_NAMESPACE = OperationType' "UPDATE_NAMESPACE"

pattern OperationType_UPDATE_SERVICE :: OperationType
pattern $bOperationType_UPDATE_SERVICE :: OperationType
$mOperationType_UPDATE_SERVICE :: forall r. OperationType -> (Void# -> r) -> (Void# -> r) -> r
OperationType_UPDATE_SERVICE = OperationType' "UPDATE_SERVICE"

{-# COMPLETE
  OperationType_CREATE_NAMESPACE,
  OperationType_DELETE_NAMESPACE,
  OperationType_DEREGISTER_INSTANCE,
  OperationType_REGISTER_INSTANCE,
  OperationType_UPDATE_NAMESPACE,
  OperationType_UPDATE_SERVICE,
  OperationType'
  #-}