AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename LogGroupNameT = Aws::String>
46 void SetLogGroupName(LogGroupNameT&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = std::forward<LogGroupNameT>(value); }
47 template<typename LogGroupNameT = Aws::String>
48 CreateLogGroupRequest& WithLogGroupName(LogGroupNameT&& value) { SetLogGroupName(std::forward<LogGroupNameT>(value)); return *this;}
50
52
58 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
59 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
60 template<typename KmsKeyIdT = Aws::String>
61 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
62 template<typename KmsKeyIdT = Aws::String>
63 CreateLogGroupRequest& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
65
67
80 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
84 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 CreateLogGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
86 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
87 CreateLogGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
88 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
89 }
91
93
109 inline LogGroupClass GetLogGroupClass() const { return m_logGroupClass; }
110 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
111 inline void SetLogGroupClass(LogGroupClass value) { m_logGroupClassHasBeenSet = true; m_logGroupClass = value; }
114 private:
115
116 Aws::String m_logGroupName;
117 bool m_logGroupNameHasBeenSet = false;
118
119 Aws::String m_kmsKeyId;
120 bool m_kmsKeyIdHasBeenSet = false;
121
123 bool m_tagsHasBeenSet = false;
124
125 LogGroupClass m_logGroupClass{LogGroupClass::NOT_SET};
126 bool m_logGroupClassHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace CloudWatchLogs
131} // namespace Aws
CreateLogGroupRequest & WithLogGroupClass(LogGroupClass value)
AWS_CLOUDWATCHLOGS_API CreateLogGroupRequest()=default
CreateLogGroupRequest & WithLogGroupName(LogGroupNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLogGroupRequest & WithKmsKeyId(KmsKeyIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateLogGroupRequest & WithTags(TagsT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLogGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&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