AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutBucketLifecycleConfigurationRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3control/model/LifecycleConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace S3Control
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_S3CONTROL_API PutBucketLifecycleConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutBucketLifecycleConfiguration"; }
32
33 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
34
36
37 AWS_S3CONTROL_API inline bool ShouldComputeContentMd5() const override { return true; }
38
42 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
43
45
48 inline const Aws::String& GetAccountId() const { return m_accountId; }
49 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
50 template<typename AccountIdT = Aws::String>
51 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
52 template<typename AccountIdT = Aws::String>
53 PutBucketLifecycleConfigurationRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
64 template<typename BucketT = Aws::String>
65 PutBucketLifecycleConfigurationRequest& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
67
69
72 inline const LifecycleConfiguration& GetLifecycleConfiguration() const { return m_lifecycleConfiguration; }
73 inline bool LifecycleConfigurationHasBeenSet() const { return m_lifecycleConfigurationHasBeenSet; }
74 template<typename LifecycleConfigurationT = LifecycleConfiguration>
75 void SetLifecycleConfiguration(LifecycleConfigurationT&& value) { m_lifecycleConfigurationHasBeenSet = true; m_lifecycleConfiguration = std::forward<LifecycleConfigurationT>(value); }
76 template<typename LifecycleConfigurationT = LifecycleConfiguration>
77 PutBucketLifecycleConfigurationRequest& WithLifecycleConfiguration(LifecycleConfigurationT&& value) { SetLifecycleConfiguration(std::forward<LifecycleConfigurationT>(value)); return *this;}
79 private:
80
81 Aws::String m_accountId;
82 bool m_accountIdHasBeenSet = false;
83
84 Aws::String m_bucket;
85 bool m_bucketHasBeenSet = false;
86
87 LifecycleConfiguration m_lifecycleConfiguration;
88 bool m_lifecycleConfigurationHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace S3Control
93} // 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