{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.S3.PutBucketVersioning
-- 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)
--
-- Sets the versioning state of an existing bucket. To set the versioning
-- state, you must be the bucket owner.
--
-- You can set the versioning state with one of the following values:
--
-- __Enabled__—Enables versioning for the objects in the bucket. All
-- objects added to the bucket receive a unique version ID.
--
-- __Suspended__—Disables versioning for the objects in the bucket. All
-- objects added to the bucket receive the version ID null.
--
-- If the versioning state has never been set on a bucket, it has no
-- versioning state; a
-- <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html GetBucketVersioning>
-- request does not return a versioning state value.
--
-- If the bucket owner enables MFA Delete in the bucket versioning
-- configuration, the bucket owner must include the @x-amz-mfa request@
-- header and the @Status@ and the @MfaDelete@ request elements in a
-- request to set the versioning state of the bucket.
--
-- If you have an object expiration lifecycle policy in your non-versioned
-- bucket and you want to maintain the same permanent delete behavior when
-- you enable versioning, you must add a noncurrent expiration policy. The
-- noncurrent expiration lifecycle policy will manage the deletes of the
-- noncurrent object versions in the version-enabled bucket. (A
-- version-enabled bucket maintains one current and zero or more noncurrent
-- object versions.) For more information, see
-- <https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html#lifecycle-and-other-bucket-config Lifecycle and Versioning>.
--
-- __Related Resources__
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucket.html CreateBucket>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html DeleteBucket>
--
-- -   <https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketVersioning.html GetBucketVersioning>
module Amazonka.S3.PutBucketVersioning
  ( -- * Creating a Request
    PutBucketVersioning (..),
    newPutBucketVersioning,

    -- * Request Lenses
    putBucketVersioning_mfa,
    putBucketVersioning_contentMD5,
    putBucketVersioning_expectedBucketOwner,
    putBucketVersioning_bucket,
    putBucketVersioning_versioningConfiguration,

    -- * Destructuring the Response
    PutBucketVersioningResponse (..),
    newPutBucketVersioningResponse,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.S3.Types

-- | /See:/ 'newPutBucketVersioning' smart constructor.
data PutBucketVersioning = PutBucketVersioning'
  { -- | The concatenation of the authentication device\'s serial number, a
    -- space, and the value that is displayed on your authentication device.
    PutBucketVersioning -> Maybe Text
mfa :: Prelude.Maybe Prelude.Text,
    -- | >The base64-encoded 128-bit MD5 digest of the data. You must use this
    -- header as a message integrity check to verify that the request body was
    -- not corrupted in transit. For more information, see
    -- <http://www.ietf.org/rfc/rfc1864.txt RFC 1864>.
    --
    -- For requests made using the Amazon Web Services Command Line Interface
    -- (CLI) or Amazon Web Services SDKs, this field is calculated
    -- automatically.
    PutBucketVersioning -> Maybe Text
contentMD5 :: Prelude.Maybe Prelude.Text,
    -- | The account ID of the expected bucket owner. If the bucket is owned by a
    -- different account, the request will fail with an HTTP
    -- @403 (Access Denied)@ error.
    PutBucketVersioning -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
    -- | The bucket name.
    PutBucketVersioning -> BucketName
bucket :: BucketName,
    -- | Container for setting the versioning state.
    PutBucketVersioning -> VersioningConfiguration
versioningConfiguration :: VersioningConfiguration
  }
  deriving (PutBucketVersioning -> PutBucketVersioning -> Bool
(PutBucketVersioning -> PutBucketVersioning -> Bool)
-> (PutBucketVersioning -> PutBucketVersioning -> Bool)
-> Eq PutBucketVersioning
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutBucketVersioning -> PutBucketVersioning -> Bool
$c/= :: PutBucketVersioning -> PutBucketVersioning -> Bool
== :: PutBucketVersioning -> PutBucketVersioning -> Bool
$c== :: PutBucketVersioning -> PutBucketVersioning -> Bool
Prelude.Eq, ReadPrec [PutBucketVersioning]
ReadPrec PutBucketVersioning
Int -> ReadS PutBucketVersioning
ReadS [PutBucketVersioning]
(Int -> ReadS PutBucketVersioning)
-> ReadS [PutBucketVersioning]
-> ReadPrec PutBucketVersioning
-> ReadPrec [PutBucketVersioning]
-> Read PutBucketVersioning
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutBucketVersioning]
$creadListPrec :: ReadPrec [PutBucketVersioning]
readPrec :: ReadPrec PutBucketVersioning
$creadPrec :: ReadPrec PutBucketVersioning
readList :: ReadS [PutBucketVersioning]
$creadList :: ReadS [PutBucketVersioning]
readsPrec :: Int -> ReadS PutBucketVersioning
$creadsPrec :: Int -> ReadS PutBucketVersioning
Prelude.Read, Int -> PutBucketVersioning -> ShowS
[PutBucketVersioning] -> ShowS
PutBucketVersioning -> String
(Int -> PutBucketVersioning -> ShowS)
-> (PutBucketVersioning -> String)
-> ([PutBucketVersioning] -> ShowS)
-> Show PutBucketVersioning
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutBucketVersioning] -> ShowS
$cshowList :: [PutBucketVersioning] -> ShowS
show :: PutBucketVersioning -> String
$cshow :: PutBucketVersioning -> String
showsPrec :: Int -> PutBucketVersioning -> ShowS
$cshowsPrec :: Int -> PutBucketVersioning -> ShowS
Prelude.Show, (forall x. PutBucketVersioning -> Rep PutBucketVersioning x)
-> (forall x. Rep PutBucketVersioning x -> PutBucketVersioning)
-> Generic PutBucketVersioning
forall x. Rep PutBucketVersioning x -> PutBucketVersioning
forall x. PutBucketVersioning -> Rep PutBucketVersioning x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutBucketVersioning x -> PutBucketVersioning
$cfrom :: forall x. PutBucketVersioning -> Rep PutBucketVersioning x
Prelude.Generic)

-- |
-- Create a value of 'PutBucketVersioning' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'mfa', 'putBucketVersioning_mfa' - The concatenation of the authentication device\'s serial number, a
-- space, and the value that is displayed on your authentication device.
--
-- 'contentMD5', 'putBucketVersioning_contentMD5' - >The base64-encoded 128-bit MD5 digest of the data. You must use this
-- header as a message integrity check to verify that the request body was
-- not corrupted in transit. For more information, see
-- <http://www.ietf.org/rfc/rfc1864.txt RFC 1864>.
--
-- For requests made using the Amazon Web Services Command Line Interface
-- (CLI) or Amazon Web Services SDKs, this field is calculated
-- automatically.
--
-- 'expectedBucketOwner', 'putBucketVersioning_expectedBucketOwner' - The account ID of the expected bucket owner. If the bucket is owned by a
-- different account, the request will fail with an HTTP
-- @403 (Access Denied)@ error.
--
-- 'bucket', 'putBucketVersioning_bucket' - The bucket name.
--
-- 'versioningConfiguration', 'putBucketVersioning_versioningConfiguration' - Container for setting the versioning state.
newPutBucketVersioning ::
  -- | 'bucket'
  BucketName ->
  -- | 'versioningConfiguration'
  VersioningConfiguration ->
  PutBucketVersioning
newPutBucketVersioning :: BucketName -> VersioningConfiguration -> PutBucketVersioning
newPutBucketVersioning
  BucketName
pBucket_
  VersioningConfiguration
pVersioningConfiguration_ =
    PutBucketVersioning' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> BucketName
-> VersioningConfiguration
-> PutBucketVersioning
PutBucketVersioning'
      { $sel:mfa:PutBucketVersioning' :: Maybe Text
mfa = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:contentMD5:PutBucketVersioning' :: Maybe Text
contentMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:expectedBucketOwner:PutBucketVersioning' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:bucket:PutBucketVersioning' :: BucketName
bucket = BucketName
pBucket_,
        $sel:versioningConfiguration:PutBucketVersioning' :: VersioningConfiguration
versioningConfiguration = VersioningConfiguration
pVersioningConfiguration_
      }

-- | The concatenation of the authentication device\'s serial number, a
-- space, and the value that is displayed on your authentication device.
putBucketVersioning_mfa :: Lens.Lens' PutBucketVersioning (Prelude.Maybe Prelude.Text)
putBucketVersioning_mfa :: (Maybe Text -> f (Maybe Text))
-> PutBucketVersioning -> f PutBucketVersioning
putBucketVersioning_mfa = (PutBucketVersioning -> Maybe Text)
-> (PutBucketVersioning -> Maybe Text -> PutBucketVersioning)
-> Lens
     PutBucketVersioning PutBucketVersioning (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketVersioning' {Maybe Text
mfa :: Maybe Text
$sel:mfa:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
mfa} -> Maybe Text
mfa) (\s :: PutBucketVersioning
s@PutBucketVersioning' {} Maybe Text
a -> PutBucketVersioning
s {$sel:mfa:PutBucketVersioning' :: Maybe Text
mfa = Maybe Text
a} :: PutBucketVersioning)

-- | >The base64-encoded 128-bit MD5 digest of the data. You must use this
-- header as a message integrity check to verify that the request body was
-- not corrupted in transit. For more information, see
-- <http://www.ietf.org/rfc/rfc1864.txt RFC 1864>.
--
-- For requests made using the Amazon Web Services Command Line Interface
-- (CLI) or Amazon Web Services SDKs, this field is calculated
-- automatically.
putBucketVersioning_contentMD5 :: Lens.Lens' PutBucketVersioning (Prelude.Maybe Prelude.Text)
putBucketVersioning_contentMD5 :: (Maybe Text -> f (Maybe Text))
-> PutBucketVersioning -> f PutBucketVersioning
putBucketVersioning_contentMD5 = (PutBucketVersioning -> Maybe Text)
-> (PutBucketVersioning -> Maybe Text -> PutBucketVersioning)
-> Lens
     PutBucketVersioning PutBucketVersioning (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketVersioning' {Maybe Text
contentMD5 :: Maybe Text
$sel:contentMD5:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
contentMD5} -> Maybe Text
contentMD5) (\s :: PutBucketVersioning
s@PutBucketVersioning' {} Maybe Text
a -> PutBucketVersioning
s {$sel:contentMD5:PutBucketVersioning' :: Maybe Text
contentMD5 = Maybe Text
a} :: PutBucketVersioning)

-- | The account ID of the expected bucket owner. If the bucket is owned by a
-- different account, the request will fail with an HTTP
-- @403 (Access Denied)@ error.
putBucketVersioning_expectedBucketOwner :: Lens.Lens' PutBucketVersioning (Prelude.Maybe Prelude.Text)
putBucketVersioning_expectedBucketOwner :: (Maybe Text -> f (Maybe Text))
-> PutBucketVersioning -> f PutBucketVersioning
putBucketVersioning_expectedBucketOwner = (PutBucketVersioning -> Maybe Text)
-> (PutBucketVersioning -> Maybe Text -> PutBucketVersioning)
-> Lens
     PutBucketVersioning PutBucketVersioning (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketVersioning' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: PutBucketVersioning
s@PutBucketVersioning' {} Maybe Text
a -> PutBucketVersioning
s {$sel:expectedBucketOwner:PutBucketVersioning' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: PutBucketVersioning)

-- | The bucket name.
putBucketVersioning_bucket :: Lens.Lens' PutBucketVersioning BucketName
putBucketVersioning_bucket :: (BucketName -> f BucketName)
-> PutBucketVersioning -> f PutBucketVersioning
putBucketVersioning_bucket = (PutBucketVersioning -> BucketName)
-> (PutBucketVersioning -> BucketName -> PutBucketVersioning)
-> Lens
     PutBucketVersioning PutBucketVersioning BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketVersioning' {BucketName
bucket :: BucketName
$sel:bucket:PutBucketVersioning' :: PutBucketVersioning -> BucketName
bucket} -> BucketName
bucket) (\s :: PutBucketVersioning
s@PutBucketVersioning' {} BucketName
a -> PutBucketVersioning
s {$sel:bucket:PutBucketVersioning' :: BucketName
bucket = BucketName
a} :: PutBucketVersioning)

-- | Container for setting the versioning state.
putBucketVersioning_versioningConfiguration :: Lens.Lens' PutBucketVersioning VersioningConfiguration
putBucketVersioning_versioningConfiguration :: (VersioningConfiguration -> f VersioningConfiguration)
-> PutBucketVersioning -> f PutBucketVersioning
putBucketVersioning_versioningConfiguration = (PutBucketVersioning -> VersioningConfiguration)
-> (PutBucketVersioning
    -> VersioningConfiguration -> PutBucketVersioning)
-> Lens
     PutBucketVersioning
     PutBucketVersioning
     VersioningConfiguration
     VersioningConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutBucketVersioning' {VersioningConfiguration
versioningConfiguration :: VersioningConfiguration
$sel:versioningConfiguration:PutBucketVersioning' :: PutBucketVersioning -> VersioningConfiguration
versioningConfiguration} -> VersioningConfiguration
versioningConfiguration) (\s :: PutBucketVersioning
s@PutBucketVersioning' {} VersioningConfiguration
a -> PutBucketVersioning
s {$sel:versioningConfiguration:PutBucketVersioning' :: VersioningConfiguration
versioningConfiguration = VersioningConfiguration
a} :: PutBucketVersioning)

instance Core.AWSRequest PutBucketVersioning where
  type
    AWSResponse PutBucketVersioning =
      PutBucketVersioningResponse
  request :: PutBucketVersioning -> Request PutBucketVersioning
request =
    Request PutBucketVersioning -> Request PutBucketVersioning
forall a. Request a -> Request a
Request.s3vhost
      (Request PutBucketVersioning -> Request PutBucketVersioning)
-> (PutBucketVersioning -> Request PutBucketVersioning)
-> PutBucketVersioning
-> Request PutBucketVersioning
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> PutBucketVersioning -> Request PutBucketVersioning
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.putXML Service
defaultService
  response :: Logger
-> Service
-> Proxy PutBucketVersioning
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutBucketVersioning)))
response =
    AWSResponse PutBucketVersioning
-> Logger
-> Service
-> Proxy PutBucketVersioning
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse PutBucketVersioning)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull AWSResponse PutBucketVersioning
PutBucketVersioningResponse
PutBucketVersioningResponse'

instance Prelude.Hashable PutBucketVersioning

instance Prelude.NFData PutBucketVersioning

instance Core.ToElement PutBucketVersioning where
  toElement :: PutBucketVersioning -> Element
toElement PutBucketVersioning' {Maybe Text
BucketName
VersioningConfiguration
versioningConfiguration :: VersioningConfiguration
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
mfa :: Maybe Text
$sel:versioningConfiguration:PutBucketVersioning' :: PutBucketVersioning -> VersioningConfiguration
$sel:bucket:PutBucketVersioning' :: PutBucketVersioning -> BucketName
$sel:expectedBucketOwner:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
$sel:contentMD5:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
$sel:mfa:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
..} =
    Name -> VersioningConfiguration -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
      Name
"{http://s3.amazonaws.com/doc/2006-03-01/}VersioningConfiguration"
      VersioningConfiguration
versioningConfiguration

instance Core.ToHeaders PutBucketVersioning where
  toHeaders :: PutBucketVersioning -> [Header]
toHeaders PutBucketVersioning' {Maybe Text
BucketName
VersioningConfiguration
versioningConfiguration :: VersioningConfiguration
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
mfa :: Maybe Text
$sel:versioningConfiguration:PutBucketVersioning' :: PutBucketVersioning -> VersioningConfiguration
$sel:bucket:PutBucketVersioning' :: PutBucketVersioning -> BucketName
$sel:expectedBucketOwner:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
$sel:contentMD5:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
$sel:mfa:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
..} =
    [[Header]] -> [Header]
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ HeaderName
"x-amz-mfa" HeaderName -> Maybe Text -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# Maybe Text
mfa,
        HeaderName
"Content-MD5" HeaderName -> Maybe Text -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# Maybe Text
contentMD5,
        HeaderName
"x-amz-expected-bucket-owner"
          HeaderName -> Maybe Text -> [Header]
forall a. ToHeader a => HeaderName -> a -> [Header]
Core.=# Maybe Text
expectedBucketOwner
      ]

instance Core.ToPath PutBucketVersioning where
  toPath :: PutBucketVersioning -> ByteString
toPath PutBucketVersioning' {Maybe Text
BucketName
VersioningConfiguration
versioningConfiguration :: VersioningConfiguration
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
mfa :: Maybe Text
$sel:versioningConfiguration:PutBucketVersioning' :: PutBucketVersioning -> VersioningConfiguration
$sel:bucket:PutBucketVersioning' :: PutBucketVersioning -> BucketName
$sel:expectedBucketOwner:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
$sel:contentMD5:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
$sel:mfa:PutBucketVersioning' :: PutBucketVersioning -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/", BucketName -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS BucketName
bucket]

instance Core.ToQuery PutBucketVersioning where
  toQuery :: PutBucketVersioning -> QueryString
toQuery =
    QueryString -> PutBucketVersioning -> QueryString
forall a b. a -> b -> a
Prelude.const ([QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [QueryString
"versioning"])

-- | /See:/ 'newPutBucketVersioningResponse' smart constructor.
data PutBucketVersioningResponse = PutBucketVersioningResponse'
  {
  }
  deriving (PutBucketVersioningResponse -> PutBucketVersioningResponse -> Bool
(PutBucketVersioningResponse
 -> PutBucketVersioningResponse -> Bool)
-> (PutBucketVersioningResponse
    -> PutBucketVersioningResponse -> Bool)
-> Eq PutBucketVersioningResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutBucketVersioningResponse -> PutBucketVersioningResponse -> Bool
$c/= :: PutBucketVersioningResponse -> PutBucketVersioningResponse -> Bool
== :: PutBucketVersioningResponse -> PutBucketVersioningResponse -> Bool
$c== :: PutBucketVersioningResponse -> PutBucketVersioningResponse -> Bool
Prelude.Eq, ReadPrec [PutBucketVersioningResponse]
ReadPrec PutBucketVersioningResponse
Int -> ReadS PutBucketVersioningResponse
ReadS [PutBucketVersioningResponse]
(Int -> ReadS PutBucketVersioningResponse)
-> ReadS [PutBucketVersioningResponse]
-> ReadPrec PutBucketVersioningResponse
-> ReadPrec [PutBucketVersioningResponse]
-> Read PutBucketVersioningResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutBucketVersioningResponse]
$creadListPrec :: ReadPrec [PutBucketVersioningResponse]
readPrec :: ReadPrec PutBucketVersioningResponse
$creadPrec :: ReadPrec PutBucketVersioningResponse
readList :: ReadS [PutBucketVersioningResponse]
$creadList :: ReadS [PutBucketVersioningResponse]
readsPrec :: Int -> ReadS PutBucketVersioningResponse
$creadsPrec :: Int -> ReadS PutBucketVersioningResponse
Prelude.Read, Int -> PutBucketVersioningResponse -> ShowS
[PutBucketVersioningResponse] -> ShowS
PutBucketVersioningResponse -> String
(Int -> PutBucketVersioningResponse -> ShowS)
-> (PutBucketVersioningResponse -> String)
-> ([PutBucketVersioningResponse] -> ShowS)
-> Show PutBucketVersioningResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutBucketVersioningResponse] -> ShowS
$cshowList :: [PutBucketVersioningResponse] -> ShowS
show :: PutBucketVersioningResponse -> String
$cshow :: PutBucketVersioningResponse -> String
showsPrec :: Int -> PutBucketVersioningResponse -> ShowS
$cshowsPrec :: Int -> PutBucketVersioningResponse -> ShowS
Prelude.Show, (forall x.
 PutBucketVersioningResponse -> Rep PutBucketVersioningResponse x)
-> (forall x.
    Rep PutBucketVersioningResponse x -> PutBucketVersioningResponse)
-> Generic PutBucketVersioningResponse
forall x.
Rep PutBucketVersioningResponse x -> PutBucketVersioningResponse
forall x.
PutBucketVersioningResponse -> Rep PutBucketVersioningResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutBucketVersioningResponse x -> PutBucketVersioningResponse
$cfrom :: forall x.
PutBucketVersioningResponse -> Rep PutBucketVersioningResponse x
Prelude.Generic)

-- |
-- Create a value of 'PutBucketVersioningResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
newPutBucketVersioningResponse ::
  PutBucketVersioningResponse
newPutBucketVersioningResponse :: PutBucketVersioningResponse
newPutBucketVersioningResponse =
  PutBucketVersioningResponse
PutBucketVersioningResponse'

instance Prelude.NFData PutBucketVersioningResponse