AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LogGroupSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/LogGroupClass.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHLOGS_API LogGroupSummary() = default;
32 AWS_CLOUDWATCHLOGS_API LogGroupSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API LogGroupSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
41 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
42 template <typename LogGroupNameT = Aws::String>
43 void SetLogGroupName(LogGroupNameT&& value) {
44 m_logGroupNameHasBeenSet = true;
45 m_logGroupName = std::forward<LogGroupNameT>(value);
46 }
47 template <typename LogGroupNameT = Aws::String>
48 LogGroupSummary& WithLogGroupName(LogGroupNameT&& value) {
49 SetLogGroupName(std::forward<LogGroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
59 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
60 template <typename LogGroupArnT = Aws::String>
61 void SetLogGroupArn(LogGroupArnT&& value) {
62 m_logGroupArnHasBeenSet = true;
63 m_logGroupArn = std::forward<LogGroupArnT>(value);
64 }
65 template <typename LogGroupArnT = Aws::String>
66 LogGroupSummary& WithLogGroupArn(LogGroupArnT&& value) {
67 SetLogGroupArn(std::forward<LogGroupArnT>(value));
68 return *this;
69 }
71
73
79 inline LogGroupClass GetLogGroupClass() const { return m_logGroupClass; }
80 inline bool LogGroupClassHasBeenSet() const { return m_logGroupClassHasBeenSet; }
81 inline void SetLogGroupClass(LogGroupClass value) {
82 m_logGroupClassHasBeenSet = true;
83 m_logGroupClass = value;
84 }
86 SetLogGroupClass(value);
87 return *this;
88 }
90 private:
91 Aws::String m_logGroupName;
92
93 Aws::String m_logGroupArn;
94
96 bool m_logGroupNameHasBeenSet = false;
97 bool m_logGroupArnHasBeenSet = false;
98 bool m_logGroupClassHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CloudWatchLogs
103} // namespace Aws
AWS_CLOUDWATCHLOGS_API LogGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogGroupArn() const
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
LogGroupSummary & WithLogGroupName(LogGroupNameT &&value)
void SetLogGroupName(LogGroupNameT &&value)
LogGroupSummary & WithLogGroupClass(LogGroupClass value)
AWS_CLOUDWATCHLOGS_API LogGroupSummary()=default
LogGroupSummary & WithLogGroupArn(LogGroupArnT &&value)
AWS_CLOUDWATCHLOGS_API LogGroupSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLogGroupName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue