{-# 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.StorageClassAnalysisSchemaVersion
-- 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.StorageClassAnalysisSchemaVersion
  ( StorageClassAnalysisSchemaVersion
      ( ..,
        StorageClassAnalysisSchemaVersion_V_1
      ),
  )
where

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

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

pattern StorageClassAnalysisSchemaVersion_V_1 :: StorageClassAnalysisSchemaVersion
pattern $bStorageClassAnalysisSchemaVersion_V_1 :: StorageClassAnalysisSchemaVersion
$mStorageClassAnalysisSchemaVersion_V_1 :: forall r.
StorageClassAnalysisSchemaVersion
-> (Void# -> r) -> (Void# -> r) -> r
StorageClassAnalysisSchemaVersion_V_1 = StorageClassAnalysisSchemaVersion' "V_1"

{-# COMPLETE
  StorageClassAnalysisSchemaVersion_V_1,
  StorageClassAnalysisSchemaVersion'
  #-}