{-# 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.InventoryIncludedObjectVersions
-- 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.InventoryIncludedObjectVersions
  ( InventoryIncludedObjectVersions
      ( ..,
        InventoryIncludedObjectVersions_All,
        InventoryIncludedObjectVersions_Current
      ),
  )
where

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

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

pattern InventoryIncludedObjectVersions_All :: InventoryIncludedObjectVersions
pattern $bInventoryIncludedObjectVersions_All :: InventoryIncludedObjectVersions
$mInventoryIncludedObjectVersions_All :: forall r.
InventoryIncludedObjectVersions
-> (Void# -> r) -> (Void# -> r) -> r
InventoryIncludedObjectVersions_All = InventoryIncludedObjectVersions' "All"

pattern InventoryIncludedObjectVersions_Current :: InventoryIncludedObjectVersions
pattern $bInventoryIncludedObjectVersions_Current :: InventoryIncludedObjectVersions
$mInventoryIncludedObjectVersions_Current :: forall r.
InventoryIncludedObjectVersions
-> (Void# -> r) -> (Void# -> r) -> r
InventoryIncludedObjectVersions_Current = InventoryIncludedObjectVersions' "Current"

{-# COMPLETE
  InventoryIncludedObjectVersions_All,
  InventoryIncludedObjectVersions_Current,
  InventoryIncludedObjectVersions'
  #-}