AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
51 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
52 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
54 inline PutBucketLifecycleConfigurationRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
55 inline PutBucketLifecycleConfigurationRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
57
59
62 inline const Aws::String& GetBucket() const{ return m_bucket; }
63 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
64 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
65 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
66 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
67 inline PutBucketLifecycleConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
68 inline PutBucketLifecycleConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
69 inline PutBucketLifecycleConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
71
73
76 inline const LifecycleConfiguration& GetLifecycleConfiguration() const{ return m_lifecycleConfiguration; }
77 inline bool LifecycleConfigurationHasBeenSet() const { return m_lifecycleConfigurationHasBeenSet; }
78 inline void SetLifecycleConfiguration(const LifecycleConfiguration& value) { m_lifecycleConfigurationHasBeenSet = true; m_lifecycleConfiguration = value; }
79 inline void SetLifecycleConfiguration(LifecycleConfiguration&& value) { m_lifecycleConfigurationHasBeenSet = true; m_lifecycleConfiguration = std::move(value); }
83 private:
84
85 Aws::String m_accountId;
86 bool m_accountIdHasBeenSet = false;
87
88 Aws::String m_bucket;
89 bool m_bucketHasBeenSet = false;
90
91 LifecycleConfiguration m_lifecycleConfiguration;
92 bool m_lifecycleConfigurationHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace S3Control
97} // namespace Aws
PutBucketLifecycleConfigurationRequest & WithLifecycleConfiguration(LifecycleConfiguration &&value)
PutBucketLifecycleConfigurationRequest & WithBucket(const Aws::String &value)
PutBucketLifecycleConfigurationRequest & WithBucket(Aws::String &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
PutBucketLifecycleConfigurationRequest & WithAccountId(const char *value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutBucketLifecycleConfigurationRequest & WithLifecycleConfiguration(const LifecycleConfiguration &value)
PutBucketLifecycleConfigurationRequest & WithAccountId(Aws::String &&value)
PutBucketLifecycleConfigurationRequest & WithAccountId(const Aws::String &value)
PutBucketLifecycleConfigurationRequest & WithBucket(const char *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