AWS SDK for C++  1.8.127
AWS SDK for C++
GetBucketRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace S3Control
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetBucket"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetAccountId() const{ return m_accountId; }
41 
45  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
46 
50  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 
55  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
56 
60  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
61 
65  inline GetBucketRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
66 
70  inline GetBucketRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
71 
75  inline GetBucketRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
76 
77 
90  inline const Aws::String& GetBucket() const{ return m_bucket; }
91 
104  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
105 
118  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
119 
132  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
133 
146  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
147 
160  inline GetBucketRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
161 
174  inline GetBucketRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
175 
188  inline GetBucketRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
189 
190  private:
191 
192  Aws::String m_accountId;
193  bool m_accountIdHasBeenSet;
194 
195  Aws::String m_bucket;
196  bool m_bucketHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace S3Control
201 } // namespace Aws
Aws::S3Control::Model::GetBucketRequest::GetBucketRequest
GetBucketRequest()
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::S3Control::Model::GetBucketRequest::WithBucket
GetBucketRequest & WithBucket(const char *value)
Definition: GetBucketRequest.h:188
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::GetBucketRequest
Definition: GetBucketRequest.h:22
Aws::S3Control::Model::GetBucketRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetBucketRequest.h:30
Aws::S3Control::Model::GetBucketRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: GetBucketRequest.h:104
Aws::S3Control::Model::GetBucketRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: GetBucketRequest.h:50
Aws::S3Control::Model::GetBucketRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: GetBucketRequest.h:40
Aws::S3Control::Model::GetBucketRequest::WithAccountId
GetBucketRequest & WithAccountId(const Aws::String &value)
Definition: GetBucketRequest.h:65
S3Control_EXPORTS.h
Aws::S3Control::Model::GetBucketRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::GetBucketRequest::WithBucket
GetBucketRequest & WithBucket(const Aws::String &value)
Definition: GetBucketRequest.h:160
Aws::S3Control::Model::GetBucketRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: GetBucketRequest.h:118
Aws::S3Control::Model::GetBucketRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Control::Model::GetBucketRequest::WithAccountId
GetBucketRequest & WithAccountId(const char *value)
Definition: GetBucketRequest.h:75
Aws::S3Control::Model::GetBucketRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: GetBucketRequest.h:132
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::GetBucketRequest::WithBucket
GetBucketRequest & WithBucket(Aws::String &&value)
Definition: GetBucketRequest.h:174
AWSString.h
Aws::S3Control::Model::GetBucketRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: GetBucketRequest.h:45
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::GetBucketRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: GetBucketRequest.h:55
Aws::S3Control::Model::GetBucketRequest::SetBucket
void SetBucket(const char *value)
Definition: GetBucketRequest.h:146
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::GetBucketRequest::WithAccountId
GetBucketRequest & WithAccountId(Aws::String &&value)
Definition: GetBucketRequest.h:70
Aws::S3Control::Model::GetBucketRequest::SetAccountId
void SetAccountId(const char *value)
Definition: GetBucketRequest.h:60
Aws::S3Control::Model::GetBucketRequest::GetBucket
const Aws::String & GetBucket() const
Definition: GetBucketRequest.h:90