{-# 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.StorageGateway.Types.ActiveDirectoryStatus
-- 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.StorageGateway.Types.ActiveDirectoryStatus
  ( ActiveDirectoryStatus
      ( ..,
        ActiveDirectoryStatus_ACCESS_DENIED,
        ActiveDirectoryStatus_DETACHED,
        ActiveDirectoryStatus_JOINED,
        ActiveDirectoryStatus_JOINING,
        ActiveDirectoryStatus_NETWORK_ERROR,
        ActiveDirectoryStatus_TIMEOUT,
        ActiveDirectoryStatus_UNKNOWN_ERROR
      ),
  )
where

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

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

pattern ActiveDirectoryStatus_ACCESS_DENIED :: ActiveDirectoryStatus
pattern $bActiveDirectoryStatus_ACCESS_DENIED :: ActiveDirectoryStatus
$mActiveDirectoryStatus_ACCESS_DENIED :: forall r.
ActiveDirectoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActiveDirectoryStatus_ACCESS_DENIED = ActiveDirectoryStatus' "ACCESS_DENIED"

pattern ActiveDirectoryStatus_DETACHED :: ActiveDirectoryStatus
pattern $bActiveDirectoryStatus_DETACHED :: ActiveDirectoryStatus
$mActiveDirectoryStatus_DETACHED :: forall r.
ActiveDirectoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActiveDirectoryStatus_DETACHED = ActiveDirectoryStatus' "DETACHED"

pattern ActiveDirectoryStatus_JOINED :: ActiveDirectoryStatus
pattern $bActiveDirectoryStatus_JOINED :: ActiveDirectoryStatus
$mActiveDirectoryStatus_JOINED :: forall r.
ActiveDirectoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActiveDirectoryStatus_JOINED = ActiveDirectoryStatus' "JOINED"

pattern ActiveDirectoryStatus_JOINING :: ActiveDirectoryStatus
pattern $bActiveDirectoryStatus_JOINING :: ActiveDirectoryStatus
$mActiveDirectoryStatus_JOINING :: forall r.
ActiveDirectoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActiveDirectoryStatus_JOINING = ActiveDirectoryStatus' "JOINING"

pattern ActiveDirectoryStatus_NETWORK_ERROR :: ActiveDirectoryStatus
pattern $bActiveDirectoryStatus_NETWORK_ERROR :: ActiveDirectoryStatus
$mActiveDirectoryStatus_NETWORK_ERROR :: forall r.
ActiveDirectoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActiveDirectoryStatus_NETWORK_ERROR = ActiveDirectoryStatus' "NETWORK_ERROR"

pattern ActiveDirectoryStatus_TIMEOUT :: ActiveDirectoryStatus
pattern $bActiveDirectoryStatus_TIMEOUT :: ActiveDirectoryStatus
$mActiveDirectoryStatus_TIMEOUT :: forall r.
ActiveDirectoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActiveDirectoryStatus_TIMEOUT = ActiveDirectoryStatus' "TIMEOUT"

pattern ActiveDirectoryStatus_UNKNOWN_ERROR :: ActiveDirectoryStatus
pattern $bActiveDirectoryStatus_UNKNOWN_ERROR :: ActiveDirectoryStatus
$mActiveDirectoryStatus_UNKNOWN_ERROR :: forall r.
ActiveDirectoryStatus -> (Void# -> r) -> (Void# -> r) -> r
ActiveDirectoryStatus_UNKNOWN_ERROR = ActiveDirectoryStatus' "UNKNOWN_ERROR"

{-# COMPLETE
  ActiveDirectoryStatus_ACCESS_DENIED,
  ActiveDirectoryStatus_DETACHED,
  ActiveDirectoryStatus_JOINED,
  ActiveDirectoryStatus_JOINING,
  ActiveDirectoryStatus_NETWORK_ERROR,
  ActiveDirectoryStatus_TIMEOUT,
  ActiveDirectoryStatus_UNKNOWN_ERROR,
  ActiveDirectoryStatus'
  #-}