{-# 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.FinSpaceData.Types.ChangesetStatus
-- 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.FinSpaceData.Types.ChangesetStatus
  ( ChangesetStatus
      ( ..,
        ChangesetStatus_FAILED,
        ChangesetStatus_PENDING,
        ChangesetStatus_RUNNING,
        ChangesetStatus_STOP_REQUESTED,
        ChangesetStatus_SUCCESS
      ),
  )
where

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

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

pattern ChangesetStatus_FAILED :: ChangesetStatus
pattern $bChangesetStatus_FAILED :: ChangesetStatus
$mChangesetStatus_FAILED :: forall r. ChangesetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangesetStatus_FAILED = ChangesetStatus' "FAILED"

pattern ChangesetStatus_PENDING :: ChangesetStatus
pattern $bChangesetStatus_PENDING :: ChangesetStatus
$mChangesetStatus_PENDING :: forall r. ChangesetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangesetStatus_PENDING = ChangesetStatus' "PENDING"

pattern ChangesetStatus_RUNNING :: ChangesetStatus
pattern $bChangesetStatus_RUNNING :: ChangesetStatus
$mChangesetStatus_RUNNING :: forall r. ChangesetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangesetStatus_RUNNING = ChangesetStatus' "RUNNING"

pattern ChangesetStatus_STOP_REQUESTED :: ChangesetStatus
pattern $bChangesetStatus_STOP_REQUESTED :: ChangesetStatus
$mChangesetStatus_STOP_REQUESTED :: forall r. ChangesetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangesetStatus_STOP_REQUESTED = ChangesetStatus' "STOP_REQUESTED"

pattern ChangesetStatus_SUCCESS :: ChangesetStatus
pattern $bChangesetStatus_SUCCESS :: ChangesetStatus
$mChangesetStatus_SUCCESS :: forall r. ChangesetStatus -> (Void# -> r) -> (Void# -> r) -> r
ChangesetStatus_SUCCESS = ChangesetStatus' "SUCCESS"

{-# COMPLETE
  ChangesetStatus_FAILED,
  ChangesetStatus_PENDING,
  ChangesetStatus_RUNNING,
  ChangesetStatus_STOP_REQUESTED,
  ChangesetStatus_SUCCESS,
  ChangesetStatus'
  #-}