{-# 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.Outposts.Types.SupportedStorageEnum
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Outposts.Types.SupportedStorageEnum
  ( SupportedStorageEnum
      ( ..,
        SupportedStorageEnum_EBS,
        SupportedStorageEnum_S3
      ),
  )
where

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

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

pattern SupportedStorageEnum_EBS :: SupportedStorageEnum
pattern $bSupportedStorageEnum_EBS :: SupportedStorageEnum
$mSupportedStorageEnum_EBS :: forall {r}.
SupportedStorageEnum -> ((# #) -> r) -> ((# #) -> r) -> r
SupportedStorageEnum_EBS = SupportedStorageEnum' "EBS"

pattern SupportedStorageEnum_S3 :: SupportedStorageEnum
pattern $bSupportedStorageEnum_S3 :: SupportedStorageEnum
$mSupportedStorageEnum_S3 :: forall {r}.
SupportedStorageEnum -> ((# #) -> r) -> ((# #) -> r) -> r
SupportedStorageEnum_S3 = SupportedStorageEnum' "S3"

{-# COMPLETE
  SupportedStorageEnum_EBS,
  SupportedStorageEnum_S3,
  SupportedStorageEnum'
  #-}