{-# 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.ApiGatewayEndpointType
-- 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.ApiGatewayEndpointType
  ( ApiGatewayEndpointType
      ( ..,
        ApiGatewayEndpointType_PRIVATE,
        ApiGatewayEndpointType_REGIONAL
      ),
  )
where

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

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

pattern ApiGatewayEndpointType_PRIVATE :: ApiGatewayEndpointType
pattern $bApiGatewayEndpointType_PRIVATE :: ApiGatewayEndpointType
$mApiGatewayEndpointType_PRIVATE :: forall {r}.
ApiGatewayEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
ApiGatewayEndpointType_PRIVATE = ApiGatewayEndpointType' "PRIVATE"

pattern ApiGatewayEndpointType_REGIONAL :: ApiGatewayEndpointType
pattern $bApiGatewayEndpointType_REGIONAL :: ApiGatewayEndpointType
$mApiGatewayEndpointType_REGIONAL :: forall {r}.
ApiGatewayEndpointType -> ((# #) -> r) -> ((# #) -> r) -> r
ApiGatewayEndpointType_REGIONAL = ApiGatewayEndpointType' "REGIONAL"

{-# COMPLETE
  ApiGatewayEndpointType_PRIVATE,
  ApiGatewayEndpointType_REGIONAL,
  ApiGatewayEndpointType'
  #-}