{-# 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.WorkSpaces.Types.AssociationStatus
-- 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.WorkSpaces.Types.AssociationStatus
  ( AssociationStatus
      ( ..,
        AssociationStatus_ASSOCIATED_WITH_OWNER_ACCOUNT,
        AssociationStatus_ASSOCIATED_WITH_SHARED_ACCOUNT,
        AssociationStatus_NOT_ASSOCIATED,
        AssociationStatus_PENDING_ASSOCIATION,
        AssociationStatus_PENDING_DISASSOCIATION
      ),
  )
where

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

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

pattern AssociationStatus_ASSOCIATED_WITH_OWNER_ACCOUNT :: AssociationStatus
pattern $bAssociationStatus_ASSOCIATED_WITH_OWNER_ACCOUNT :: AssociationStatus
$mAssociationStatus_ASSOCIATED_WITH_OWNER_ACCOUNT :: forall r. AssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
AssociationStatus_ASSOCIATED_WITH_OWNER_ACCOUNT = AssociationStatus' "ASSOCIATED_WITH_OWNER_ACCOUNT"

pattern AssociationStatus_ASSOCIATED_WITH_SHARED_ACCOUNT :: AssociationStatus
pattern $bAssociationStatus_ASSOCIATED_WITH_SHARED_ACCOUNT :: AssociationStatus
$mAssociationStatus_ASSOCIATED_WITH_SHARED_ACCOUNT :: forall r. AssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
AssociationStatus_ASSOCIATED_WITH_SHARED_ACCOUNT = AssociationStatus' "ASSOCIATED_WITH_SHARED_ACCOUNT"

pattern AssociationStatus_NOT_ASSOCIATED :: AssociationStatus
pattern $bAssociationStatus_NOT_ASSOCIATED :: AssociationStatus
$mAssociationStatus_NOT_ASSOCIATED :: forall r. AssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
AssociationStatus_NOT_ASSOCIATED = AssociationStatus' "NOT_ASSOCIATED"

pattern AssociationStatus_PENDING_ASSOCIATION :: AssociationStatus
pattern $bAssociationStatus_PENDING_ASSOCIATION :: AssociationStatus
$mAssociationStatus_PENDING_ASSOCIATION :: forall r. AssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
AssociationStatus_PENDING_ASSOCIATION = AssociationStatus' "PENDING_ASSOCIATION"

pattern AssociationStatus_PENDING_DISASSOCIATION :: AssociationStatus
pattern $bAssociationStatus_PENDING_DISASSOCIATION :: AssociationStatus
$mAssociationStatus_PENDING_DISASSOCIATION :: forall r. AssociationStatus -> (Void# -> r) -> (Void# -> r) -> r
AssociationStatus_PENDING_DISASSOCIATION = AssociationStatus' "PENDING_DISASSOCIATION"

{-# COMPLETE
  AssociationStatus_ASSOCIATED_WITH_OWNER_ACCOUNT,
  AssociationStatus_ASSOCIATED_WITH_SHARED_ACCOUNT,
  AssociationStatus_NOT_ASSOCIATED,
  AssociationStatus_PENDING_ASSOCIATION,
  AssociationStatus_PENDING_DISASSOCIATION,
  AssociationStatus'
  #-}