{-# 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.AssignmentStatusType
-- 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.AssignmentStatusType
  ( AssignmentStatusType
      ( ..,
        AssignmentStatusType_Any,
        AssignmentStatusType_Assigned,
        AssignmentStatusType_Unassigned
      ),
  )
where

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

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

pattern AssignmentStatusType_Any :: AssignmentStatusType
pattern $bAssignmentStatusType_Any :: AssignmentStatusType
$mAssignmentStatusType_Any :: forall r. AssignmentStatusType -> (Void# -> r) -> (Void# -> r) -> r
AssignmentStatusType_Any = AssignmentStatusType' "Any"

pattern AssignmentStatusType_Assigned :: AssignmentStatusType
pattern $bAssignmentStatusType_Assigned :: AssignmentStatusType
$mAssignmentStatusType_Assigned :: forall r. AssignmentStatusType -> (Void# -> r) -> (Void# -> r) -> r
AssignmentStatusType_Assigned = AssignmentStatusType' "Assigned"

pattern AssignmentStatusType_Unassigned :: AssignmentStatusType
pattern $bAssignmentStatusType_Unassigned :: AssignmentStatusType
$mAssignmentStatusType_Unassigned :: forall r. AssignmentStatusType -> (Void# -> r) -> (Void# -> r) -> r
AssignmentStatusType_Unassigned = AssignmentStatusType' "Unassigned"

{-# COMPLETE
  AssignmentStatusType_Any,
  AssignmentStatusType_Assigned,
  AssignmentStatusType_Unassigned,
  AssignmentStatusType'
  #-}