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

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

newtype ReloadOptionValue = ReloadOptionValue'
  { ReloadOptionValue -> Text
fromReloadOptionValue ::
      Core.Text
  }
  deriving stock
    ( Int -> ReloadOptionValue -> ShowS
[ReloadOptionValue] -> ShowS
ReloadOptionValue -> String
(Int -> ReloadOptionValue -> ShowS)
-> (ReloadOptionValue -> String)
-> ([ReloadOptionValue] -> ShowS)
-> Show ReloadOptionValue
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]
(Int -> ReadS ReloadOptionValue)
-> ReadS [ReloadOptionValue]
-> ReadPrec ReloadOptionValue
-> ReadPrec [ReloadOptionValue]
-> Read 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
(ReloadOptionValue -> ReloadOptionValue -> Bool)
-> (ReloadOptionValue -> ReloadOptionValue -> Bool)
-> Eq ReloadOptionValue
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
Eq ReloadOptionValue
-> (ReloadOptionValue -> ReloadOptionValue -> Ordering)
-> (ReloadOptionValue -> ReloadOptionValue -> Bool)
-> (ReloadOptionValue -> ReloadOptionValue -> Bool)
-> (ReloadOptionValue -> ReloadOptionValue -> Bool)
-> (ReloadOptionValue -> ReloadOptionValue -> Bool)
-> (ReloadOptionValue -> ReloadOptionValue -> ReloadOptionValue)
-> (ReloadOptionValue -> ReloadOptionValue -> ReloadOptionValue)
-> Ord 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
$cp1Ord :: Eq ReloadOptionValue
Prelude.Ord,
      (forall x. ReloadOptionValue -> Rep ReloadOptionValue x)
-> (forall x. Rep ReloadOptionValue x -> ReloadOptionValue)
-> Generic ReloadOptionValue
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
    ( Int -> ReloadOptionValue -> Int
ReloadOptionValue -> Int
(Int -> ReloadOptionValue -> Int)
-> (ReloadOptionValue -> Int) -> Hashable ReloadOptionValue
forall 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 -> ()
(ReloadOptionValue -> ()) -> NFData ReloadOptionValue
forall a. (a -> ()) -> NFData a
rnf :: ReloadOptionValue -> ()
$crnf :: ReloadOptionValue -> ()
Prelude.NFData,
      Text -> Either String ReloadOptionValue
(Text -> Either String ReloadOptionValue)
-> FromText ReloadOptionValue
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ReloadOptionValue
$cfromText :: Text -> Either String ReloadOptionValue
Core.FromText,
      ReloadOptionValue -> Text
(ReloadOptionValue -> Text) -> ToText ReloadOptionValue
forall a. (a -> Text) -> ToText a
toText :: ReloadOptionValue -> Text
$ctoText :: ReloadOptionValue -> Text
Core.ToText,
      ReloadOptionValue -> ByteString
(ReloadOptionValue -> ByteString) -> ToByteString ReloadOptionValue
forall a. (a -> ByteString) -> ToByteString a
toBS :: ReloadOptionValue -> ByteString
$ctoBS :: ReloadOptionValue -> ByteString
Core.ToByteString,
      ReloadOptionValue -> ByteStringBuilder
(ReloadOptionValue -> ByteStringBuilder) -> ToLog ReloadOptionValue
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ReloadOptionValue -> ByteStringBuilder
$cbuild :: ReloadOptionValue -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ReloadOptionValue -> [Header]
(HeaderName -> ReloadOptionValue -> [Header])
-> ToHeader ReloadOptionValue
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ReloadOptionValue -> [Header]
$ctoHeader :: HeaderName -> ReloadOptionValue -> [Header]
Core.ToHeader,
      ReloadOptionValue -> QueryString
(ReloadOptionValue -> QueryString) -> ToQuery ReloadOptionValue
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ReloadOptionValue -> QueryString
$ctoQuery :: ReloadOptionValue -> QueryString
Core.ToQuery,
      Value -> Parser [ReloadOptionValue]
Value -> Parser ReloadOptionValue
(Value -> Parser ReloadOptionValue)
-> (Value -> Parser [ReloadOptionValue])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ReloadOptionValue]
FromJSONKeyFunction ReloadOptionValue
FromJSONKeyFunction ReloadOptionValue
-> FromJSONKeyFunction [ReloadOptionValue]
-> FromJSONKey ReloadOptionValue
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ReloadOptionValue]
$cfromJSONKeyList :: FromJSONKeyFunction [ReloadOptionValue]
fromJSONKey :: FromJSONKeyFunction ReloadOptionValue
$cfromJSONKey :: FromJSONKeyFunction ReloadOptionValue
Core.FromJSONKey,
      [ReloadOptionValue] -> Encoding
[ReloadOptionValue] -> Value
ReloadOptionValue -> Encoding
ReloadOptionValue -> Value
(ReloadOptionValue -> Value)
-> (ReloadOptionValue -> Encoding)
-> ([ReloadOptionValue] -> Value)
-> ([ReloadOptionValue] -> Encoding)
-> ToJSON ReloadOptionValue
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
Core.ToJSON,
      ToJSONKeyFunction [ReloadOptionValue]
ToJSONKeyFunction ReloadOptionValue
ToJSONKeyFunction ReloadOptionValue
-> ToJSONKeyFunction [ReloadOptionValue]
-> ToJSONKey ReloadOptionValue
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ReloadOptionValue]
$ctoJSONKeyList :: ToJSONKeyFunction [ReloadOptionValue]
toJSONKey :: ToJSONKeyFunction ReloadOptionValue
$ctoJSONKey :: ToJSONKeyFunction ReloadOptionValue
Core.ToJSONKey,
      [Node] -> Either String ReloadOptionValue
([Node] -> Either String ReloadOptionValue)
-> FromXML ReloadOptionValue
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ReloadOptionValue
$cparseXML :: [Node] -> Either String ReloadOptionValue
Core.FromXML,
      ReloadOptionValue -> XML
(ReloadOptionValue -> XML) -> ToXML ReloadOptionValue
forall a. (a -> XML) -> ToXML a
toXML :: ReloadOptionValue -> XML
$ctoXML :: ReloadOptionValue -> XML
Core.ToXML
    )

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

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

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