{-# 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.EventTypeValues
-- 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.EventTypeValues
  ( EventTypeValues
      ( ..,
        EventTypeValues_ShareSnapshot
      ),
  )
where

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

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

pattern EventTypeValues_ShareSnapshot :: EventTypeValues
pattern $bEventTypeValues_ShareSnapshot :: EventTypeValues
$mEventTypeValues_ShareSnapshot :: forall r. EventTypeValues -> (Void# -> r) -> (Void# -> r) -> r
EventTypeValues_ShareSnapshot = EventTypeValues' "shareSnapshot"

{-# COMPLETE
  EventTypeValues_ShareSnapshot,
  EventTypeValues'
  #-}