AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
ConfigurationSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
10#include <aws/observabilityadmin/model/DataSource.h>
11#include <aws/observabilityadmin/model/Source.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ObservabilityAdmin {
23namespace Model {
24
32 public:
33 AWS_OBSERVABILITYADMIN_API ConfigurationSummary() = default;
34 AWS_OBSERVABILITYADMIN_API ConfigurationSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OBSERVABILITYADMIN_API ConfigurationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Source>& GetSources() const { return m_sources; }
43 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
44 template <typename SourcesT = Aws::Vector<Source>>
45 void SetSources(SourcesT&& value) {
46 m_sourcesHasBeenSet = true;
47 m_sources = std::forward<SourcesT>(value);
48 }
49 template <typename SourcesT = Aws::Vector<Source>>
50 ConfigurationSummary& WithSources(SourcesT&& value) {
51 SetSources(std::forward<SourcesT>(value));
52 return *this;
53 }
54 template <typename SourcesT = Source>
55 ConfigurationSummary& AddSources(SourcesT&& value) {
56 m_sourcesHasBeenSet = true;
57 m_sources.emplace_back(std::forward<SourcesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<DataSource>& GetDataSources() const { return m_dataSources; }
67 inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
68 template <typename DataSourcesT = Aws::Vector<DataSource>>
69 void SetDataSources(DataSourcesT&& value) {
70 m_dataSourcesHasBeenSet = true;
71 m_dataSources = std::forward<DataSourcesT>(value);
72 }
73 template <typename DataSourcesT = Aws::Vector<DataSource>>
74 ConfigurationSummary& WithDataSources(DataSourcesT&& value) {
75 SetDataSources(std::forward<DataSourcesT>(value));
76 return *this;
77 }
78 template <typename DataSourcesT = DataSource>
79 ConfigurationSummary& AddDataSources(DataSourcesT&& value) {
80 m_dataSourcesHasBeenSet = true;
81 m_dataSources.emplace_back(std::forward<DataSourcesT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::Vector<Aws::String>& GetProcessors() const { return m_processors; }
92 inline bool ProcessorsHasBeenSet() const { return m_processorsHasBeenSet; }
93 template <typename ProcessorsT = Aws::Vector<Aws::String>>
94 void SetProcessors(ProcessorsT&& value) {
95 m_processorsHasBeenSet = true;
96 m_processors = std::forward<ProcessorsT>(value);
97 }
98 template <typename ProcessorsT = Aws::Vector<Aws::String>>
99 ConfigurationSummary& WithProcessors(ProcessorsT&& value) {
100 SetProcessors(std::forward<ProcessorsT>(value));
101 return *this;
102 }
103 template <typename ProcessorsT = Aws::String>
104 ConfigurationSummary& AddProcessors(ProcessorsT&& value) {
105 m_processorsHasBeenSet = true;
106 m_processors.emplace_back(std::forward<ProcessorsT>(value));
107 return *this;
108 }
110
112
115 inline int GetProcessorCount() const { return m_processorCount; }
116 inline bool ProcessorCountHasBeenSet() const { return m_processorCountHasBeenSet; }
117 inline void SetProcessorCount(int value) {
118 m_processorCountHasBeenSet = true;
119 m_processorCount = value;
120 }
122 SetProcessorCount(value);
123 return *this;
124 }
126
128
131 inline const Aws::Vector<Aws::String>& GetSinks() const { return m_sinks; }
132 inline bool SinksHasBeenSet() const { return m_sinksHasBeenSet; }
133 template <typename SinksT = Aws::Vector<Aws::String>>
134 void SetSinks(SinksT&& value) {
135 m_sinksHasBeenSet = true;
136 m_sinks = std::forward<SinksT>(value);
137 }
138 template <typename SinksT = Aws::Vector<Aws::String>>
140 SetSinks(std::forward<SinksT>(value));
141 return *this;
142 }
143 template <typename SinksT = Aws::String>
145 m_sinksHasBeenSet = true;
146 m_sinks.emplace_back(std::forward<SinksT>(value));
147 return *this;
148 }
150 private:
151 Aws::Vector<Source> m_sources;
152
153 Aws::Vector<DataSource> m_dataSources;
154
155 Aws::Vector<Aws::String> m_processors;
156
157 int m_processorCount{0};
158
160 bool m_sourcesHasBeenSet = false;
161 bool m_dataSourcesHasBeenSet = false;
162 bool m_processorsHasBeenSet = false;
163 bool m_processorCountHasBeenSet = false;
164 bool m_sinksHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace ObservabilityAdmin
169} // namespace Aws
AWS_OBSERVABILITYADMIN_API ConfigurationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetProcessors() const
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OBSERVABILITYADMIN_API ConfigurationSummary(Aws::Utils::Json::JsonView jsonValue)
ConfigurationSummary & WithSources(SourcesT &&value)
ConfigurationSummary & AddSources(SourcesT &&value)
ConfigurationSummary & WithDataSources(DataSourcesT &&value)
const Aws::Vector< Aws::String > & GetSinks() const
ConfigurationSummary & AddDataSources(DataSourcesT &&value)
AWS_OBSERVABILITYADMIN_API ConfigurationSummary()=default
ConfigurationSummary & WithProcessors(ProcessorsT &&value)
ConfigurationSummary & AddProcessors(ProcessorsT &&value)
const Aws::Vector< DataSource > & GetDataSources() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue