{-# 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.DLM.Types.EventSourceValues
-- 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.DLM.Types.EventSourceValues
  ( EventSourceValues
      ( ..,
        EventSourceValues_MANAGED_CWE
      ),
  )
where

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

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

pattern EventSourceValues_MANAGED_CWE :: EventSourceValues
pattern $bEventSourceValues_MANAGED_CWE :: EventSourceValues
$mEventSourceValues_MANAGED_CWE :: forall r. EventSourceValues -> (Void# -> r) -> (Void# -> r) -> r
EventSourceValues_MANAGED_CWE = EventSourceValues' "MANAGED_CWE"

{-# COMPLETE
  EventSourceValues_MANAGED_CWE,
  EventSourceValues'
  #-}