{-# 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.PatchSet
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SSM.Types.PatchSet
  ( PatchSet
      ( ..,
        PatchSet_APPLICATION,
        PatchSet_OS
      ),
  )
where

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

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

pattern PatchSet_APPLICATION :: PatchSet
pattern $bPatchSet_APPLICATION :: PatchSet
$mPatchSet_APPLICATION :: forall {r}. PatchSet -> ((# #) -> r) -> ((# #) -> r) -> r
PatchSet_APPLICATION = PatchSet' "APPLICATION"

pattern PatchSet_OS :: PatchSet
pattern $bPatchSet_OS :: PatchSet
$mPatchSet_OS :: forall {r}. PatchSet -> ((# #) -> r) -> ((# #) -> r) -> r
PatchSet_OS = PatchSet' "OS"

{-# COMPLETE
  PatchSet_APPLICATION,
  PatchSet_OS,
  PatchSet'
  #-}