{-# 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.AppFlow.Types.OAuth2CustomPropType
-- 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.AppFlow.Types.OAuth2CustomPropType
  ( OAuth2CustomPropType
      ( ..,
        OAuth2CustomPropType_AUTH_URL,
        OAuth2CustomPropType_TOKEN_URL
      ),
  )
where

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

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

pattern OAuth2CustomPropType_AUTH_URL :: OAuth2CustomPropType
pattern $bOAuth2CustomPropType_AUTH_URL :: OAuth2CustomPropType
$mOAuth2CustomPropType_AUTH_URL :: forall {r}.
OAuth2CustomPropType -> ((# #) -> r) -> ((# #) -> r) -> r
OAuth2CustomPropType_AUTH_URL = OAuth2CustomPropType' "AUTH_URL"

pattern OAuth2CustomPropType_TOKEN_URL :: OAuth2CustomPropType
pattern $bOAuth2CustomPropType_TOKEN_URL :: OAuth2CustomPropType
$mOAuth2CustomPropType_TOKEN_URL :: forall {r}.
OAuth2CustomPropType -> ((# #) -> r) -> ((# #) -> r) -> r
OAuth2CustomPropType_TOKEN_URL = OAuth2CustomPropType' "TOKEN_URL"

{-# COMPLETE
  OAuth2CustomPropType_AUTH_URL,
  OAuth2CustomPropType_TOKEN_URL,
  OAuth2CustomPropType'
  #-}