{-# 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.QuickSight.Types.AssignmentStatus
-- 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.QuickSight.Types.AssignmentStatus
  ( AssignmentStatus
      ( ..,
        AssignmentStatus_DISABLED,
        AssignmentStatus_DRAFT,
        AssignmentStatus_ENABLED
      ),
  )
where

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

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

pattern AssignmentStatus_DISABLED :: AssignmentStatus
pattern $bAssignmentStatus_DISABLED :: AssignmentStatus
$mAssignmentStatus_DISABLED :: forall r. AssignmentStatus -> (Void# -> r) -> (Void# -> r) -> r
AssignmentStatus_DISABLED = AssignmentStatus' "DISABLED"

pattern AssignmentStatus_DRAFT :: AssignmentStatus
pattern $bAssignmentStatus_DRAFT :: AssignmentStatus
$mAssignmentStatus_DRAFT :: forall r. AssignmentStatus -> (Void# -> r) -> (Void# -> r) -> r
AssignmentStatus_DRAFT = AssignmentStatus' "DRAFT"

pattern AssignmentStatus_ENABLED :: AssignmentStatus
pattern $bAssignmentStatus_ENABLED :: AssignmentStatus
$mAssignmentStatus_ENABLED :: forall r. AssignmentStatus -> (Void# -> r) -> (Void# -> r) -> r
AssignmentStatus_ENABLED = AssignmentStatus' "ENABLED"

{-# COMPLETE
  AssignmentStatus_DISABLED,
  AssignmentStatus_DRAFT,
  AssignmentStatus_ENABLED,
  AssignmentStatus'
  #-}