AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateLogGroupRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/logs/model/LogGroupClass.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API CreateLogGroupRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateLogGroup"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
44 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
45 inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
46 inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::move(value); }
47 inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
48 inline CreateLogGroupRequest& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
49 inline CreateLogGroupRequest& WithLogGroupName(Aws::String&& value) { SetLogGroupName(std::move(value)); return *this;}
50 inline CreateLogGroupRequest& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
52
54
60 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
61 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
62 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
63 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
64 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
65 inline CreateLogGroupRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
66 inline CreateLogGroupRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
67 inline CreateLogGroupRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
69
71
84 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
87 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
88 inline CreateLogGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
89 inline CreateLogGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
90 inline CreateLogGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
91 inline CreateLogGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
92 inline CreateLogGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
93 inline CreateLogGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
94 inline CreateLogGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
95 inline CreateLogGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
96 inline CreateLogGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
98
100
112 inline const LogGroupClass& GetLogGroupClass() const{ return m_logGroupClass; }
113 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
114 inline void SetLogGroupClass(const LogGroupClass& value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = value; }
115 inline void SetLogGroupClass(LogGroupClass&& value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = std::move(value); }
116 inline CreateLogGroupRequest& WithLogGroupClass(const LogGroupClass& value) { SetLogGroupClass(value); return *this;}
117 inline CreateLogGroupRequest& WithLogGroupClass(LogGroupClass&& value) { SetLogGroupClass(std::move(value)); return *this;}
119 private:
120
121 Aws::String m_logGroupName;
122 bool m_logGroupNameHasBeenSet = false;
123
124 Aws::String m_kmsKeyId;
125 bool m_kmsKeyIdHasBeenSet = false;
126
128 bool m_tagsHasBeenSet = false;
129
130 LogGroupClass m_logGroupClass;
131 bool m_logGroupClassHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CloudWatchLogs
136} // namespace Aws
CreateLogGroupRequest & WithLogGroupName(const Aws::String &value)
CreateLogGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateLogGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateLogGroupRequest & WithLogGroupName(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLogGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLogGroupRequest & WithKmsKeyId(const Aws::String &value)
CreateLogGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateLogGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateLogGroupRequest & AddTags(const char *key, const char *value)
virtual const char * GetServiceRequestName() const override
CreateLogGroupRequest & AddTags(const char *key, Aws::String &&value)
CreateLogGroupRequest & WithLogGroupClass(const LogGroupClass &value)
CreateLogGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateLogGroupRequest & WithLogGroupName(const char *value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLogGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateLogGroupRequest & WithLogGroupClass(LogGroupClass &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateLogGroupRequest & WithKmsKeyId(Aws::String &&value)
CreateLogGroupRequest & WithKmsKeyId(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String