{-# 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.S3.Types.ObjectStorageClass
-- 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.S3.Types.ObjectStorageClass
  ( ObjectStorageClass
      ( ..,
        ObjectStorageClass_GLACIER,
        ObjectStorageClass_INTELLIGENT_TIERING,
        ObjectStorageClass_REDUCED_REDUNDANCY,
        ObjectStorageClass_STANDARD,
        ObjectStorageClass_STANDARD_IA
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

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

pattern ObjectStorageClass_GLACIER :: ObjectStorageClass
pattern $bObjectStorageClass_GLACIER :: ObjectStorageClass
$mObjectStorageClass_GLACIER :: forall r. ObjectStorageClass -> (Void# -> r) -> (Void# -> r) -> r
ObjectStorageClass_GLACIER = ObjectStorageClass' "GLACIER"

pattern ObjectStorageClass_INTELLIGENT_TIERING :: ObjectStorageClass
pattern $bObjectStorageClass_INTELLIGENT_TIERING :: ObjectStorageClass
$mObjectStorageClass_INTELLIGENT_TIERING :: forall r. ObjectStorageClass -> (Void# -> r) -> (Void# -> r) -> r
ObjectStorageClass_INTELLIGENT_TIERING = ObjectStorageClass' "INTELLIGENT_TIERING"

pattern ObjectStorageClass_REDUCED_REDUNDANCY :: ObjectStorageClass
pattern $bObjectStorageClass_REDUCED_REDUNDANCY :: ObjectStorageClass
$mObjectStorageClass_REDUCED_REDUNDANCY :: forall r. ObjectStorageClass -> (Void# -> r) -> (Void# -> r) -> r
ObjectStorageClass_REDUCED_REDUNDANCY = ObjectStorageClass' "REDUCED_REDUNDANCY"

pattern ObjectStorageClass_STANDARD :: ObjectStorageClass
pattern $bObjectStorageClass_STANDARD :: ObjectStorageClass
$mObjectStorageClass_STANDARD :: forall r. ObjectStorageClass -> (Void# -> r) -> (Void# -> r) -> r
ObjectStorageClass_STANDARD = ObjectStorageClass' "STANDARD"

pattern ObjectStorageClass_STANDARD_IA :: ObjectStorageClass
pattern $bObjectStorageClass_STANDARD_IA :: ObjectStorageClass
$mObjectStorageClass_STANDARD_IA :: forall r. ObjectStorageClass -> (Void# -> r) -> (Void# -> r) -> r
ObjectStorageClass_STANDARD_IA = ObjectStorageClass' "STANDARD_IA"

{-# COMPLETE
  ObjectStorageClass_GLACIER,
  ObjectStorageClass_INTELLIGENT_TIERING,
  ObjectStorageClass_REDUCED_REDUNDANCY,
  ObjectStorageClass_STANDARD,
  ObjectStorageClass_STANDARD_IA,
  ObjectStorageClass'
  #-}