AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetBucketVersioningRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace S3Control {
15namespace Model {
16
20 public:
21 AWS_S3CONTROL_API GetBucketVersioningRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetBucketVersioning"; }
28
29 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
30
32
36 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
37
39
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetBucket() const { return m_bucket; }
61 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
62 template <typename BucketT = Aws::String>
63 void SetBucket(BucketT&& value) {
64 m_bucketHasBeenSet = true;
65 m_bucket = std::forward<BucketT>(value);
66 }
67 template <typename BucketT = Aws::String>
69 SetBucket(std::forward<BucketT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_accountId;
75
76 Aws::String m_bucket;
77 bool m_accountIdHasBeenSet = false;
78 bool m_bucketHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace S3Control
83} // namespace Aws
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetBucketVersioningRequest & WithBucket(BucketT &&value)
virtual const char * GetServiceRequestName() const override
GetBucketVersioningRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
AWS_S3CONTROL_API GetBucketVersioningRequest()=default
AWS_S3CONTROL_API Aws::String SerializePayload() 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