{-# 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.MigrationHubReFactorSpaces.Types.ServiceEndpointType
-- 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.MigrationHubReFactorSpaces.Types.ServiceEndpointType
  ( ServiceEndpointType
      ( ..,
        ServiceEndpointType_LAMBDA,
        ServiceEndpointType_URL
      ),
  )
where

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

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

pattern ServiceEndpointType_LAMBDA :: ServiceEndpointType
pattern $bServiceEndpointType_LAMBDA :: ServiceEndpointType
$mServiceEndpointType_LAMBDA :: forall {r}.
ServiceEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceEndpointType_LAMBDA = ServiceEndpointType' "LAMBDA"

pattern ServiceEndpointType_URL :: ServiceEndpointType
pattern $bServiceEndpointType_URL :: ServiceEndpointType
$mServiceEndpointType_URL :: forall {r}.
ServiceEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
ServiceEndpointType_URL = ServiceEndpointType' "URL"

{-# COMPLETE
  ServiceEndpointType_LAMBDA,
  ServiceEndpointType_URL,
  ServiceEndpointType'
  #-}