{-# 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.Transfer.Types.MdnResponse
-- 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.Transfer.Types.MdnResponse
  ( MdnResponse
      ( ..,
        MdnResponse_NONE,
        MdnResponse_SYNC
      ),
  )
where

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

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

pattern MdnResponse_NONE :: MdnResponse
pattern $bMdnResponse_NONE :: MdnResponse
$mMdnResponse_NONE :: forall {r}. MdnResponse -> ((# #) -> r) -> ((# #) -> r) -> r
MdnResponse_NONE = MdnResponse' "NONE"

pattern MdnResponse_SYNC :: MdnResponse
pattern $bMdnResponse_SYNC :: MdnResponse
$mMdnResponse_SYNC :: forall {r}. MdnResponse -> ((# #) -> r) -> ((# #) -> r) -> r
MdnResponse_SYNC = MdnResponse' "SYNC"

{-# COMPLETE
  MdnResponse_NONE,
  MdnResponse_SYNC,
  MdnResponse'
  #-}