AWS SDK for C++  1.9.108
AWS SDK for C++
UpdateBucketRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Lightsail
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateBucket"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
43 
47  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
48 
52  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
53 
57  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
58 
62  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
63 
67  inline UpdateBucketRequest& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
68 
72  inline UpdateBucketRequest& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
73 
77  inline UpdateBucketRequest& WithBucketName(const char* value) { SetBucketName(value); return *this;}
78 
79 
84  inline const AccessRules& GetAccessRules() const{ return m_accessRules; }
85 
90  inline bool AccessRulesHasBeenSet() const { return m_accessRulesHasBeenSet; }
91 
96  inline void SetAccessRules(const AccessRules& value) { m_accessRulesHasBeenSet = true; m_accessRules = value; }
97 
102  inline void SetAccessRules(AccessRules&& value) { m_accessRulesHasBeenSet = true; m_accessRules = std::move(value); }
103 
108  inline UpdateBucketRequest& WithAccessRules(const AccessRules& value) { SetAccessRules(value); return *this;}
109 
114  inline UpdateBucketRequest& WithAccessRules(AccessRules&& value) { SetAccessRules(std::move(value)); return *this;}
115 
116 
125  inline const Aws::String& GetVersioning() const{ return m_versioning; }
126 
135  inline bool VersioningHasBeenSet() const { return m_versioningHasBeenSet; }
136 
145  inline void SetVersioning(const Aws::String& value) { m_versioningHasBeenSet = true; m_versioning = value; }
146 
155  inline void SetVersioning(Aws::String&& value) { m_versioningHasBeenSet = true; m_versioning = std::move(value); }
156 
165  inline void SetVersioning(const char* value) { m_versioningHasBeenSet = true; m_versioning.assign(value); }
166 
175  inline UpdateBucketRequest& WithVersioning(const Aws::String& value) { SetVersioning(value); return *this;}
176 
185  inline UpdateBucketRequest& WithVersioning(Aws::String&& value) { SetVersioning(std::move(value)); return *this;}
186 
195  inline UpdateBucketRequest& WithVersioning(const char* value) { SetVersioning(value); return *this;}
196 
197 
202  inline const Aws::Vector<Aws::String>& GetReadonlyAccessAccounts() const{ return m_readonlyAccessAccounts; }
203 
208  inline bool ReadonlyAccessAccountsHasBeenSet() const { return m_readonlyAccessAccountsHasBeenSet; }
209 
214  inline void SetReadonlyAccessAccounts(const Aws::Vector<Aws::String>& value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts = value; }
215 
220  inline void SetReadonlyAccessAccounts(Aws::Vector<Aws::String>&& value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts = std::move(value); }
221 
226  inline UpdateBucketRequest& WithReadonlyAccessAccounts(const Aws::Vector<Aws::String>& value) { SetReadonlyAccessAccounts(value); return *this;}
227 
232  inline UpdateBucketRequest& WithReadonlyAccessAccounts(Aws::Vector<Aws::String>&& value) { SetReadonlyAccessAccounts(std::move(value)); return *this;}
233 
238  inline UpdateBucketRequest& AddReadonlyAccessAccounts(const Aws::String& value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts.push_back(value); return *this; }
239 
244  inline UpdateBucketRequest& AddReadonlyAccessAccounts(Aws::String&& value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts.push_back(std::move(value)); return *this; }
245 
250  inline UpdateBucketRequest& AddReadonlyAccessAccounts(const char* value) { m_readonlyAccessAccountsHasBeenSet = true; m_readonlyAccessAccounts.push_back(value); return *this; }
251 
252  private:
253 
254  Aws::String m_bucketName;
255  bool m_bucketNameHasBeenSet;
256 
257  AccessRules m_accessRules;
258  bool m_accessRulesHasBeenSet;
259 
260  Aws::String m_versioning;
261  bool m_versioningHasBeenSet;
262 
263  Aws::Vector<Aws::String> m_readonlyAccessAccounts;
264  bool m_readonlyAccessAccountsHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace Lightsail
269 } // namespace Aws
Aws::Lightsail::Model::UpdateBucketRequest::AddReadonlyAccessAccounts
UpdateBucketRequest & AddReadonlyAccessAccounts(const Aws::String &value)
Definition: UpdateBucketRequest.h:238
Aws::Lightsail::Model::UpdateBucketRequest::VersioningHasBeenSet
bool VersioningHasBeenSet() const
Definition: UpdateBucketRequest.h:135
Aws::Lightsail::Model::UpdateBucketRequest::WithBucketName
UpdateBucketRequest & WithBucketName(Aws::String &&value)
Definition: UpdateBucketRequest.h:72
Aws::Lightsail::Model::UpdateBucketRequest::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: UpdateBucketRequest.h:52
Aws::Lightsail::Model::UpdateBucketRequest::UpdateBucketRequest
UpdateBucketRequest()
Aws::Lightsail::Model::UpdateBucketRequest::WithVersioning
UpdateBucketRequest & WithVersioning(const char *value)
Definition: UpdateBucketRequest.h:195
Aws::Lightsail::Model::UpdateBucketRequest::GetVersioning
const Aws::String & GetVersioning() const
Definition: UpdateBucketRequest.h:125
Aws::Lightsail::Model::UpdateBucketRequest::WithReadonlyAccessAccounts
UpdateBucketRequest & WithReadonlyAccessAccounts(Aws::Vector< Aws::String > &&value)
Definition: UpdateBucketRequest.h:232
Aws::Lightsail::Model::UpdateBucketRequest::WithBucketName
UpdateBucketRequest & WithBucketName(const Aws::String &value)
Definition: UpdateBucketRequest.h:67
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::UpdateBucketRequest::AddReadonlyAccessAccounts
UpdateBucketRequest & AddReadonlyAccessAccounts(Aws::String &&value)
Definition: UpdateBucketRequest.h:244
Aws::Lightsail::Model::UpdateBucketRequest::GetAccessRules
const AccessRules & GetAccessRules() const
Definition: UpdateBucketRequest.h:84
Aws::Lightsail::Model::UpdateBucketRequest::SetReadonlyAccessAccounts
void SetReadonlyAccessAccounts(const Aws::Vector< Aws::String > &value)
Definition: UpdateBucketRequest.h:214
Aws::Lightsail::Model::UpdateBucketRequest::AddReadonlyAccessAccounts
UpdateBucketRequest & AddReadonlyAccessAccounts(const char *value)
Definition: UpdateBucketRequest.h:250
Aws::Lightsail::Model::UpdateBucketRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::UpdateBucketRequest::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: UpdateBucketRequest.h:47
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Lightsail::Model::UpdateBucketRequest::SetVersioning
void SetVersioning(const Aws::String &value)
Definition: UpdateBucketRequest.h:145
Aws::Lightsail::Model::UpdateBucketRequest::WithVersioning
UpdateBucketRequest & WithVersioning(Aws::String &&value)
Definition: UpdateBucketRequest.h:185
LightsailRequest.h
Aws::Lightsail::Model::UpdateBucketRequest::SetVersioning
void SetVersioning(Aws::String &&value)
Definition: UpdateBucketRequest.h:155
Aws::Lightsail::Model::UpdateBucketRequest::SetReadonlyAccessAccounts
void SetReadonlyAccessAccounts(Aws::Vector< Aws::String > &&value)
Definition: UpdateBucketRequest.h:220
Aws::Lightsail::Model::UpdateBucketRequest
Definition: UpdateBucketRequest.h:24
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::UpdateBucketRequest::GetReadonlyAccessAccounts
const Aws::Vector< Aws::String > & GetReadonlyAccessAccounts() const
Definition: UpdateBucketRequest.h:202
Aws::Lightsail::Model::UpdateBucketRequest::GetBucketName
const Aws::String & GetBucketName() const
Definition: UpdateBucketRequest.h:42
AWSString.h
Aws::Lightsail::Model::UpdateBucketRequest::SetAccessRules
void SetAccessRules(const AccessRules &value)
Definition: UpdateBucketRequest.h:96
Aws::Lightsail::Model::UpdateBucketRequest::WithReadonlyAccessAccounts
UpdateBucketRequest & WithReadonlyAccessAccounts(const Aws::Vector< Aws::String > &value)
Definition: UpdateBucketRequest.h:226
Aws::Lightsail::Model::UpdateBucketRequest::SetAccessRules
void SetAccessRules(AccessRules &&value)
Definition: UpdateBucketRequest.h:102
Lightsail_EXPORTS.h
AccessRules.h
Aws::Lightsail::Model::UpdateBucketRequest::WithAccessRules
UpdateBucketRequest & WithAccessRules(AccessRules &&value)
Definition: UpdateBucketRequest.h:114
Aws::Lightsail::Model::UpdateBucketRequest::ReadonlyAccessAccountsHasBeenSet
bool ReadonlyAccessAccountsHasBeenSet() const
Definition: UpdateBucketRequest.h:208
Aws::Lightsail::Model::AccessRules
Definition: AccessRules.h:36
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::UpdateBucketRequest::WithVersioning
UpdateBucketRequest & WithVersioning(const Aws::String &value)
Definition: UpdateBucketRequest.h:175
Aws::Lightsail::Model::UpdateBucketRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateBucketRequest.h:32
Aws::Lightsail::Model::UpdateBucketRequest::SetVersioning
void SetVersioning(const char *value)
Definition: UpdateBucketRequest.h:165
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::UpdateBucketRequest::SetBucketName
void SetBucketName(const char *value)
Definition: UpdateBucketRequest.h:62
Aws::Lightsail::Model::UpdateBucketRequest::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: UpdateBucketRequest.h:57
Aws::Lightsail::Model::UpdateBucketRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::UpdateBucketRequest::AccessRulesHasBeenSet
bool AccessRulesHasBeenSet() const
Definition: UpdateBucketRequest.h:90
Aws::Lightsail::Model::UpdateBucketRequest::WithBucketName
UpdateBucketRequest & WithBucketName(const char *value)
Definition: UpdateBucketRequest.h:77
Aws::Lightsail::Model::UpdateBucketRequest::WithAccessRules
UpdateBucketRequest & WithAccessRules(const AccessRules &value)
Definition: UpdateBucketRequest.h:108