AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
DryRunResult.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/LogGroupImpact.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
33 public:
34 AWS_CLOUDWATCHLOGS_API DryRunResult() = default;
35 AWS_CLOUDWATCHLOGS_API DryRunResult(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDWATCHLOGS_API DryRunResult& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline int GetTotalMatchedLogGroups() const { return m_totalMatchedLogGroups; }
48 inline bool TotalMatchedLogGroupsHasBeenSet() const { return m_totalMatchedLogGroupsHasBeenSet; }
49 inline void SetTotalMatchedLogGroups(int value) {
50 m_totalMatchedLogGroupsHasBeenSet = true;
51 m_totalMatchedLogGroups = value;
52 }
55 return *this;
56 }
58
60
64 inline int GetIncreasedRetentionLogGroupCount() const { return m_increasedRetentionLogGroupCount; }
65 inline bool IncreasedRetentionLogGroupCountHasBeenSet() const { return m_increasedRetentionLogGroupCountHasBeenSet; }
66 inline void SetIncreasedRetentionLogGroupCount(int value) {
67 m_increasedRetentionLogGroupCountHasBeenSet = true;
68 m_increasedRetentionLogGroupCount = value;
69 }
72 return *this;
73 }
75
77
81 inline int GetDecreasedRetentionLogGroupCount() const { return m_decreasedRetentionLogGroupCount; }
82 inline bool DecreasedRetentionLogGroupCountHasBeenSet() const { return m_decreasedRetentionLogGroupCountHasBeenSet; }
83 inline void SetDecreasedRetentionLogGroupCount(int value) {
84 m_decreasedRetentionLogGroupCountHasBeenSet = true;
85 m_decreasedRetentionLogGroupCount = value;
86 }
89 return *this;
90 }
92
94
98 inline int GetUnchangedRetentionLogGroupCount() const { return m_unchangedRetentionLogGroupCount; }
99 inline bool UnchangedRetentionLogGroupCountHasBeenSet() const { return m_unchangedRetentionLogGroupCountHasBeenSet; }
100 inline void SetUnchangedRetentionLogGroupCount(int value) {
101 m_unchangedRetentionLogGroupCountHasBeenSet = true;
102 m_unchangedRetentionLogGroupCount = value;
103 }
106 return *this;
107 }
109
111
116 inline int GetFailedAnalysisCount() const { return m_failedAnalysisCount; }
117 inline bool FailedAnalysisCountHasBeenSet() const { return m_failedAnalysisCountHasBeenSet; }
118 inline void SetFailedAnalysisCount(int value) {
119 m_failedAnalysisCountHasBeenSet = true;
120 m_failedAnalysisCount = value;
121 }
124 return *this;
125 }
127
129
134 inline const Aws::Vector<LogGroupImpact>& GetTopLogGroupsImpacted() const { return m_topLogGroupsImpacted; }
135 inline bool TopLogGroupsImpactedHasBeenSet() const { return m_topLogGroupsImpactedHasBeenSet; }
136 template <typename TopLogGroupsImpactedT = Aws::Vector<LogGroupImpact>>
137 void SetTopLogGroupsImpacted(TopLogGroupsImpactedT&& value) {
138 m_topLogGroupsImpactedHasBeenSet = true;
139 m_topLogGroupsImpacted = std::forward<TopLogGroupsImpactedT>(value);
140 }
141 template <typename TopLogGroupsImpactedT = Aws::Vector<LogGroupImpact>>
142 DryRunResult& WithTopLogGroupsImpacted(TopLogGroupsImpactedT&& value) {
143 SetTopLogGroupsImpacted(std::forward<TopLogGroupsImpactedT>(value));
144 return *this;
145 }
146 template <typename TopLogGroupsImpactedT = LogGroupImpact>
147 DryRunResult& AddTopLogGroupsImpacted(TopLogGroupsImpactedT&& value) {
148 m_topLogGroupsImpactedHasBeenSet = true;
149 m_topLogGroupsImpacted.emplace_back(std::forward<TopLogGroupsImpactedT>(value));
150 return *this;
151 }
153 private:
154 int m_totalMatchedLogGroups{0};
155
156 int m_increasedRetentionLogGroupCount{0};
157
158 int m_decreasedRetentionLogGroupCount{0};
159
160 int m_unchangedRetentionLogGroupCount{0};
161
162 int m_failedAnalysisCount{0};
163
164 Aws::Vector<LogGroupImpact> m_topLogGroupsImpacted;
165 bool m_totalMatchedLogGroupsHasBeenSet = false;
166 bool m_increasedRetentionLogGroupCountHasBeenSet = false;
167 bool m_decreasedRetentionLogGroupCountHasBeenSet = false;
168 bool m_unchangedRetentionLogGroupCountHasBeenSet = false;
169 bool m_failedAnalysisCountHasBeenSet = false;
170 bool m_topLogGroupsImpactedHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace CloudWatchLogs
175} // namespace Aws
DryRunResult & WithIncreasedRetentionLogGroupCount(int value)
AWS_CLOUDWATCHLOGS_API DryRunResult(Aws::Utils::Json::JsonView jsonValue)
DryRunResult & WithFailedAnalysisCount(int value)
AWS_CLOUDWATCHLOGS_API DryRunResult()=default
DryRunResult & WithTotalMatchedLogGroups(int value)
DryRunResult & WithUnchangedRetentionLogGroupCount(int value)
void SetTopLogGroupsImpacted(TopLogGroupsImpactedT &&value)
DryRunResult & WithTopLogGroupsImpacted(TopLogGroupsImpactedT &&value)
AWS_CLOUDWATCHLOGS_API DryRunResult & operator=(Aws::Utils::Json::JsonView jsonValue)
DryRunResult & AddTopLogGroupsImpacted(TopLogGroupsImpactedT &&value)
const Aws::Vector< LogGroupImpact > & GetTopLogGroupsImpacted() const
DryRunResult & WithDecreasedRetentionLogGroupCount(int value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue