{-# 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.ComplianceUploadType
-- 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.ComplianceUploadType
  ( ComplianceUploadType
      ( ..,
        ComplianceUploadType_COMPLETE,
        ComplianceUploadType_PARTIAL
      ),
  )
where

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

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

pattern ComplianceUploadType_COMPLETE :: ComplianceUploadType
pattern $bComplianceUploadType_COMPLETE :: ComplianceUploadType
$mComplianceUploadType_COMPLETE :: forall r. ComplianceUploadType -> (Void# -> r) -> (Void# -> r) -> r
ComplianceUploadType_COMPLETE = ComplianceUploadType' "COMPLETE"

pattern ComplianceUploadType_PARTIAL :: ComplianceUploadType
pattern $bComplianceUploadType_PARTIAL :: ComplianceUploadType
$mComplianceUploadType_PARTIAL :: forall r. ComplianceUploadType -> (Void# -> r) -> (Void# -> r) -> r
ComplianceUploadType_PARTIAL = ComplianceUploadType' "PARTIAL"

{-# COMPLETE
  ComplianceUploadType_COMPLETE,
  ComplianceUploadType_PARTIAL,
  ComplianceUploadType'
  #-}