AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateBucketRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/AccessRules.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lightsail/model/BucketAccessLogConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Lightsail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LIGHTSAIL_API UpdateBucketRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateBucket"; }
34
35 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
45 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
46 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
47 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
48 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
49 inline UpdateBucketRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
50 inline UpdateBucketRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
51 inline UpdateBucketRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
53
55
59 inline const AccessRules& GetAccessRules() const{ return m_accessRules; }
60 inline bool AccessRulesHasBeenSet() const { return m_accessRulesHasBeenSet; }
61 inline void SetAccessRules(const AccessRules& value) { m_accessRulesHasBeenSet = true; m_accessRules = value; }
62 inline void SetAccessRules(AccessRules&& value) { m_accessRulesHasBeenSet = true; m_accessRules = std::move(value); }
63 inline UpdateBucketRequest& WithAccessRules(const AccessRules& value) { SetAccessRules(value); return *this;}
64 inline UpdateBucketRequest& WithAccessRules(AccessRules&& value) { SetAccessRules(std::move(value)); return *this;}
66
68
76 inline const Aws::String& GetVersioning() const{ return m_versioning; }
77 inline bool VersioningHasBeenSet() const { return m_versioningHasBeenSet; }
78 inline void SetVersioning(const Aws::String& value) { m_versioningHasBeenSet = true; m_versioning = value; }
79 inline void SetVersioning(Aws::String&& value) { m_versioningHasBeenSet = true; m_versioning = std::move(value); }
80 inline void SetVersioning(const char* value) { m_versioningHasBeenSet = true; m_versioning.assign(value); }
81 inline UpdateBucketRequest& WithVersioning(const Aws::String& value) { SetVersioning(value); return *this;}
82 inline UpdateBucketRequest& WithVersioning(Aws::String&& value) { SetVersioning(std::move(value)); return *this;}
83 inline UpdateBucketRequest& WithVersioning(const char* value) { SetVersioning(value); return *this;}
85
87
92 inline const Aws::Vector<Aws::String>& GetReadonlyAccessAccounts() const{ return m_readonlyAccessAccounts; }
93 inline bool ReadonlyAccessAccountsHasBeenSet() const { return m_readonlyAccessAccountsHasBeenSet; }
94 inline void SetReadonlyAccessAccounts(const Aws::Vector<Aws::String>& value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts = value; }
95 inline void SetReadonlyAccessAccounts(Aws::Vector<Aws::String>&& value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts = std::move(value); }
98 inline UpdateBucketRequest& AddReadonlyAccessAccounts(const Aws::String& value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts.push_back(value); return *this; }
99 inline UpdateBucketRequest& AddReadonlyAccessAccounts(Aws::String&& value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts.push_back(std::move(value)); return *this; }
100 inline UpdateBucketRequest& AddReadonlyAccessAccounts(const char* value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts.push_back(value); return *this; }
102
104
107 inline const BucketAccessLogConfig& GetAccessLogConfig() const{ return m_accessLogConfig; }
108 inline bool AccessLogConfigHasBeenSet() const { return m_accessLogConfigHasBeenSet; }
109 inline void SetAccessLogConfig(const BucketAccessLogConfig& value) { m_accessLogConfigHasBeenSet = true; m_accessLogConfig = value; }
110 inline void SetAccessLogConfig(BucketAccessLogConfig&& value) { m_accessLogConfigHasBeenSet = true; m_accessLogConfig = std::move(value); }
112 inline UpdateBucketRequest& WithAccessLogConfig(BucketAccessLogConfig&& value) { SetAccessLogConfig(std::move(value)); return *this;}
114 private:
115
116 Aws::String m_bucketName;
117 bool m_bucketNameHasBeenSet = false;
118
119 AccessRules m_accessRules;
120 bool m_accessRulesHasBeenSet = false;
121
122 Aws::String m_versioning;
123 bool m_versioningHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_readonlyAccessAccounts;
126 bool m_readonlyAccessAccountsHasBeenSet = false;
127
128 BucketAccessLogConfig m_accessLogConfig;
129 bool m_accessLogConfigHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Lightsail
134} // namespace Aws
UpdateBucketRequest & WithAccessRules(AccessRules &&value)
UpdateBucketRequest & AddReadonlyAccessAccounts(const Aws::String &value)
void SetReadonlyAccessAccounts(const Aws::Vector< Aws::String > &value)
void SetAccessLogConfig(BucketAccessLogConfig &&value)
void SetBucketName(const Aws::String &value)
UpdateBucketRequest & WithBucketName(const char *value)
UpdateBucketRequest & WithAccessLogConfig(BucketAccessLogConfig &&value)
UpdateBucketRequest & WithBucketName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetReadonlyAccessAccounts() const
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
void SetVersioning(const Aws::String &value)
void SetAccessRules(const AccessRules &value)
UpdateBucketRequest & WithReadonlyAccessAccounts(Aws::Vector< Aws::String > &&value)
void SetReadonlyAccessAccounts(Aws::Vector< Aws::String > &&value)
UpdateBucketRequest & WithVersioning(const char *value)
UpdateBucketRequest & WithReadonlyAccessAccounts(const Aws::Vector< Aws::String > &value)
UpdateBucketRequest & WithVersioning(Aws::String &&value)
UpdateBucketRequest & WithAccessRules(const AccessRules &value)
virtual const char * GetServiceRequestName() const override
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateBucketRequest & AddReadonlyAccessAccounts(Aws::String &&value)
void SetAccessLogConfig(const BucketAccessLogConfig &value)
const BucketAccessLogConfig & GetAccessLogConfig() const
UpdateBucketRequest & WithAccessLogConfig(const BucketAccessLogConfig &value)
UpdateBucketRequest & WithVersioning(const Aws::String &value)
UpdateBucketRequest & AddReadonlyAccessAccounts(const char *value)
UpdateBucketRequest & WithBucketName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector