{-# 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.ProfileType
-- 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.ProfileType
  ( ProfileType
      ( ..,
        ProfileType_LOCAL,
        ProfileType_PARTNER
      ),
  )
where

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

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

pattern ProfileType_LOCAL :: ProfileType
pattern $bProfileType_LOCAL :: ProfileType
$mProfileType_LOCAL :: forall {r}. ProfileType -> ((# #) -> r) -> ((# #) -> r) -> r
ProfileType_LOCAL = ProfileType' "LOCAL"

pattern ProfileType_PARTNER :: ProfileType
pattern $bProfileType_PARTNER :: ProfileType
$mProfileType_PARTNER :: forall {r}. ProfileType -> ((# #) -> r) -> ((# #) -> r) -> r
ProfileType_PARTNER = ProfileType' "PARTNER"

{-# COMPLETE
  ProfileType_LOCAL,
  ProfileType_PARTNER,
  ProfileType'
  #-}