{-# 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-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.PatchSet
  ( PatchSet
      ( ..,
        PatchSet_APPLICATION,
        PatchSet_OS
      ),
  )
where

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

newtype PatchSet = PatchSet'
  { PatchSet -> Text
fromPatchSet ::
      Core.Text
  }
  deriving stock
    ( Int -> PatchSet -> ShowS
[PatchSet] -> ShowS
PatchSet -> String
(Int -> PatchSet -> ShowS)
-> (PatchSet -> String) -> ([PatchSet] -> ShowS) -> Show PatchSet
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]
(Int -> ReadS PatchSet)
-> ReadS [PatchSet]
-> ReadPrec PatchSet
-> ReadPrec [PatchSet]
-> Read 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
(PatchSet -> PatchSet -> Bool)
-> (PatchSet -> PatchSet -> Bool) -> Eq PatchSet
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
Eq PatchSet
-> (PatchSet -> PatchSet -> Ordering)
-> (PatchSet -> PatchSet -> Bool)
-> (PatchSet -> PatchSet -> Bool)
-> (PatchSet -> PatchSet -> Bool)
-> (PatchSet -> PatchSet -> Bool)
-> (PatchSet -> PatchSet -> PatchSet)
-> (PatchSet -> PatchSet -> PatchSet)
-> Ord 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
$cp1Ord :: Eq PatchSet
Prelude.Ord,
      (forall x. PatchSet -> Rep PatchSet x)
-> (forall x. Rep PatchSet x -> PatchSet) -> Generic PatchSet
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
    ( Int -> PatchSet -> Int
PatchSet -> Int
(Int -> PatchSet -> Int) -> (PatchSet -> Int) -> Hashable PatchSet
forall 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 -> ()
(PatchSet -> ()) -> NFData PatchSet
forall a. (a -> ()) -> NFData a
rnf :: PatchSet -> ()
$crnf :: PatchSet -> ()
Prelude.NFData,
      Text -> Either String PatchSet
(Text -> Either String PatchSet) -> FromText PatchSet
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String PatchSet
$cfromText :: Text -> Either String PatchSet
Core.FromText,
      PatchSet -> Text
(PatchSet -> Text) -> ToText PatchSet
forall a. (a -> Text) -> ToText a
toText :: PatchSet -> Text
$ctoText :: PatchSet -> Text
Core.ToText,
      PatchSet -> ByteString
(PatchSet -> ByteString) -> ToByteString PatchSet
forall a. (a -> ByteString) -> ToByteString a
toBS :: PatchSet -> ByteString
$ctoBS :: PatchSet -> ByteString
Core.ToByteString,
      PatchSet -> ByteStringBuilder
(PatchSet -> ByteStringBuilder) -> ToLog PatchSet
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: PatchSet -> ByteStringBuilder
$cbuild :: PatchSet -> ByteStringBuilder
Core.ToLog,
      HeaderName -> PatchSet -> [Header]
(HeaderName -> PatchSet -> [Header]) -> ToHeader PatchSet
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> PatchSet -> [Header]
$ctoHeader :: HeaderName -> PatchSet -> [Header]
Core.ToHeader,
      PatchSet -> QueryString
(PatchSet -> QueryString) -> ToQuery PatchSet
forall a. (a -> QueryString) -> ToQuery a
toQuery :: PatchSet -> QueryString
$ctoQuery :: PatchSet -> QueryString
Core.ToQuery,
      Value -> Parser [PatchSet]
Value -> Parser PatchSet
(Value -> Parser PatchSet)
-> (Value -> Parser [PatchSet]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [PatchSet]
FromJSONKeyFunction PatchSet
FromJSONKeyFunction PatchSet
-> FromJSONKeyFunction [PatchSet] -> FromJSONKey PatchSet
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [PatchSet]
$cfromJSONKeyList :: FromJSONKeyFunction [PatchSet]
fromJSONKey :: FromJSONKeyFunction PatchSet
$cfromJSONKey :: FromJSONKeyFunction PatchSet
Core.FromJSONKey,
      [PatchSet] -> Encoding
[PatchSet] -> Value
PatchSet -> Encoding
PatchSet -> Value
(PatchSet -> Value)
-> (PatchSet -> Encoding)
-> ([PatchSet] -> Value)
-> ([PatchSet] -> Encoding)
-> ToJSON PatchSet
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
Core.ToJSON,
      ToJSONKeyFunction [PatchSet]
ToJSONKeyFunction PatchSet
ToJSONKeyFunction PatchSet
-> ToJSONKeyFunction [PatchSet] -> ToJSONKey PatchSet
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [PatchSet]
$ctoJSONKeyList :: ToJSONKeyFunction [PatchSet]
toJSONKey :: ToJSONKeyFunction PatchSet
$ctoJSONKey :: ToJSONKeyFunction PatchSet
Core.ToJSONKey,
      [Node] -> Either String PatchSet
([Node] -> Either String PatchSet) -> FromXML PatchSet
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String PatchSet
$cparseXML :: [Node] -> Either String PatchSet
Core.FromXML,
      PatchSet -> XML
(PatchSet -> XML) -> ToXML PatchSet
forall a. (a -> XML) -> ToXML a
toXML :: PatchSet -> XML
$ctoXML :: PatchSet -> XML
Core.ToXML
    )

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

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

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