{-# 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.DMS.Types.RefreshSchemasStatusTypeValue
-- 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.DMS.Types.RefreshSchemasStatusTypeValue
  ( RefreshSchemasStatusTypeValue
      ( ..,
        RefreshSchemasStatusTypeValue_Failed,
        RefreshSchemasStatusTypeValue_Refreshing,
        RefreshSchemasStatusTypeValue_Successful
      ),
  )
where

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

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

pattern RefreshSchemasStatusTypeValue_Failed :: RefreshSchemasStatusTypeValue
pattern $bRefreshSchemasStatusTypeValue_Failed :: RefreshSchemasStatusTypeValue
$mRefreshSchemasStatusTypeValue_Failed :: forall {r}.
RefreshSchemasStatusTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
RefreshSchemasStatusTypeValue_Failed = RefreshSchemasStatusTypeValue' "failed"

pattern RefreshSchemasStatusTypeValue_Refreshing :: RefreshSchemasStatusTypeValue
pattern $bRefreshSchemasStatusTypeValue_Refreshing :: RefreshSchemasStatusTypeValue
$mRefreshSchemasStatusTypeValue_Refreshing :: forall {r}.
RefreshSchemasStatusTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
RefreshSchemasStatusTypeValue_Refreshing = RefreshSchemasStatusTypeValue' "refreshing"

pattern RefreshSchemasStatusTypeValue_Successful :: RefreshSchemasStatusTypeValue
pattern $bRefreshSchemasStatusTypeValue_Successful :: RefreshSchemasStatusTypeValue
$mRefreshSchemasStatusTypeValue_Successful :: forall {r}.
RefreshSchemasStatusTypeValue -> ((# #) -> r) -> ((# #) -> r) -> r
RefreshSchemasStatusTypeValue_Successful = RefreshSchemasStatusTypeValue' "successful"

{-# COMPLETE
  RefreshSchemasStatusTypeValue_Failed,
  RefreshSchemasStatusTypeValue_Refreshing,
  RefreshSchemasStatusTypeValue_Successful,
  RefreshSchemasStatusTypeValue'
  #-}