AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutBucketAccelerateConfigurationRequest.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/S3CrtRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/AccelerateConfiguration.h>
11#include <aws/s3-crt/model/ChecksumAlgorithm.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace S3Crt
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "PutBucketAccelerateConfiguration"; }
38
39 AWS_S3CRT_API Aws::String SerializePayload() const override;
40
41 AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
45 AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
46 AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;
47
51 AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override;
52
54
57 inline const Aws::String& GetBucket() const{ return m_bucket; }
58 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
59 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
60 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
61 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
62 inline PutBucketAccelerateConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
63 inline PutBucketAccelerateConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
64 inline PutBucketAccelerateConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
66
68
71 inline const AccelerateConfiguration& GetAccelerateConfiguration() const{ return m_accelerateConfiguration; }
72 inline bool AccelerateConfigurationHasBeenSet() const { return m_accelerateConfigurationHasBeenSet; }
73 inline void SetAccelerateConfiguration(const AccelerateConfiguration& value) { m_accelerateConfigurationHasBeenSet = true; m_accelerateConfiguration = value; }
74 inline void SetAccelerateConfiguration(AccelerateConfiguration&& value) { m_accelerateConfigurationHasBeenSet = true; m_accelerateConfiguration = std::move(value); }
78
80
85 inline const Aws::String& GetExpectedBucketOwner() const{ return m_expectedBucketOwner; }
86 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
87 inline void SetExpectedBucketOwner(const Aws::String& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = value; }
88 inline void SetExpectedBucketOwner(Aws::String&& value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner = std::move(value); }
89 inline void SetExpectedBucketOwner(const char* value) { m_expectedBucketOwnerHasBeenSet = true; m_expectedBucketOwner.assign(value); }
94
96
108 inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
109 inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
110 inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
111 inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
115
117
118 inline const Aws::Map<Aws::String, Aws::String>& GetCustomizedAccessLogTag() const{ return m_customizedAccessLogTag; }
119 inline bool CustomizedAccessLogTagHasBeenSet() const { return m_customizedAccessLogTagHasBeenSet; }
120 inline void SetCustomizedAccessLogTag(const Aws::Map<Aws::String, Aws::String>& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = value; }
121 inline void SetCustomizedAccessLogTag(Aws::Map<Aws::String, Aws::String>&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag = std::move(value); }
124 inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
125 inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const Aws::String& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
126 inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(const Aws::String& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
127 inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), std::move(value)); return *this; }
128 inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(const char* key, Aws::String&& value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, std::move(value)); return *this; }
129 inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(Aws::String&& key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(std::move(key), value); return *this; }
130 inline PutBucketAccelerateConfigurationRequest& AddCustomizedAccessLogTag(const char* key, const char* value) { m_customizedAccessLogTagHasBeenSet = true; m_customizedAccessLogTag.emplace(key, value); return *this; }
132 private:
133
134 Aws::String m_bucket;
135 bool m_bucketHasBeenSet = false;
136
137 AccelerateConfiguration m_accelerateConfiguration;
138 bool m_accelerateConfigurationHasBeenSet = false;
139
140 Aws::String m_expectedBucketOwner;
141 bool m_expectedBucketOwnerHasBeenSet = false;
142
143 ChecksumAlgorithm m_checksumAlgorithm;
144 bool m_checksumAlgorithmHasBeenSet = false;
145
146 Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
147 bool m_customizedAccessLogTagHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace S3Crt
152} // namespace Aws
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override
PutBucketAccelerateConfigurationRequest & WithBucket(const Aws::String &value)
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, Aws::String &&value)
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, const Aws::String &value)
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const Aws::String &value)
void SetCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
PutBucketAccelerateConfigurationRequest & WithExpectedBucketOwner(Aws::String &&value)
PutBucketAccelerateConfigurationRequest & WithChecksumAlgorithm(ChecksumAlgorithm &&value)
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(const char *key, const char *value)
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(Aws::String &&key, const char *value)
PutBucketAccelerateConfigurationRequest & WithExpectedBucketOwner(const Aws::String &value)
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override
PutBucketAccelerateConfigurationRequest & WithBucket(const char *value)
void SetCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
AWS_S3CRT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetCustomizedAccessLogTag() const
PutBucketAccelerateConfigurationRequest & WithCustomizedAccessLogTag(Aws::Map< Aws::String, Aws::String > &&value)
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(const char *key, Aws::String &&value)
PutBucketAccelerateConfigurationRequest & WithAccelerateConfiguration(const AccelerateConfiguration &value)
AWS_S3CRT_API Aws::String SerializePayload() const override
PutBucketAccelerateConfigurationRequest & AddCustomizedAccessLogTag(const Aws::String &key, Aws::String &&value)
PutBucketAccelerateConfigurationRequest & WithExpectedBucketOwner(const char *value)
AWS_S3CRT_API EndpointParameters GetEndpointContextParams() const override
PutBucketAccelerateConfigurationRequest & WithChecksumAlgorithm(const ChecksumAlgorithm &value)
PutBucketAccelerateConfigurationRequest & WithAccelerateConfiguration(AccelerateConfiguration &&value)
AWS_S3CRT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutBucketAccelerateConfigurationRequest & WithBucket(Aws::String &&value)
PutBucketAccelerateConfigurationRequest & WithCustomizedAccessLogTag(const Aws::Map< Aws::String, Aws::String > &value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String