{-# 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.DirectoryEdition
-- 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.DirectoryEdition
  ( DirectoryEdition
      ( ..,
        DirectoryEdition_Enterprise,
        DirectoryEdition_Standard
      ),
  )
where

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

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

pattern DirectoryEdition_Enterprise :: DirectoryEdition
pattern $bDirectoryEdition_Enterprise :: DirectoryEdition
$mDirectoryEdition_Enterprise :: forall r. DirectoryEdition -> (Void# -> r) -> (Void# -> r) -> r
DirectoryEdition_Enterprise = DirectoryEdition' "Enterprise"

pattern DirectoryEdition_Standard :: DirectoryEdition
pattern $bDirectoryEdition_Standard :: DirectoryEdition
$mDirectoryEdition_Standard :: forall r. DirectoryEdition -> (Void# -> r) -> (Void# -> r) -> r
DirectoryEdition_Standard = DirectoryEdition' "Standard"

{-# COMPLETE
  DirectoryEdition_Enterprise,
  DirectoryEdition_Standard,
  DirectoryEdition'
  #-}