AWS SDK for C++  1.9.104
AWS SDK for C++
PutStorageLensConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace S3Control
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "PutStorageLensConfiguration"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetConfigId() const{ return m_configId; }
44 
48  inline bool ConfigIdHasBeenSet() const { return m_configIdHasBeenSet; }
49 
53  inline void SetConfigId(const Aws::String& value) { m_configIdHasBeenSet = true; m_configId = value; }
54 
58  inline void SetConfigId(Aws::String&& value) { m_configIdHasBeenSet = true; m_configId = std::move(value); }
59 
63  inline void SetConfigId(const char* value) { m_configIdHasBeenSet = true; m_configId.assign(value); }
64 
68  inline PutStorageLensConfigurationRequest& WithConfigId(const Aws::String& value) { SetConfigId(value); return *this;}
69 
73  inline PutStorageLensConfigurationRequest& WithConfigId(Aws::String&& value) { SetConfigId(std::move(value)); return *this;}
74 
78  inline PutStorageLensConfigurationRequest& WithConfigId(const char* value) { SetConfigId(value); return *this;}
79 
80 
84  inline const Aws::String& GetAccountId() const{ return m_accountId; }
85 
89  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
90 
94  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
95 
99  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
100 
104  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
105 
109  inline PutStorageLensConfigurationRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
110 
114  inline PutStorageLensConfigurationRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
115 
119  inline PutStorageLensConfigurationRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
120 
121 
125  inline const StorageLensConfiguration& GetStorageLensConfiguration() const{ return m_storageLensConfiguration; }
126 
130  inline bool StorageLensConfigurationHasBeenSet() const { return m_storageLensConfigurationHasBeenSet; }
131 
135  inline void SetStorageLensConfiguration(const StorageLensConfiguration& value) { m_storageLensConfigurationHasBeenSet = true; m_storageLensConfiguration = value; }
136 
140  inline void SetStorageLensConfiguration(StorageLensConfiguration&& value) { m_storageLensConfigurationHasBeenSet = true; m_storageLensConfiguration = std::move(value); }
141 
145  inline PutStorageLensConfigurationRequest& WithStorageLensConfiguration(const StorageLensConfiguration& value) { SetStorageLensConfiguration(value); return *this;}
146 
150  inline PutStorageLensConfigurationRequest& WithStorageLensConfiguration(StorageLensConfiguration&& value) { SetStorageLensConfiguration(std::move(value)); return *this;}
151 
152 
157  inline const Aws::Vector<StorageLensTag>& GetTags() const{ return m_tags; }
158 
163  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 
169  inline void SetTags(const Aws::Vector<StorageLensTag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
170 
175  inline void SetTags(Aws::Vector<StorageLensTag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
176 
181  inline PutStorageLensConfigurationRequest& WithTags(const Aws::Vector<StorageLensTag>& value) { SetTags(value); return *this;}
182 
187  inline PutStorageLensConfigurationRequest& WithTags(Aws::Vector<StorageLensTag>&& value) { SetTags(std::move(value)); return *this;}
188 
193  inline PutStorageLensConfigurationRequest& AddTags(const StorageLensTag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
194 
199  inline PutStorageLensConfigurationRequest& AddTags(StorageLensTag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
200 
201  private:
202 
203  Aws::String m_configId;
204  bool m_configIdHasBeenSet;
205 
206  Aws::String m_accountId;
207  bool m_accountIdHasBeenSet;
208 
209  StorageLensConfiguration m_storageLensConfiguration;
210  bool m_storageLensConfigurationHasBeenSet;
211 
213  bool m_tagsHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace S3Control
218 } // namespace Aws
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetAccountId
void SetAccountId(const char *value)
Definition: PutStorageLensConfigurationRequest.h:104
Aws::S3Control::Model::PutStorageLensConfigurationRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: PutStorageLensConfigurationRequest.h:163
StorageLensTag.h
Aws::S3Control::S3ControlRequest
Definition: S3ControlRequest.h:17
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetConfigId
void SetConfigId(Aws::String &&value)
Definition: PutStorageLensConfigurationRequest.h:58
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::S3Control::Model::PutStorageLensConfigurationRequest::GetConfigId
const Aws::String & GetConfigId() const
Definition: PutStorageLensConfigurationRequest.h:43
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithConfigId
PutStorageLensConfigurationRequest & WithConfigId(const Aws::String &value)
Definition: PutStorageLensConfigurationRequest.h:68
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetStorageLensConfiguration
void SetStorageLensConfiguration(StorageLensConfiguration &&value)
Definition: PutStorageLensConfigurationRequest.h:140
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithConfigId
PutStorageLensConfigurationRequest & WithConfigId(Aws::String &&value)
Definition: PutStorageLensConfigurationRequest.h:73
Aws::S3Control::Model::PutStorageLensConfigurationRequest::AddTags
PutStorageLensConfigurationRequest & AddTags(StorageLensTag &&value)
Definition: PutStorageLensConfigurationRequest.h:199
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: PutStorageLensConfigurationRequest.h:94
AWSVector.h
S3Control_EXPORTS.h
Aws::S3Control::Model::PutStorageLensConfigurationRequest::AddTags
PutStorageLensConfigurationRequest & AddTags(const StorageLensTag &value)
Definition: PutStorageLensConfigurationRequest.h:193
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithAccountId
PutStorageLensConfigurationRequest & WithAccountId(const char *value)
Definition: PutStorageLensConfigurationRequest.h:119
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetTags
void SetTags(const Aws::Vector< StorageLensTag > &value)
Definition: PutStorageLensConfigurationRequest.h:169
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithAccountId
PutStorageLensConfigurationRequest & WithAccountId(const Aws::String &value)
Definition: PutStorageLensConfigurationRequest.h:109
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithAccountId
PutStorageLensConfigurationRequest & WithAccountId(Aws::String &&value)
Definition: PutStorageLensConfigurationRequest.h:114
AWS_S3CONTROL_API
#define AWS_S3CONTROL_API
Definition: S3Control_EXPORTS.h:28
Aws::S3Control::Model::PutStorageLensConfigurationRequest::GetStorageLensConfiguration
const StorageLensConfiguration & GetStorageLensConfiguration() const
Definition: PutStorageLensConfigurationRequest.h:125
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithStorageLensConfiguration
PutStorageLensConfigurationRequest & WithStorageLensConfiguration(StorageLensConfiguration &&value)
Definition: PutStorageLensConfigurationRequest.h:150
Aws::S3Control::Model::StorageLensTag
Definition: StorageLensTag.h:31
AWSString.h
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetTags
void SetTags(Aws::Vector< StorageLensTag > &&value)
Definition: PutStorageLensConfigurationRequest.h:175
Aws::S3Control::Model::PutStorageLensConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutStorageLensConfigurationRequest.h:33
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithTags
PutStorageLensConfigurationRequest & WithTags(Aws::Vector< StorageLensTag > &&value)
Definition: PutStorageLensConfigurationRequest.h:187
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetConfigId
void SetConfigId(const Aws::String &value)
Definition: PutStorageLensConfigurationRequest.h:53
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: PutStorageLensConfigurationRequest.h:99
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithTags
PutStorageLensConfigurationRequest & WithTags(const Aws::Vector< StorageLensTag > &value)
Definition: PutStorageLensConfigurationRequest.h:181
Aws::S3Control::Model::PutStorageLensConfigurationRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: PutStorageLensConfigurationRequest.h:84
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithStorageLensConfiguration
PutStorageLensConfigurationRequest & WithStorageLensConfiguration(const StorageLensConfiguration &value)
Definition: PutStorageLensConfigurationRequest.h:145
Aws::S3Control::Model::PutStorageLensConfigurationRequest::StorageLensConfigurationHasBeenSet
bool StorageLensConfigurationHasBeenSet() const
Definition: PutStorageLensConfigurationRequest.h:130
Aws
Definition: AccessManagementClient.h:15
Aws::S3Control::Model::PutStorageLensConfigurationRequest::WithConfigId
PutStorageLensConfigurationRequest & WithConfigId(const char *value)
Definition: PutStorageLensConfigurationRequest.h:78
Aws::S3Control::Model::PutStorageLensConfigurationRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetStorageLensConfiguration
void SetStorageLensConfiguration(const StorageLensConfiguration &value)
Definition: PutStorageLensConfigurationRequest.h:135
Aws::S3Control::Model::PutStorageLensConfigurationRequest
Definition: PutStorageLensConfigurationRequest.h:25
Aws::S3Control::Model::PutStorageLensConfigurationRequest::GetTags
const Aws::Vector< StorageLensTag > & GetTags() const
Definition: PutStorageLensConfigurationRequest.h:157
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
S3ControlRequest.h
Aws::S3Control::Model::PutStorageLensConfigurationRequest::ConfigIdHasBeenSet
bool ConfigIdHasBeenSet() const
Definition: PutStorageLensConfigurationRequest.h:48
StorageLensConfiguration.h
Aws::S3Control::Model::PutStorageLensConfigurationRequest::SetConfigId
void SetConfigId(const char *value)
Definition: PutStorageLensConfigurationRequest.h:63
Aws::S3Control::Model::PutStorageLensConfigurationRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: PutStorageLensConfigurationRequest.h:89
Aws::S3Control::Model::StorageLensConfiguration
Definition: StorageLensConfiguration.h:37
Aws::S3Control::Model::PutStorageLensConfigurationRequest::PutStorageLensConfigurationRequest
PutStorageLensConfigurationRequest()