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