AWS SDK for C++  1.8.127
AWS SDK for C++
PutBucketLifecycleConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace S3Control
16 {
17 namespace 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::String SerializePayload() const override;
34 
36 
37  inline bool ShouldComputeContentMd5() const override { return true; }
38 
39 
43  inline const Aws::String& GetAccountId() const{ return m_accountId; }
44 
48  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 
53  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 
58  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
59 
63  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
64 
68  inline PutBucketLifecycleConfigurationRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 
73  inline PutBucketLifecycleConfigurationRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
74 
78  inline PutBucketLifecycleConfigurationRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
79 
80 
84  inline const Aws::String& GetBucket() const{ return m_bucket; }
85 
89  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
90 
94  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
95 
99  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
100 
104  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
105 
109  inline PutBucketLifecycleConfigurationRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
110 
114  inline PutBucketLifecycleConfigurationRequest& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
115 
119  inline PutBucketLifecycleConfigurationRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
120 
121 
125  inline const LifecycleConfiguration& GetLifecycleConfiguration() const{ return m_lifecycleConfiguration; }
126 
130  inline bool LifecycleConfigurationHasBeenSet() const { return m_lifecycleConfigurationHasBeenSet; }
131 
135  inline void SetLifecycleConfiguration(const LifecycleConfiguration& value) { m_lifecycleConfigurationHasBeenSet = true; m_lifecycleConfiguration = value; }
136 
140  inline void SetLifecycleConfiguration(LifecycleConfiguration&& value) { m_lifecycleConfigurationHasBeenSet = true; m_lifecycleConfiguration = std::move(value); }
141 
145  inline PutBucketLifecycleConfigurationRequest& WithLifecycleConfiguration(const LifecycleConfiguration& value) { SetLifecycleConfiguration(value); return *this;}
146 
150  inline PutBucketLifecycleConfigurationRequest& WithLifecycleConfiguration(LifecycleConfiguration&& value) { SetLifecycleConfiguration(std::move(value)); return *this;}
151 
152  private:
153 
154  Aws::String m_accountId;
155  bool m_accountIdHasBeenSet;
156 
157  Aws::String m_bucket;
158  bool m_bucketHasBeenSet;
159 
160  LifecycleConfiguration m_lifecycleConfiguration;
161  bool m_lifecycleConfigurationHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace S3Control
166 } // namespace Aws
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
LifecycleConfiguration.h
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::WithLifecycleConfiguration
PutBucketLifecycleConfigurationRequest & WithLifecycleConfiguration(LifecycleConfiguration &&value)
Definition: PutBucketLifecycleConfigurationRequest.h:150
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::ShouldComputeContentMd5
bool ShouldComputeContentMd5() const override
Definition: PutBucketLifecycleConfigurationRequest.h:37
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::GetBucket
const Aws::String & GetBucket() const
Definition: PutBucketLifecycleConfigurationRequest.h:84
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::PutBucketLifecycleConfigurationRequest
PutBucketLifecycleConfigurationRequest()
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SetBucket
void SetBucket(const char *value)
Definition: PutBucketLifecycleConfigurationRequest.h:104
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: PutBucketLifecycleConfigurationRequest.h:53
S3Control_EXPORTS.h
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::WithBucket
PutBucketLifecycleConfigurationRequest & WithBucket(Aws::String &&value)
Definition: PutBucketLifecycleConfigurationRequest.h:114
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: PutBucketLifecycleConfigurationRequest.h:43
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest
Definition: PutBucketLifecycleConfigurationRequest.h:23
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::WithAccountId
PutBucketLifecycleConfigurationRequest & WithAccountId(Aws::String &&value)
Definition: PutBucketLifecycleConfigurationRequest.h:73
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SetBucket
void SetBucket(const Aws::String &value)
Definition: PutBucketLifecycleConfigurationRequest.h:94
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::WithBucket
PutBucketLifecycleConfigurationRequest & WithBucket(const Aws::String &value)
Definition: PutBucketLifecycleConfigurationRequest.h:109
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::GetLifecycleConfiguration
const LifecycleConfiguration & GetLifecycleConfiguration() const
Definition: PutBucketLifecycleConfigurationRequest.h:125
AWSString.h
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::WithLifecycleConfiguration
PutBucketLifecycleConfigurationRequest & WithLifecycleConfiguration(const LifecycleConfiguration &value)
Definition: PutBucketLifecycleConfigurationRequest.h:145
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SetAccountId
void SetAccountId(const char *value)
Definition: PutBucketLifecycleConfigurationRequest.h:63
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: PutBucketLifecycleConfigurationRequest.h:48
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutBucketLifecycleConfigurationRequest.h:31
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SetLifecycleConfiguration
void SetLifecycleConfiguration(const LifecycleConfiguration &value)
Definition: PutBucketLifecycleConfigurationRequest.h:135
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::LifecycleConfigurationHasBeenSet
bool LifecycleConfigurationHasBeenSet() const
Definition: PutBucketLifecycleConfigurationRequest.h:130
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::WithAccountId
PutBucketLifecycleConfigurationRequest & WithAccountId(const char *value)
Definition: PutBucketLifecycleConfigurationRequest.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SetBucket
void SetBucket(Aws::String &&value)
Definition: PutBucketLifecycleConfigurationRequest.h:99
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SetLifecycleConfiguration
void SetLifecycleConfiguration(LifecycleConfiguration &&value)
Definition: PutBucketLifecycleConfigurationRequest.h:140
Aws::S3Control::Model::LifecycleConfiguration
Definition: LifecycleConfiguration.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::WithBucket
PutBucketLifecycleConfigurationRequest & WithBucket(const char *value)
Definition: PutBucketLifecycleConfigurationRequest.h:119
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::WithAccountId
PutBucketLifecycleConfigurationRequest & WithAccountId(const Aws::String &value)
Definition: PutBucketLifecycleConfigurationRequest.h:68
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: PutBucketLifecycleConfigurationRequest.h:58
Aws::S3Control::Model::PutBucketLifecycleConfigurationRequest::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: PutBucketLifecycleConfigurationRequest.h:89