{-# 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.DirectoryService.Types.DomainControllerStatus
-- 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.DirectoryService.Types.DomainControllerStatus
  ( DomainControllerStatus
      ( ..,
        DomainControllerStatus_Active,
        DomainControllerStatus_Creating,
        DomainControllerStatus_Deleted,
        DomainControllerStatus_Deleting,
        DomainControllerStatus_Failed,
        DomainControllerStatus_Impaired,
        DomainControllerStatus_Restoring
      ),
  )
where

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

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

pattern DomainControllerStatus_Active :: DomainControllerStatus
pattern $bDomainControllerStatus_Active :: DomainControllerStatus
$mDomainControllerStatus_Active :: forall r.
DomainControllerStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainControllerStatus_Active = DomainControllerStatus' "Active"

pattern DomainControllerStatus_Creating :: DomainControllerStatus
pattern $bDomainControllerStatus_Creating :: DomainControllerStatus
$mDomainControllerStatus_Creating :: forall r.
DomainControllerStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainControllerStatus_Creating = DomainControllerStatus' "Creating"

pattern DomainControllerStatus_Deleted :: DomainControllerStatus
pattern $bDomainControllerStatus_Deleted :: DomainControllerStatus
$mDomainControllerStatus_Deleted :: forall r.
DomainControllerStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainControllerStatus_Deleted = DomainControllerStatus' "Deleted"

pattern DomainControllerStatus_Deleting :: DomainControllerStatus
pattern $bDomainControllerStatus_Deleting :: DomainControllerStatus
$mDomainControllerStatus_Deleting :: forall r.
DomainControllerStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainControllerStatus_Deleting = DomainControllerStatus' "Deleting"

pattern DomainControllerStatus_Failed :: DomainControllerStatus
pattern $bDomainControllerStatus_Failed :: DomainControllerStatus
$mDomainControllerStatus_Failed :: forall r.
DomainControllerStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainControllerStatus_Failed = DomainControllerStatus' "Failed"

pattern DomainControllerStatus_Impaired :: DomainControllerStatus
pattern $bDomainControllerStatus_Impaired :: DomainControllerStatus
$mDomainControllerStatus_Impaired :: forall r.
DomainControllerStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainControllerStatus_Impaired = DomainControllerStatus' "Impaired"

pattern DomainControllerStatus_Restoring :: DomainControllerStatus
pattern $bDomainControllerStatus_Restoring :: DomainControllerStatus
$mDomainControllerStatus_Restoring :: forall r.
DomainControllerStatus -> (Void# -> r) -> (Void# -> r) -> r
DomainControllerStatus_Restoring = DomainControllerStatus' "Restoring"

{-# COMPLETE
  DomainControllerStatus_Active,
  DomainControllerStatus_Creating,
  DomainControllerStatus_Deleted,
  DomainControllerStatus_Deleting,
  DomainControllerStatus_Failed,
  DomainControllerStatus_Impaired,
  DomainControllerStatus_Restoring,
  DomainControllerStatus'
  #-}