{-# 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.DataSync.Types.S3StorageClass
-- 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.DataSync.Types.S3StorageClass
  ( S3StorageClass
      ( ..,
        S3StorageClass_DEEP_ARCHIVE,
        S3StorageClass_GLACIER,
        S3StorageClass_INTELLIGENT_TIERING,
        S3StorageClass_ONEZONE_IA,
        S3StorageClass_OUTPOSTS,
        S3StorageClass_STANDARD,
        S3StorageClass_STANDARD_IA
      ),
  )
where

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

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

pattern S3StorageClass_DEEP_ARCHIVE :: S3StorageClass
pattern $bS3StorageClass_DEEP_ARCHIVE :: S3StorageClass
$mS3StorageClass_DEEP_ARCHIVE :: forall r. S3StorageClass -> (Void# -> r) -> (Void# -> r) -> r
S3StorageClass_DEEP_ARCHIVE = S3StorageClass' "DEEP_ARCHIVE"

pattern S3StorageClass_GLACIER :: S3StorageClass
pattern $bS3StorageClass_GLACIER :: S3StorageClass
$mS3StorageClass_GLACIER :: forall r. S3StorageClass -> (Void# -> r) -> (Void# -> r) -> r
S3StorageClass_GLACIER = S3StorageClass' "GLACIER"

pattern S3StorageClass_INTELLIGENT_TIERING :: S3StorageClass
pattern $bS3StorageClass_INTELLIGENT_TIERING :: S3StorageClass
$mS3StorageClass_INTELLIGENT_TIERING :: forall r. S3StorageClass -> (Void# -> r) -> (Void# -> r) -> r
S3StorageClass_INTELLIGENT_TIERING = S3StorageClass' "INTELLIGENT_TIERING"

pattern S3StorageClass_ONEZONE_IA :: S3StorageClass
pattern $bS3StorageClass_ONEZONE_IA :: S3StorageClass
$mS3StorageClass_ONEZONE_IA :: forall r. S3StorageClass -> (Void# -> r) -> (Void# -> r) -> r
S3StorageClass_ONEZONE_IA = S3StorageClass' "ONEZONE_IA"

pattern S3StorageClass_OUTPOSTS :: S3StorageClass
pattern $bS3StorageClass_OUTPOSTS :: S3StorageClass
$mS3StorageClass_OUTPOSTS :: forall r. S3StorageClass -> (Void# -> r) -> (Void# -> r) -> r
S3StorageClass_OUTPOSTS = S3StorageClass' "OUTPOSTS"

pattern S3StorageClass_STANDARD :: S3StorageClass
pattern $bS3StorageClass_STANDARD :: S3StorageClass
$mS3StorageClass_STANDARD :: forall r. S3StorageClass -> (Void# -> r) -> (Void# -> r) -> r
S3StorageClass_STANDARD = S3StorageClass' "STANDARD"

pattern S3StorageClass_STANDARD_IA :: S3StorageClass
pattern $bS3StorageClass_STANDARD_IA :: S3StorageClass
$mS3StorageClass_STANDARD_IA :: forall r. S3StorageClass -> (Void# -> r) -> (Void# -> r) -> r
S3StorageClass_STANDARD_IA = S3StorageClass' "STANDARD_IA"

{-# COMPLETE
  S3StorageClass_DEEP_ARCHIVE,
  S3StorageClass_GLACIER,
  S3StorageClass_INTELLIGENT_TIERING,
  S3StorageClass_ONEZONE_IA,
  S3StorageClass_OUTPOSTS,
  S3StorageClass_STANDARD,
  S3StorageClass_STANDARD_IA,
  S3StorageClass'
  #-}