AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PutBucketLifecycleConfigurationRequest.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#include <aws/s3control/model/LifecycleConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Control {
16namespace Model {
17
21 public:
22 AWS_S3CONTROL_API PutBucketLifecycleConfigurationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutBucketLifecycleConfiguration"; }
29
30 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
31
33
34 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
35
39 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
40
42
45 inline const Aws::String& GetAccountId() const { return m_accountId; }
46 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
47 template <typename AccountIdT = Aws::String>
48 void SetAccountId(AccountIdT&& value) {
49 m_accountIdHasBeenSet = true;
50 m_accountId = std::forward<AccountIdT>(value);
51 }
52 template <typename AccountIdT = Aws::String>
54 SetAccountId(std::forward<AccountIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetBucket() const { return m_bucket; }
64 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
65 template <typename BucketT = Aws::String>
66 void SetBucket(BucketT&& value) {
67 m_bucketHasBeenSet = true;
68 m_bucket = std::forward<BucketT>(value);
69 }
70 template <typename BucketT = Aws::String>
72 SetBucket(std::forward<BucketT>(value));
73 return *this;
74 }
76
78
81 inline const LifecycleConfiguration& GetLifecycleConfiguration() const { return m_lifecycleConfiguration; }
82 inline bool LifecycleConfigurationHasBeenSet() const { return m_lifecycleConfigurationHasBeenSet; }
83 template <typename LifecycleConfigurationT = LifecycleConfiguration>
84 void SetLifecycleConfiguration(LifecycleConfigurationT&& value) {
85 m_lifecycleConfigurationHasBeenSet = true;
86 m_lifecycleConfiguration = std::forward<LifecycleConfigurationT>(value);
87 }
88 template <typename LifecycleConfigurationT = LifecycleConfiguration>
90 SetLifecycleConfiguration(std::forward<LifecycleConfigurationT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_accountId;
96
97 Aws::String m_bucket;
98
99 LifecycleConfiguration m_lifecycleConfiguration;
100 bool m_accountIdHasBeenSet = false;
101 bool m_bucketHasBeenSet = false;
102 bool m_lifecycleConfigurationHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace S3Control
107} // namespace Aws
PutBucketLifecycleConfigurationRequest & WithLifecycleConfiguration(LifecycleConfigurationT &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
PutBucketLifecycleConfigurationRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketLifecycleConfigurationRequest & WithBucket(BucketT &&value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() 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