{-# 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.SecurityLake.Types.EndpointProtocol
-- 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.SecurityLake.Types.EndpointProtocol
  ( EndpointProtocol
      ( ..,
        EndpointProtocol_HTTPS,
        EndpointProtocol_SQS
      ),
  )
where

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

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

pattern EndpointProtocol_HTTPS :: EndpointProtocol
pattern $bEndpointProtocol_HTTPS :: EndpointProtocol
$mEndpointProtocol_HTTPS :: forall {r}. EndpointProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointProtocol_HTTPS = EndpointProtocol' "HTTPS"

pattern EndpointProtocol_SQS :: EndpointProtocol
pattern $bEndpointProtocol_SQS :: EndpointProtocol
$mEndpointProtocol_SQS :: forall {r}. EndpointProtocol -> ((# #) -> r) -> ((# #) -> r) -> r
EndpointProtocol_SQS = EndpointProtocol' "SQS"

{-# COMPLETE
  EndpointProtocol_HTTPS,
  EndpointProtocol_SQS,
  EndpointProtocol'
  #-}