{-# 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.WorkLink.Types.DomainStatus
-- 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.WorkLink.Types.DomainStatus
  ( DomainStatus
      ( ..,
        DomainStatus_ACTIVE,
        DomainStatus_ASSOCIATING,
        DomainStatus_DISASSOCIATED,
        DomainStatus_DISASSOCIATING,
        DomainStatus_FAILED_TO_ASSOCIATE,
        DomainStatus_FAILED_TO_DISASSOCIATE,
        DomainStatus_INACTIVE,
        DomainStatus_PENDING_VALIDATION
      ),
  )
where

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

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

pattern DomainStatus_ACTIVE :: DomainStatus
pattern $bDomainStatus_ACTIVE :: DomainStatus
$mDomainStatus_ACTIVE :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_ACTIVE = DomainStatus' "ACTIVE"

pattern DomainStatus_ASSOCIATING :: DomainStatus
pattern $bDomainStatus_ASSOCIATING :: DomainStatus
$mDomainStatus_ASSOCIATING :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_ASSOCIATING = DomainStatus' "ASSOCIATING"

pattern DomainStatus_DISASSOCIATED :: DomainStatus
pattern $bDomainStatus_DISASSOCIATED :: DomainStatus
$mDomainStatus_DISASSOCIATED :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_DISASSOCIATED = DomainStatus' "DISASSOCIATED"

pattern DomainStatus_DISASSOCIATING :: DomainStatus
pattern $bDomainStatus_DISASSOCIATING :: DomainStatus
$mDomainStatus_DISASSOCIATING :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_DISASSOCIATING = DomainStatus' "DISASSOCIATING"

pattern DomainStatus_FAILED_TO_ASSOCIATE :: DomainStatus
pattern $bDomainStatus_FAILED_TO_ASSOCIATE :: DomainStatus
$mDomainStatus_FAILED_TO_ASSOCIATE :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_FAILED_TO_ASSOCIATE = DomainStatus' "FAILED_TO_ASSOCIATE"

pattern DomainStatus_FAILED_TO_DISASSOCIATE :: DomainStatus
pattern $bDomainStatus_FAILED_TO_DISASSOCIATE :: DomainStatus
$mDomainStatus_FAILED_TO_DISASSOCIATE :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_FAILED_TO_DISASSOCIATE = DomainStatus' "FAILED_TO_DISASSOCIATE"

pattern DomainStatus_INACTIVE :: DomainStatus
pattern $bDomainStatus_INACTIVE :: DomainStatus
$mDomainStatus_INACTIVE :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_INACTIVE = DomainStatus' "INACTIVE"

pattern DomainStatus_PENDING_VALIDATION :: DomainStatus
pattern $bDomainStatus_PENDING_VALIDATION :: DomainStatus
$mDomainStatus_PENDING_VALIDATION :: forall r. DomainStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainStatus_PENDING_VALIDATION = DomainStatus' "PENDING_VALIDATION"

{-# COMPLETE
  DomainStatus_ACTIVE,
  DomainStatus_ASSOCIATING,
  DomainStatus_DISASSOCIATED,
  DomainStatus_DISASSOCIATING,
  DomainStatus_FAILED_TO_ASSOCIATE,
  DomainStatus_FAILED_TO_DISASSOCIATE,
  DomainStatus_INACTIVE,
  DomainStatus_PENDING_VALIDATION,
  DomainStatus'
  #-}