AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketVersioningRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/VersioningConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace S3Control
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_S3CONTROL_API PutBucketVersioningRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutBucketVersioning"; }
32
33 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
34
36
37 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
38
42 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
43
45
48 inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
53 inline PutBucketVersioningRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
54 inline PutBucketVersioningRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline PutBucketVersioningRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
62 inline const Aws::String& GetBucket() const{ return m_bucket; }
63 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
64 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
65 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
66 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
67 inline PutBucketVersioningRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
68 inline PutBucketVersioningRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
69 inline PutBucketVersioningRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
71
73
77 inline const Aws::String& GetMFA() const{ return m_mFA; }
78 inline bool MFAHasBeenSet() const { return m_mFAHasBeenSet; }
79 inline void SetMFA(const Aws::String& value) { m_mFAHasBeenSet = true; m_mFA = value; }
80 inline void SetMFA(Aws::String&& value) { m_mFAHasBeenSet = true; m_mFA = std::move(value); }
81 inline void SetMFA(const char* value) { m_mFAHasBeenSet = true; m_mFA.assign(value); }
82 inline PutBucketVersioningRequest& WithMFA(const Aws::String& value) { SetMFA(value); return *this;}
83 inline PutBucketVersioningRequest& WithMFA(Aws::String&& value) { SetMFA(std::move(value)); return *this;}
84 inline PutBucketVersioningRequest& WithMFA(const char* value) { SetMFA(value); return *this;}
86
88
92 inline const VersioningConfiguration& GetVersioningConfiguration() const{ return m_versioningConfiguration; }
93 inline bool VersioningConfigurationHasBeenSet() const { return m_versioningConfigurationHasBeenSet; }
94 inline void SetVersioningConfiguration(const VersioningConfiguration& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = value; }
95 inline void SetVersioningConfiguration(VersioningConfiguration&& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = std::move(value); }
99 private:
100
101 Aws::String m_accountId;
102 bool m_accountIdHasBeenSet = false;
103
104 Aws::String m_bucket;
105 bool m_bucketHasBeenSet = false;
106
107 Aws::String m_mFA;
108 bool m_mFAHasBeenSet = false;
109
110 VersioningConfiguration m_versioningConfiguration;
111 bool m_versioningConfigurationHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace S3Control
116} // namespace Aws
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetVersioningConfiguration(const VersioningConfiguration &value)
PutBucketVersioningRequest & WithVersioningConfiguration(VersioningConfiguration &&value)
PutBucketVersioningRequest & WithMFA(Aws::String &&value)
PutBucketVersioningRequest & WithBucket(const Aws::String &value)
PutBucketVersioningRequest & WithMFA(const char *value)
void SetVersioningConfiguration(VersioningConfiguration &&value)
AWS_S3CONTROL_API bool ShouldComputeContentMd5() const override
PutBucketVersioningRequest & WithAccountId(const Aws::String &value)
PutBucketVersioningRequest & WithBucket(Aws::String &&value)
const VersioningConfiguration & GetVersioningConfiguration() const
AWS_S3CONTROL_API Aws::String SerializePayload() const override
PutBucketVersioningRequest & WithAccountId(const char *value)
PutBucketVersioningRequest & WithVersioningConfiguration(const VersioningConfiguration &value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
PutBucketVersioningRequest & WithAccountId(Aws::String &&value)
PutBucketVersioningRequest & WithBucket(const char *value)
PutBucketVersioningRequest & WithMFA(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String