{-# 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.DAX.Types.ChangeType
-- 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.DAX.Types.ChangeType
  ( ChangeType
      ( ..,
        ChangeType_IMMEDIATE,
        ChangeType_REQUIRES_REBOOT
      ),
  )
where

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

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

pattern ChangeType_IMMEDIATE :: ChangeType
pattern $bChangeType_IMMEDIATE :: ChangeType
$mChangeType_IMMEDIATE :: forall r. ChangeType -> (Void# -> r) -> (Void# -> r) -> r
ChangeType_IMMEDIATE = ChangeType' "IMMEDIATE"

pattern ChangeType_REQUIRES_REBOOT :: ChangeType
pattern $bChangeType_REQUIRES_REBOOT :: ChangeType
$mChangeType_REQUIRES_REBOOT :: forall r. ChangeType -> (Void# -> r) -> (Void# -> r) -> r
ChangeType_REQUIRES_REBOOT = ChangeType' "REQUIRES_REBOOT"

{-# COMPLETE
  ChangeType_IMMEDIATE,
  ChangeType_REQUIRES_REBOOT,
  ChangeType'
  #-}