{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.Transfer.Types.HomeDirectoryType
( HomeDirectoryType
( ..,
HomeDirectoryType_LOGICAL,
HomeDirectoryType_PATH
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype HomeDirectoryType = HomeDirectoryType'
{ HomeDirectoryType -> Text
fromHomeDirectoryType ::
Core.Text
}
deriving stock
( Int -> HomeDirectoryType -> ShowS
[HomeDirectoryType] -> ShowS
HomeDirectoryType -> String
(Int -> HomeDirectoryType -> ShowS)
-> (HomeDirectoryType -> String)
-> ([HomeDirectoryType] -> ShowS)
-> Show HomeDirectoryType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HomeDirectoryType] -> ShowS
$cshowList :: [HomeDirectoryType] -> ShowS
show :: HomeDirectoryType -> String
$cshow :: HomeDirectoryType -> String
showsPrec :: Int -> HomeDirectoryType -> ShowS
$cshowsPrec :: Int -> HomeDirectoryType -> ShowS
Prelude.Show,
ReadPrec [HomeDirectoryType]
ReadPrec HomeDirectoryType
Int -> ReadS HomeDirectoryType
ReadS [HomeDirectoryType]
(Int -> ReadS HomeDirectoryType)
-> ReadS [HomeDirectoryType]
-> ReadPrec HomeDirectoryType
-> ReadPrec [HomeDirectoryType]
-> Read HomeDirectoryType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HomeDirectoryType]
$creadListPrec :: ReadPrec [HomeDirectoryType]
readPrec :: ReadPrec HomeDirectoryType
$creadPrec :: ReadPrec HomeDirectoryType
readList :: ReadS [HomeDirectoryType]
$creadList :: ReadS [HomeDirectoryType]
readsPrec :: Int -> ReadS HomeDirectoryType
$creadsPrec :: Int -> ReadS HomeDirectoryType
Prelude.Read,
HomeDirectoryType -> HomeDirectoryType -> Bool
(HomeDirectoryType -> HomeDirectoryType -> Bool)
-> (HomeDirectoryType -> HomeDirectoryType -> Bool)
-> Eq HomeDirectoryType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HomeDirectoryType -> HomeDirectoryType -> Bool
$c/= :: HomeDirectoryType -> HomeDirectoryType -> Bool
== :: HomeDirectoryType -> HomeDirectoryType -> Bool
$c== :: HomeDirectoryType -> HomeDirectoryType -> Bool
Prelude.Eq,
Eq HomeDirectoryType
Eq HomeDirectoryType
-> (HomeDirectoryType -> HomeDirectoryType -> Ordering)
-> (HomeDirectoryType -> HomeDirectoryType -> Bool)
-> (HomeDirectoryType -> HomeDirectoryType -> Bool)
-> (HomeDirectoryType -> HomeDirectoryType -> Bool)
-> (HomeDirectoryType -> HomeDirectoryType -> Bool)
-> (HomeDirectoryType -> HomeDirectoryType -> HomeDirectoryType)
-> (HomeDirectoryType -> HomeDirectoryType -> HomeDirectoryType)
-> Ord HomeDirectoryType
HomeDirectoryType -> HomeDirectoryType -> Bool
HomeDirectoryType -> HomeDirectoryType -> Ordering
HomeDirectoryType -> HomeDirectoryType -> HomeDirectoryType
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 :: HomeDirectoryType -> HomeDirectoryType -> HomeDirectoryType
$cmin :: HomeDirectoryType -> HomeDirectoryType -> HomeDirectoryType
max :: HomeDirectoryType -> HomeDirectoryType -> HomeDirectoryType
$cmax :: HomeDirectoryType -> HomeDirectoryType -> HomeDirectoryType
>= :: HomeDirectoryType -> HomeDirectoryType -> Bool
$c>= :: HomeDirectoryType -> HomeDirectoryType -> Bool
> :: HomeDirectoryType -> HomeDirectoryType -> Bool
$c> :: HomeDirectoryType -> HomeDirectoryType -> Bool
<= :: HomeDirectoryType -> HomeDirectoryType -> Bool
$c<= :: HomeDirectoryType -> HomeDirectoryType -> Bool
< :: HomeDirectoryType -> HomeDirectoryType -> Bool
$c< :: HomeDirectoryType -> HomeDirectoryType -> Bool
compare :: HomeDirectoryType -> HomeDirectoryType -> Ordering
$ccompare :: HomeDirectoryType -> HomeDirectoryType -> Ordering
$cp1Ord :: Eq HomeDirectoryType
Prelude.Ord,
(forall x. HomeDirectoryType -> Rep HomeDirectoryType x)
-> (forall x. Rep HomeDirectoryType x -> HomeDirectoryType)
-> Generic HomeDirectoryType
forall x. Rep HomeDirectoryType x -> HomeDirectoryType
forall x. HomeDirectoryType -> Rep HomeDirectoryType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HomeDirectoryType x -> HomeDirectoryType
$cfrom :: forall x. HomeDirectoryType -> Rep HomeDirectoryType x
Prelude.Generic
)
deriving newtype
( Int -> HomeDirectoryType -> Int
HomeDirectoryType -> Int
(Int -> HomeDirectoryType -> Int)
-> (HomeDirectoryType -> Int) -> Hashable HomeDirectoryType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: HomeDirectoryType -> Int
$chash :: HomeDirectoryType -> Int
hashWithSalt :: Int -> HomeDirectoryType -> Int
$chashWithSalt :: Int -> HomeDirectoryType -> Int
Prelude.Hashable,
HomeDirectoryType -> ()
(HomeDirectoryType -> ()) -> NFData HomeDirectoryType
forall a. (a -> ()) -> NFData a
rnf :: HomeDirectoryType -> ()
$crnf :: HomeDirectoryType -> ()
Prelude.NFData,
Text -> Either String HomeDirectoryType
(Text -> Either String HomeDirectoryType)
-> FromText HomeDirectoryType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String HomeDirectoryType
$cfromText :: Text -> Either String HomeDirectoryType
Core.FromText,
HomeDirectoryType -> Text
(HomeDirectoryType -> Text) -> ToText HomeDirectoryType
forall a. (a -> Text) -> ToText a
toText :: HomeDirectoryType -> Text
$ctoText :: HomeDirectoryType -> Text
Core.ToText,
HomeDirectoryType -> ByteString
(HomeDirectoryType -> ByteString) -> ToByteString HomeDirectoryType
forall a. (a -> ByteString) -> ToByteString a
toBS :: HomeDirectoryType -> ByteString
$ctoBS :: HomeDirectoryType -> ByteString
Core.ToByteString,
HomeDirectoryType -> ByteStringBuilder
(HomeDirectoryType -> ByteStringBuilder) -> ToLog HomeDirectoryType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: HomeDirectoryType -> ByteStringBuilder
$cbuild :: HomeDirectoryType -> ByteStringBuilder
Core.ToLog,
HeaderName -> HomeDirectoryType -> [Header]
(HeaderName -> HomeDirectoryType -> [Header])
-> ToHeader HomeDirectoryType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> HomeDirectoryType -> [Header]
$ctoHeader :: HeaderName -> HomeDirectoryType -> [Header]
Core.ToHeader,
HomeDirectoryType -> QueryString
(HomeDirectoryType -> QueryString) -> ToQuery HomeDirectoryType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: HomeDirectoryType -> QueryString
$ctoQuery :: HomeDirectoryType -> QueryString
Core.ToQuery,
Value -> Parser [HomeDirectoryType]
Value -> Parser HomeDirectoryType
(Value -> Parser HomeDirectoryType)
-> (Value -> Parser [HomeDirectoryType])
-> FromJSON HomeDirectoryType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [HomeDirectoryType]
$cparseJSONList :: Value -> Parser [HomeDirectoryType]
parseJSON :: Value -> Parser HomeDirectoryType
$cparseJSON :: Value -> Parser HomeDirectoryType
Core.FromJSON,
FromJSONKeyFunction [HomeDirectoryType]
FromJSONKeyFunction HomeDirectoryType
FromJSONKeyFunction HomeDirectoryType
-> FromJSONKeyFunction [HomeDirectoryType]
-> FromJSONKey HomeDirectoryType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [HomeDirectoryType]
$cfromJSONKeyList :: FromJSONKeyFunction [HomeDirectoryType]
fromJSONKey :: FromJSONKeyFunction HomeDirectoryType
$cfromJSONKey :: FromJSONKeyFunction HomeDirectoryType
Core.FromJSONKey,
[HomeDirectoryType] -> Encoding
[HomeDirectoryType] -> Value
HomeDirectoryType -> Encoding
HomeDirectoryType -> Value
(HomeDirectoryType -> Value)
-> (HomeDirectoryType -> Encoding)
-> ([HomeDirectoryType] -> Value)
-> ([HomeDirectoryType] -> Encoding)
-> ToJSON HomeDirectoryType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [HomeDirectoryType] -> Encoding
$ctoEncodingList :: [HomeDirectoryType] -> Encoding
toJSONList :: [HomeDirectoryType] -> Value
$ctoJSONList :: [HomeDirectoryType] -> Value
toEncoding :: HomeDirectoryType -> Encoding
$ctoEncoding :: HomeDirectoryType -> Encoding
toJSON :: HomeDirectoryType -> Value
$ctoJSON :: HomeDirectoryType -> Value
Core.ToJSON,
ToJSONKeyFunction [HomeDirectoryType]
ToJSONKeyFunction HomeDirectoryType
ToJSONKeyFunction HomeDirectoryType
-> ToJSONKeyFunction [HomeDirectoryType]
-> ToJSONKey HomeDirectoryType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [HomeDirectoryType]
$ctoJSONKeyList :: ToJSONKeyFunction [HomeDirectoryType]
toJSONKey :: ToJSONKeyFunction HomeDirectoryType
$ctoJSONKey :: ToJSONKeyFunction HomeDirectoryType
Core.ToJSONKey,
[Node] -> Either String HomeDirectoryType
([Node] -> Either String HomeDirectoryType)
-> FromXML HomeDirectoryType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String HomeDirectoryType
$cparseXML :: [Node] -> Either String HomeDirectoryType
Core.FromXML,
HomeDirectoryType -> XML
(HomeDirectoryType -> XML) -> ToXML HomeDirectoryType
forall a. (a -> XML) -> ToXML a
toXML :: HomeDirectoryType -> XML
$ctoXML :: HomeDirectoryType -> XML
Core.ToXML
)
pattern HomeDirectoryType_LOGICAL :: HomeDirectoryType
pattern $bHomeDirectoryType_LOGICAL :: HomeDirectoryType
$mHomeDirectoryType_LOGICAL :: forall r. HomeDirectoryType -> (Void# -> r) -> (Void# -> r) -> r
HomeDirectoryType_LOGICAL = HomeDirectoryType' "LOGICAL"
pattern HomeDirectoryType_PATH :: HomeDirectoryType
pattern $bHomeDirectoryType_PATH :: HomeDirectoryType
$mHomeDirectoryType_PATH :: forall r. HomeDirectoryType -> (Void# -> r) -> (Void# -> r) -> r
HomeDirectoryType_PATH = HomeDirectoryType' "PATH"
{-# COMPLETE
HomeDirectoryType_LOGICAL,
HomeDirectoryType_PATH,
HomeDirectoryType'
#-}