{-# 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.IntelligentTieringAccessTier
-- 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.IntelligentTieringAccessTier
  ( IntelligentTieringAccessTier
      ( ..,
        IntelligentTieringAccessTier_ARCHIVE_ACCESS,
        IntelligentTieringAccessTier_DEEP_ARCHIVE_ACCESS
      ),
  )
where

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

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

pattern IntelligentTieringAccessTier_ARCHIVE_ACCESS :: IntelligentTieringAccessTier
pattern $bIntelligentTieringAccessTier_ARCHIVE_ACCESS :: IntelligentTieringAccessTier
$mIntelligentTieringAccessTier_ARCHIVE_ACCESS :: forall r.
IntelligentTieringAccessTier -> (Void# -> r) -> (Void# -> r) -> r
IntelligentTieringAccessTier_ARCHIVE_ACCESS = IntelligentTieringAccessTier' "ARCHIVE_ACCESS"

pattern IntelligentTieringAccessTier_DEEP_ARCHIVE_ACCESS :: IntelligentTieringAccessTier
pattern $bIntelligentTieringAccessTier_DEEP_ARCHIVE_ACCESS :: IntelligentTieringAccessTier
$mIntelligentTieringAccessTier_DEEP_ARCHIVE_ACCESS :: forall r.
IntelligentTieringAccessTier -> (Void# -> r) -> (Void# -> r) -> r
IntelligentTieringAccessTier_DEEP_ARCHIVE_ACCESS = IntelligentTieringAccessTier' "DEEP_ARCHIVE_ACCESS"

{-# COMPLETE
  IntelligentTieringAccessTier_ARCHIVE_ACCESS,
  IntelligentTieringAccessTier_DEEP_ARCHIVE_ACCESS,
  IntelligentTieringAccessTier'
  #-}