{-# 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.DirectorySize
-- 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.DirectorySize
  ( DirectorySize
      ( ..,
        DirectorySize_Large,
        DirectorySize_Small
      ),
  )
where

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

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

pattern DirectorySize_Large :: DirectorySize
pattern $bDirectorySize_Large :: DirectorySize
$mDirectorySize_Large :: forall r. DirectorySize -> (Void# -> r) -> (Void# -> r) -> r
DirectorySize_Large = DirectorySize' "Large"

pattern DirectorySize_Small :: DirectorySize
pattern $bDirectorySize_Small :: DirectorySize
$mDirectorySize_Small :: forall r. DirectorySize -> (Void# -> r) -> (Void# -> r) -> r
DirectorySize_Small = DirectorySize' "Small"

{-# COMPLETE
  DirectorySize_Large,
  DirectorySize_Small,
  DirectorySize'
  #-}