{-# 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.Firehose.Types.HECEndpointType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Firehose.Types.HECEndpointType
  ( HECEndpointType
      ( ..,
        HECEndpointType_Event,
        HECEndpointType_Raw
      ),
  )
where

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

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

pattern HECEndpointType_Event :: HECEndpointType
pattern $bHECEndpointType_Event :: HECEndpointType
$mHECEndpointType_Event :: forall r. HECEndpointType -> (Void# -> r) -> (Void# -> r) -> r
HECEndpointType_Event = HECEndpointType' "Event"

pattern HECEndpointType_Raw :: HECEndpointType
pattern $bHECEndpointType_Raw :: HECEndpointType
$mHECEndpointType_Raw :: forall r. HECEndpointType -> (Void# -> r) -> (Void# -> r) -> r
HECEndpointType_Raw = HECEndpointType' "Raw"

{-# COMPLETE
  HECEndpointType_Event,
  HECEndpointType_Raw,
  HECEndpointType'
  #-}