{-# 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.InventorySchemaDeleteOption
-- 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.InventorySchemaDeleteOption
  ( InventorySchemaDeleteOption
      ( ..,
        InventorySchemaDeleteOption_DeleteSchema,
        InventorySchemaDeleteOption_DisableSchema
      ),
  )
where

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

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

pattern InventorySchemaDeleteOption_DeleteSchema :: InventorySchemaDeleteOption
pattern $bInventorySchemaDeleteOption_DeleteSchema :: InventorySchemaDeleteOption
$mInventorySchemaDeleteOption_DeleteSchema :: forall r.
InventorySchemaDeleteOption -> (Void# -> r) -> (Void# -> r) -> r
InventorySchemaDeleteOption_DeleteSchema = InventorySchemaDeleteOption' "DeleteSchema"

pattern InventorySchemaDeleteOption_DisableSchema :: InventorySchemaDeleteOption
pattern $bInventorySchemaDeleteOption_DisableSchema :: InventorySchemaDeleteOption
$mInventorySchemaDeleteOption_DisableSchema :: forall r.
InventorySchemaDeleteOption -> (Void# -> r) -> (Void# -> r) -> r
InventorySchemaDeleteOption_DisableSchema = InventorySchemaDeleteOption' "DisableSchema"

{-# COMPLETE
  InventorySchemaDeleteOption_DeleteSchema,
  InventorySchemaDeleteOption_DisableSchema,
  InventorySchemaDeleteOption'
  #-}