AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GroupingIdentifier.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHLOGS_API GroupingIdentifier() = default;
31 AWS_CLOUDWATCHLOGS_API GroupingIdentifier(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API GroupingIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
49 GroupingIdentifier& WithKey(KeyT&& value) {
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetValue() const { return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 template <typename ValueT = Aws::String>
63 void SetValue(ValueT&& value) {
64 m_valueHasBeenSet = true;
65 m_value = std::forward<ValueT>(value);
66 }
67 template <typename ValueT = Aws::String>
68 GroupingIdentifier& WithValue(ValueT&& value) {
69 SetValue(std::forward<ValueT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_key;
75
76 Aws::String m_value;
77 bool m_keyHasBeenSet = false;
78 bool m_valueHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace CloudWatchLogs
83} // namespace Aws
GroupingIdentifier & WithKey(KeyT &&value)
AWS_CLOUDWATCHLOGS_API GroupingIdentifier(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API GroupingIdentifier()=default
AWS_CLOUDWATCHLOGS_API GroupingIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
GroupingIdentifier & WithValue(ValueT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue