{-# 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.WorkDocs.Types.StorageType
-- 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.WorkDocs.Types.StorageType
  ( StorageType
      ( ..,
        StorageType_QUOTA,
        StorageType_UNLIMITED
      ),
  )
where

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

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

pattern StorageType_QUOTA :: StorageType
pattern $bStorageType_QUOTA :: StorageType
$mStorageType_QUOTA :: forall r. StorageType -> (Void# -> r) -> (Void# -> r) -> r
StorageType_QUOTA = StorageType' "QUOTA"

pattern StorageType_UNLIMITED :: StorageType
pattern $bStorageType_UNLIMITED :: StorageType
$mStorageType_UNLIMITED :: forall r. StorageType -> (Void# -> r) -> (Void# -> r) -> r
StorageType_UNLIMITED = StorageType' "UNLIMITED"

{-# COMPLETE
  StorageType_QUOTA,
  StorageType_UNLIMITED,
  StorageType'
  #-}