{-# 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.ReloadOptionValue
-- 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.ReloadOptionValue
  ( ReloadOptionValue
      ( ..,
        ReloadOptionValue_Data_reload,
        ReloadOptionValue_Validate_only
      ),
  )
where

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

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

pattern ReloadOptionValue_Data_reload :: ReloadOptionValue
pattern $bReloadOptionValue_Data_reload :: ReloadOptionValue
$mReloadOptionValue_Data_reload :: forall {r}. ReloadOptionValue -> ((# #) -> r) -> ((# #) -> r) -> r
ReloadOptionValue_Data_reload = ReloadOptionValue' "data-reload"

pattern ReloadOptionValue_Validate_only :: ReloadOptionValue
pattern $bReloadOptionValue_Validate_only :: ReloadOptionValue
$mReloadOptionValue_Validate_only :: forall {r}. ReloadOptionValue -> ((# #) -> r) -> ((# #) -> r) -> r
ReloadOptionValue_Validate_only = ReloadOptionValue' "validate-only"

{-# COMPLETE
  ReloadOptionValue_Data_reload,
  ReloadOptionValue_Validate_only,
  ReloadOptionValue'
  #-}