{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3.Internal

newtype InventoryIncludedObjectVersions = InventoryIncludedObjectVersions'
  { InventoryIncludedObjectVersions -> Text
fromInventoryIncludedObjectVersions ::
      Data.Text
  }
  deriving stock
    ( Int -> InventoryIncludedObjectVersions -> ShowS
[InventoryIncludedObjectVersions] -> ShowS
InventoryIncludedObjectVersions -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq InventoryIncludedObjectVersions
Int -> InventoryIncludedObjectVersions -> Int
InventoryIncludedObjectVersions -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: InventoryIncludedObjectVersions -> ()
$crnf :: InventoryIncludedObjectVersions -> ()
Prelude.NFData,
      Text -> Either String InventoryIncludedObjectVersions
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String InventoryIncludedObjectVersions
$cfromText :: Text -> Either String InventoryIncludedObjectVersions
Data.FromText,
      InventoryIncludedObjectVersions -> Text
forall a. (a -> Text) -> ToText a
toText :: InventoryIncludedObjectVersions -> Text
$ctoText :: InventoryIncludedObjectVersions -> Text
Data.ToText,
      InventoryIncludedObjectVersions -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: InventoryIncludedObjectVersions -> ByteString
$ctoBS :: InventoryIncludedObjectVersions -> ByteString
Data.ToByteString,
      InventoryIncludedObjectVersions -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: InventoryIncludedObjectVersions -> ByteStringBuilder
$cbuild :: InventoryIncludedObjectVersions -> ByteStringBuilder
Data.ToLog,
      HeaderName -> InventoryIncludedObjectVersions -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> InventoryIncludedObjectVersions -> [Header]
$ctoHeader :: HeaderName -> InventoryIncludedObjectVersions -> [Header]
Data.ToHeader,
      InventoryIncludedObjectVersions -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: InventoryIncludedObjectVersions -> QueryString
$ctoQuery :: InventoryIncludedObjectVersions -> QueryString
Data.ToQuery,
      Value -> Parser [InventoryIncludedObjectVersions]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [InventoryIncludedObjectVersions]
FromJSONKeyFunction InventoryIncludedObjectVersions
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [InventoryIncludedObjectVersions]
$cfromJSONKeyList :: FromJSONKeyFunction [InventoryIncludedObjectVersions]
fromJSONKey :: FromJSONKeyFunction InventoryIncludedObjectVersions
$cfromJSONKey :: FromJSONKeyFunction InventoryIncludedObjectVersions
Data.FromJSONKey,
      [InventoryIncludedObjectVersions] -> Encoding
[InventoryIncludedObjectVersions] -> Value
InventoryIncludedObjectVersions -> Encoding
InventoryIncludedObjectVersions -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [InventoryIncludedObjectVersions]
ToJSONKeyFunction InventoryIncludedObjectVersions
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [InventoryIncludedObjectVersions]
$ctoJSONKeyList :: ToJSONKeyFunction [InventoryIncludedObjectVersions]
toJSONKey :: ToJSONKeyFunction InventoryIncludedObjectVersions
$ctoJSONKey :: ToJSONKeyFunction InventoryIncludedObjectVersions
Data.ToJSONKey,
      [Node] -> Either String InventoryIncludedObjectVersions
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String InventoryIncludedObjectVersions
$cparseXML :: [Node] -> Either String InventoryIncludedObjectVersions
Data.FromXML,
      InventoryIncludedObjectVersions -> XML
forall a. (a -> XML) -> ToXML a
toXML :: InventoryIncludedObjectVersions -> XML
$ctoXML :: InventoryIncludedObjectVersions -> XML
Data.ToXML
    )

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

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

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