{-# 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.ObjectVersionStorageClass
-- 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.ObjectVersionStorageClass
  ( ObjectVersionStorageClass
      ( ..,
        ObjectVersionStorageClass_STANDARD
      ),
  )
where

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

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

pattern ObjectVersionStorageClass_STANDARD :: ObjectVersionStorageClass
pattern $bObjectVersionStorageClass_STANDARD :: ObjectVersionStorageClass
$mObjectVersionStorageClass_STANDARD :: forall r.
ObjectVersionStorageClass -> (Void# -> r) -> (Void# -> r) -> r
ObjectVersionStorageClass_STANDARD = ObjectVersionStorageClass' "STANDARD"

{-# COMPLETE
  ObjectVersionStorageClass_STANDARD,
  ObjectVersionStorageClass'
  #-}