{-# 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.PatchFilterKey
-- 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.PatchFilterKey
  ( PatchFilterKey
      ( ..,
        PatchFilterKey_ADVISORY_ID,
        PatchFilterKey_ARCH,
        PatchFilterKey_BUGZILLA_ID,
        PatchFilterKey_CLASSIFICATION,
        PatchFilterKey_CVE_ID,
        PatchFilterKey_EPOCH,
        PatchFilterKey_MSRC_SEVERITY,
        PatchFilterKey_NAME,
        PatchFilterKey_PATCH_ID,
        PatchFilterKey_PATCH_SET,
        PatchFilterKey_PRIORITY,
        PatchFilterKey_PRODUCT,
        PatchFilterKey_PRODUCT_FAMILY,
        PatchFilterKey_RELEASE,
        PatchFilterKey_REPOSITORY,
        PatchFilterKey_SECTION,
        PatchFilterKey_SECURITY,
        PatchFilterKey_SEVERITY,
        PatchFilterKey_VERSION
      ),
  )
where

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

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

pattern PatchFilterKey_ADVISORY_ID :: PatchFilterKey
pattern $bPatchFilterKey_ADVISORY_ID :: PatchFilterKey
$mPatchFilterKey_ADVISORY_ID :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_ADVISORY_ID = PatchFilterKey' "ADVISORY_ID"

pattern PatchFilterKey_ARCH :: PatchFilterKey
pattern $bPatchFilterKey_ARCH :: PatchFilterKey
$mPatchFilterKey_ARCH :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_ARCH = PatchFilterKey' "ARCH"

pattern PatchFilterKey_BUGZILLA_ID :: PatchFilterKey
pattern $bPatchFilterKey_BUGZILLA_ID :: PatchFilterKey
$mPatchFilterKey_BUGZILLA_ID :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_BUGZILLA_ID = PatchFilterKey' "BUGZILLA_ID"

pattern PatchFilterKey_CLASSIFICATION :: PatchFilterKey
pattern $bPatchFilterKey_CLASSIFICATION :: PatchFilterKey
$mPatchFilterKey_CLASSIFICATION :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_CLASSIFICATION = PatchFilterKey' "CLASSIFICATION"

pattern PatchFilterKey_CVE_ID :: PatchFilterKey
pattern $bPatchFilterKey_CVE_ID :: PatchFilterKey
$mPatchFilterKey_CVE_ID :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_CVE_ID = PatchFilterKey' "CVE_ID"

pattern PatchFilterKey_EPOCH :: PatchFilterKey
pattern $bPatchFilterKey_EPOCH :: PatchFilterKey
$mPatchFilterKey_EPOCH :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_EPOCH = PatchFilterKey' "EPOCH"

pattern PatchFilterKey_MSRC_SEVERITY :: PatchFilterKey
pattern $bPatchFilterKey_MSRC_SEVERITY :: PatchFilterKey
$mPatchFilterKey_MSRC_SEVERITY :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_MSRC_SEVERITY = PatchFilterKey' "MSRC_SEVERITY"

pattern PatchFilterKey_NAME :: PatchFilterKey
pattern $bPatchFilterKey_NAME :: PatchFilterKey
$mPatchFilterKey_NAME :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_NAME = PatchFilterKey' "NAME"

pattern PatchFilterKey_PATCH_ID :: PatchFilterKey
pattern $bPatchFilterKey_PATCH_ID :: PatchFilterKey
$mPatchFilterKey_PATCH_ID :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_PATCH_ID = PatchFilterKey' "PATCH_ID"

pattern PatchFilterKey_PATCH_SET :: PatchFilterKey
pattern $bPatchFilterKey_PATCH_SET :: PatchFilterKey
$mPatchFilterKey_PATCH_SET :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_PATCH_SET = PatchFilterKey' "PATCH_SET"

pattern PatchFilterKey_PRIORITY :: PatchFilterKey
pattern $bPatchFilterKey_PRIORITY :: PatchFilterKey
$mPatchFilterKey_PRIORITY :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_PRIORITY = PatchFilterKey' "PRIORITY"

pattern PatchFilterKey_PRODUCT :: PatchFilterKey
pattern $bPatchFilterKey_PRODUCT :: PatchFilterKey
$mPatchFilterKey_PRODUCT :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_PRODUCT = PatchFilterKey' "PRODUCT"

pattern PatchFilterKey_PRODUCT_FAMILY :: PatchFilterKey
pattern $bPatchFilterKey_PRODUCT_FAMILY :: PatchFilterKey
$mPatchFilterKey_PRODUCT_FAMILY :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_PRODUCT_FAMILY = PatchFilterKey' "PRODUCT_FAMILY"

pattern PatchFilterKey_RELEASE :: PatchFilterKey
pattern $bPatchFilterKey_RELEASE :: PatchFilterKey
$mPatchFilterKey_RELEASE :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_RELEASE = PatchFilterKey' "RELEASE"

pattern PatchFilterKey_REPOSITORY :: PatchFilterKey
pattern $bPatchFilterKey_REPOSITORY :: PatchFilterKey
$mPatchFilterKey_REPOSITORY :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_REPOSITORY = PatchFilterKey' "REPOSITORY"

pattern PatchFilterKey_SECTION :: PatchFilterKey
pattern $bPatchFilterKey_SECTION :: PatchFilterKey
$mPatchFilterKey_SECTION :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_SECTION = PatchFilterKey' "SECTION"

pattern PatchFilterKey_SECURITY :: PatchFilterKey
pattern $bPatchFilterKey_SECURITY :: PatchFilterKey
$mPatchFilterKey_SECURITY :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_SECURITY = PatchFilterKey' "SECURITY"

pattern PatchFilterKey_SEVERITY :: PatchFilterKey
pattern $bPatchFilterKey_SEVERITY :: PatchFilterKey
$mPatchFilterKey_SEVERITY :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_SEVERITY = PatchFilterKey' "SEVERITY"

pattern PatchFilterKey_VERSION :: PatchFilterKey
pattern $bPatchFilterKey_VERSION :: PatchFilterKey
$mPatchFilterKey_VERSION :: forall r. PatchFilterKey -> (Void# -> r) -> (Void# -> r) -> r
PatchFilterKey_VERSION = PatchFilterKey' "VERSION"

{-# COMPLETE
  PatchFilterKey_ADVISORY_ID,
  PatchFilterKey_ARCH,
  PatchFilterKey_BUGZILLA_ID,
  PatchFilterKey_CLASSIFICATION,
  PatchFilterKey_CVE_ID,
  PatchFilterKey_EPOCH,
  PatchFilterKey_MSRC_SEVERITY,
  PatchFilterKey_NAME,
  PatchFilterKey_PATCH_ID,
  PatchFilterKey_PATCH_SET,
  PatchFilterKey_PRIORITY,
  PatchFilterKey_PRODUCT,
  PatchFilterKey_PRODUCT_FAMILY,
  PatchFilterKey_RELEASE,
  PatchFilterKey_REPOSITORY,
  PatchFilterKey_SECTION,
  PatchFilterKey_SECURITY,
  PatchFilterKey_SEVERITY,
  PatchFilterKey_VERSION,
  PatchFilterKey'
  #-}