{-# 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.AutoScaling.Types.LocalStorageType
-- 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.AutoScaling.Types.LocalStorageType
  ( LocalStorageType
      ( ..,
        LocalStorageType_Hdd,
        LocalStorageType_Ssd
      ),
  )
where

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

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

pattern LocalStorageType_Hdd :: LocalStorageType
pattern $bLocalStorageType_Hdd :: LocalStorageType
$mLocalStorageType_Hdd :: forall {r}. LocalStorageType -> ((# #) -> r) -> ((# #) -> r) -> r
LocalStorageType_Hdd = LocalStorageType' "hdd"

pattern LocalStorageType_Ssd :: LocalStorageType
pattern $bLocalStorageType_Ssd :: LocalStorageType
$mLocalStorageType_Ssd :: forall {r}. LocalStorageType -> ((# #) -> r) -> ((# #) -> r) -> r
LocalStorageType_Ssd = LocalStorageType' "ssd"

{-# COMPLETE
  LocalStorageType_Hdd,
  LocalStorageType_Ssd,
  LocalStorageType'
  #-}