{-# 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.IAM.Types.ReportStateType
-- 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.IAM.Types.ReportStateType
  ( ReportStateType
      ( ..,
        ReportStateType_COMPLETE,
        ReportStateType_INPROGRESS,
        ReportStateType_STARTED
      ),
  )
where

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

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

pattern ReportStateType_COMPLETE :: ReportStateType
pattern $bReportStateType_COMPLETE :: ReportStateType
$mReportStateType_COMPLETE :: forall r. ReportStateType -> (Void# -> r) -> (Void# -> r) -> r
ReportStateType_COMPLETE = ReportStateType' "COMPLETE"

pattern ReportStateType_INPROGRESS :: ReportStateType
pattern $bReportStateType_INPROGRESS :: ReportStateType
$mReportStateType_INPROGRESS :: forall r. ReportStateType -> (Void# -> r) -> (Void# -> r) -> r
ReportStateType_INPROGRESS = ReportStateType' "INPROGRESS"

pattern ReportStateType_STARTED :: ReportStateType
pattern $bReportStateType_STARTED :: ReportStateType
$mReportStateType_STARTED :: forall r. ReportStateType -> (Void# -> r) -> (Void# -> r) -> r
ReportStateType_STARTED = ReportStateType' "STARTED"

{-# COMPLETE
  ReportStateType_COMPLETE,
  ReportStateType_INPROGRESS,
  ReportStateType_STARTED,
  ReportStateType'
  #-}