{-# 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.HomeDirectoryType
-- 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.HomeDirectoryType
  ( HomeDirectoryType
      ( ..,
        HomeDirectoryType_LOGICAL,
        HomeDirectoryType_PATH
      ),
  )
where

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

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

pattern HomeDirectoryType_LOGICAL :: HomeDirectoryType
pattern $bHomeDirectoryType_LOGICAL :: HomeDirectoryType
$mHomeDirectoryType_LOGICAL :: forall {r}. HomeDirectoryType -> ((# #) -> r) -> ((# #) -> r) -> r
HomeDirectoryType_LOGICAL = HomeDirectoryType' "LOGICAL"

pattern HomeDirectoryType_PATH :: HomeDirectoryType
pattern $bHomeDirectoryType_PATH :: HomeDirectoryType
$mHomeDirectoryType_PATH :: forall {r}. HomeDirectoryType -> ((# #) -> r) -> ((# #) -> r) -> r
HomeDirectoryType_PATH = HomeDirectoryType' "PATH"

{-# COMPLETE
  HomeDirectoryType_LOGICAL,
  HomeDirectoryType_PATH,
  HomeDirectoryType'
  #-}