{-# 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.SSM.Types.OpsItemEventFilterKey
-- 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.SSM.Types.OpsItemEventFilterKey
  ( OpsItemEventFilterKey
      ( ..,
        OpsItemEventFilterKey_OpsItemId
      ),
  )
where

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

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

pattern OpsItemEventFilterKey_OpsItemId :: OpsItemEventFilterKey
pattern $bOpsItemEventFilterKey_OpsItemId :: OpsItemEventFilterKey
$mOpsItemEventFilterKey_OpsItemId :: forall r.
OpsItemEventFilterKey -> (Void# -> r) -> (Void# -> r) -> r
OpsItemEventFilterKey_OpsItemId = OpsItemEventFilterKey' "OpsItemId"

{-# COMPLETE
  OpsItemEventFilterKey_OpsItemId,
  OpsItemEventFilterKey'
  #-}