{-# 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.Route53.Types.ChangeStatus
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Route53.Types.ChangeStatus
  ( ChangeStatus
      ( ..,
        ChangeStatus_INSYNC,
        ChangeStatus_PENDING
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53.Internal

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

pattern ChangeStatus_INSYNC :: ChangeStatus
pattern $bChangeStatus_INSYNC :: ChangeStatus
$mChangeStatus_INSYNC :: forall {r}. ChangeStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeStatus_INSYNC = ChangeStatus' "INSYNC"

pattern ChangeStatus_PENDING :: ChangeStatus
pattern $bChangeStatus_PENDING :: ChangeStatus
$mChangeStatus_PENDING :: forall {r}. ChangeStatus -> ((# #) -> r) -> ((# #) -> r) -> r
ChangeStatus_PENDING = ChangeStatus' "PENDING"

{-# COMPLETE
  ChangeStatus_INSYNC,
  ChangeStatus_PENDING,
  ChangeStatus'
  #-}