AWS SDK for C++  1.9.107
AWS SDK for C++
CreateLogGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CloudWatchLogs
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 "CreateLogGroup"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
42 
46  inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
47 
51  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
52 
56  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
57 
61  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
62 
66  inline CreateLogGroupRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
67 
71  inline CreateLogGroupRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
72 
76  inline CreateLogGroupRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
77 
78 
85  inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
86 
93  inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
94 
101  inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
102 
109  inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
110 
117  inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
118 
125  inline CreateLogGroupRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
126 
133  inline CreateLogGroupRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
134 
141  inline CreateLogGroupRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
142 
143 
153  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
154 
164  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
165 
175  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
176 
186  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
187 
197  inline CreateLogGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
198 
208  inline CreateLogGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
209 
219  inline CreateLogGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
220 
230  inline CreateLogGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
231 
241  inline CreateLogGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
242 
252  inline CreateLogGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
253 
263  inline CreateLogGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
264 
274  inline CreateLogGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
275 
285  inline CreateLogGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
286 
287  private:
288 
289  Aws::String m_logGroupName;
290  bool m_logGroupNameHasBeenSet;
291 
292  Aws::String m_kmsKeyId;
293  bool m_kmsKeyIdHasBeenSet;
294 
296  bool m_tagsHasBeenSet;
297  };
298 
299 } // namespace Model
300 } // namespace CloudWatchLogs
301 } // namespace Aws
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::KmsKeyIdHasBeenSet
bool KmsKeyIdHasBeenSet() const
Definition: CreateLogGroupRequest.h:93
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SetLogGroupName
void SetLogGroupName(const char *value)
Definition: CreateLogGroupRequest.h:61
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CloudWatchLogs::Model::CreateLogGroupRequest
Definition: CreateLogGroupRequest.h:23
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SetKmsKeyId
void SetKmsKeyId(const Aws::String &value)
Definition: CreateLogGroupRequest.h:101
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::CreateLogGroupRequest
CreateLogGroupRequest()
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateLogGroupRequest.h:186
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateLogGroupRequest.h:175
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::AddTags
CreateLogGroupRequest & AddTags(const char *key, const char *value)
Definition: CreateLogGroupRequest.h:285
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::WithKmsKeyId
CreateLogGroupRequest & WithKmsKeyId(Aws::String &&value)
Definition: CreateLogGroupRequest.h:133
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::WithLogGroupName
CreateLogGroupRequest & WithLogGroupName(Aws::String &&value)
Definition: CreateLogGroupRequest.h:71
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SetLogGroupName
void SetLogGroupName(const Aws::String &value)
Definition: CreateLogGroupRequest.h:51
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::WithLogGroupName
CreateLogGroupRequest & WithLogGroupName(const char *value)
Definition: CreateLogGroupRequest.h:76
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::AddTags
CreateLogGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateLogGroupRequest.h:219
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::LogGroupNameHasBeenSet
bool LogGroupNameHasBeenSet() const
Definition: CreateLogGroupRequest.h:46
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::WithTags
CreateLogGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateLogGroupRequest.h:197
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateLogGroupRequest.h:31
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SetKmsKeyId
void SetKmsKeyId(const char *value)
Definition: CreateLogGroupRequest.h:117
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::WithKmsKeyId
CreateLogGroupRequest & WithKmsKeyId(const char *value)
Definition: CreateLogGroupRequest.h:141
Aws::CloudWatchLogs::CloudWatchLogsRequest
Definition: CloudWatchLogsRequest.h:17
AWSString.h
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::WithKmsKeyId
CreateLogGroupRequest & WithKmsKeyId(const Aws::String &value)
Definition: CreateLogGroupRequest.h:125
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::AddTags
CreateLogGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateLogGroupRequest.h:252
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::AddTags
CreateLogGroupRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateLogGroupRequest.h:263
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SetLogGroupName
void SetLogGroupName(Aws::String &&value)
Definition: CreateLogGroupRequest.h:56
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::GetKmsKeyId
const Aws::String & GetKmsKeyId() const
Definition: CreateLogGroupRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::AddTags
CreateLogGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateLogGroupRequest.h:241
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::WithLogGroupName
CreateLogGroupRequest & WithLogGroupName(const Aws::String &value)
Definition: CreateLogGroupRequest.h:66
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::SetKmsKeyId
void SetKmsKeyId(Aws::String &&value)
Definition: CreateLogGroupRequest.h:109
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::WithTags
CreateLogGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateLogGroupRequest.h:208
CloudWatchLogsRequest.h
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::GetLogGroupName
const Aws::String & GetLogGroupName() const
Definition: CreateLogGroupRequest.h:41
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateLogGroupRequest.h:164
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::AddTags
CreateLogGroupRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateLogGroupRequest.h:274
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::AddTags
CreateLogGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateLogGroupRequest.h:230
AWSMap.h
Aws::CloudWatchLogs::Model::CreateLogGroupRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateLogGroupRequest.h:153
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19