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