AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CentralizationRuleSource.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/SourceLogsConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ObservabilityAdmin {
22namespace Model {
23
31 public:
32 AWS_OBSERVABILITYADMIN_API CentralizationRuleSource() = default;
33 AWS_OBSERVABILITYADMIN_API CentralizationRuleSource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OBSERVABILITYADMIN_API CentralizationRuleSource& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
43 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
44 template <typename RegionsT = Aws::Vector<Aws::String>>
45 void SetRegions(RegionsT&& value) {
46 m_regionsHasBeenSet = true;
47 m_regions = std::forward<RegionsT>(value);
48 }
49 template <typename RegionsT = Aws::Vector<Aws::String>>
51 SetRegions(std::forward<RegionsT>(value));
52 return *this;
53 }
54 template <typename RegionsT = Aws::String>
56 m_regionsHasBeenSet = true;
57 m_regions.emplace_back(std::forward<RegionsT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetScope() const { return m_scope; }
68 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
69 template <typename ScopeT = Aws::String>
70 void SetScope(ScopeT&& value) {
71 m_scopeHasBeenSet = true;
72 m_scope = std::forward<ScopeT>(value);
73 }
74 template <typename ScopeT = Aws::String>
76 SetScope(std::forward<ScopeT>(value));
77 return *this;
78 }
80
82
85 inline const SourceLogsConfiguration& GetSourceLogsConfiguration() const { return m_sourceLogsConfiguration; }
86 inline bool SourceLogsConfigurationHasBeenSet() const { return m_sourceLogsConfigurationHasBeenSet; }
87 template <typename SourceLogsConfigurationT = SourceLogsConfiguration>
88 void SetSourceLogsConfiguration(SourceLogsConfigurationT&& value) {
89 m_sourceLogsConfigurationHasBeenSet = true;
90 m_sourceLogsConfiguration = std::forward<SourceLogsConfigurationT>(value);
91 }
92 template <typename SourceLogsConfigurationT = SourceLogsConfiguration>
93 CentralizationRuleSource& WithSourceLogsConfiguration(SourceLogsConfigurationT&& value) {
94 SetSourceLogsConfiguration(std::forward<SourceLogsConfigurationT>(value));
95 return *this;
96 }
98 private:
100
101 Aws::String m_scope;
102
103 SourceLogsConfiguration m_sourceLogsConfiguration;
104 bool m_regionsHasBeenSet = false;
105 bool m_scopeHasBeenSet = false;
106 bool m_sourceLogsConfigurationHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ObservabilityAdmin
111} // namespace Aws
CentralizationRuleSource & AddRegions(RegionsT &&value)
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
CentralizationRuleSource & WithSourceLogsConfiguration(SourceLogsConfigurationT &&value)
AWS_OBSERVABILITYADMIN_API CentralizationRuleSource & operator=(Aws::Utils::Json::JsonView jsonValue)
CentralizationRuleSource & WithRegions(RegionsT &&value)
void SetSourceLogsConfiguration(SourceLogsConfigurationT &&value)
AWS_OBSERVABILITYADMIN_API CentralizationRuleSource(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API CentralizationRuleSource()=default
const SourceLogsConfiguration & GetSourceLogsConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue