AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AggregateLogGroupSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/GroupingIdentifier.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
31 public:
32 AWS_CLOUDWATCHLOGS_API AggregateLogGroupSummary() = default;
33 AWS_CLOUDWATCHLOGS_API AggregateLogGroupSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline int GetLogGroupCount() const { return m_logGroupCount; }
42 inline bool LogGroupCountHasBeenSet() const { return m_logGroupCountHasBeenSet; }
43 inline void SetLogGroupCount(int value) {
44 m_logGroupCountHasBeenSet = true;
45 m_logGroupCount = value;
46 }
48 SetLogGroupCount(value);
49 return *this;
50 }
52
54
59 inline const Aws::Vector<GroupingIdentifier>& GetGroupingIdentifiers() const { return m_groupingIdentifiers; }
60 inline bool GroupingIdentifiersHasBeenSet() const { return m_groupingIdentifiersHasBeenSet; }
61 template <typename GroupingIdentifiersT = Aws::Vector<GroupingIdentifier>>
62 void SetGroupingIdentifiers(GroupingIdentifiersT&& value) {
63 m_groupingIdentifiersHasBeenSet = true;
64 m_groupingIdentifiers = std::forward<GroupingIdentifiersT>(value);
65 }
66 template <typename GroupingIdentifiersT = Aws::Vector<GroupingIdentifier>>
67 AggregateLogGroupSummary& WithGroupingIdentifiers(GroupingIdentifiersT&& value) {
68 SetGroupingIdentifiers(std::forward<GroupingIdentifiersT>(value));
69 return *this;
70 }
71 template <typename GroupingIdentifiersT = GroupingIdentifier>
72 AggregateLogGroupSummary& AddGroupingIdentifiers(GroupingIdentifiersT&& value) {
73 m_groupingIdentifiersHasBeenSet = true;
74 m_groupingIdentifiers.emplace_back(std::forward<GroupingIdentifiersT>(value));
75 return *this;
76 }
78 private:
79 int m_logGroupCount{0};
80
81 Aws::Vector<GroupingIdentifier> m_groupingIdentifiers;
82 bool m_logGroupCountHasBeenSet = false;
83 bool m_groupingIdentifiersHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CloudWatchLogs
88} // namespace Aws
AWS_CLOUDWATCHLOGS_API AggregateLogGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API AggregateLogGroupSummary()=default
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDWATCHLOGS_API AggregateLogGroupSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< GroupingIdentifier > & GetGroupingIdentifiers() const
AggregateLogGroupSummary & AddGroupingIdentifiers(GroupingIdentifiersT &&value)
AggregateLogGroupSummary & WithGroupingIdentifiers(GroupingIdentifiersT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue