AWS SDK for C++

AWS SDK for C++ Version 1.11.899

Loading...
Searching...
No Matches
NodeProperties.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/NodeCategory.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace CloudWatchOmni {
21namespace Model {
22
32 public:
33 AWS_CLOUDWATCHOMNI_API NodeProperties() = default;
34 AWS_CLOUDWATCHOMNI_API NodeProperties(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API NodeProperties& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
43 inline const Aws::String& GetRegion() const { return m_region; }
44 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
45 template <typename RegionT = Aws::String>
46 void SetRegion(RegionT&& value) {
47 m_regionHasBeenSet = true;
48 m_region = std::forward<RegionT>(value);
49 }
50 template <typename RegionT = Aws::String>
51 NodeProperties& WithRegion(RegionT&& value) {
52 SetRegion(std::forward<RegionT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetCloudProvider() const { return m_cloudProvider; }
63 inline bool CloudProviderHasBeenSet() const { return m_cloudProviderHasBeenSet; }
64 template <typename CloudProviderT = Aws::String>
65 void SetCloudProvider(CloudProviderT&& value) {
66 m_cloudProviderHasBeenSet = true;
67 m_cloudProvider = std::forward<CloudProviderT>(value);
68 }
69 template <typename CloudProviderT = Aws::String>
70 NodeProperties& WithCloudProvider(CloudProviderT&& value) {
71 SetCloudProvider(std::forward<CloudProviderT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetSourceAccountId() const { return m_sourceAccountId; }
81 inline bool SourceAccountIdHasBeenSet() const { return m_sourceAccountIdHasBeenSet; }
82 template <typename SourceAccountIdT = Aws::String>
83 void SetSourceAccountId(SourceAccountIdT&& value) {
84 m_sourceAccountIdHasBeenSet = true;
85 m_sourceAccountId = std::forward<SourceAccountIdT>(value);
86 }
87 template <typename SourceAccountIdT = Aws::String>
88 NodeProperties& WithSourceAccountId(SourceAccountIdT&& value) {
89 SetSourceAccountId(std::forward<SourceAccountIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetNamespace() const { return m_namespace; }
100 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
101 template <typename NamespaceT = Aws::String>
102 void SetNamespace(NamespaceT&& value) {
103 m_namespaceHasBeenSet = true;
104 m_namespace = std::forward<NamespaceT>(value);
105 }
106 template <typename NamespaceT = Aws::String>
107 NodeProperties& WithNamespace(NamespaceT&& value) {
108 SetNamespace(std::forward<NamespaceT>(value));
109 return *this;
110 }
112
114
117 inline NodeCategory GetCategory() const { return m_category; }
118 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
119 inline void SetCategory(NodeCategory value) {
120 m_categoryHasBeenSet = true;
121 m_category = value;
122 }
124 SetCategory(value);
125 return *this;
126 }
128
130
134 inline const Aws::String& GetStage() const { return m_stage; }
135 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
136 template <typename StageT = Aws::String>
137 void SetStage(StageT&& value) {
138 m_stageHasBeenSet = true;
139 m_stage = std::forward<StageT>(value);
140 }
141 template <typename StageT = Aws::String>
142 NodeProperties& WithStage(StageT&& value) {
143 SetStage(std::forward<StageT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_region;
149
150 Aws::String m_cloudProvider;
151
152 Aws::String m_sourceAccountId;
153
154 Aws::String m_namespace;
155
157
158 Aws::String m_stage;
159 bool m_regionHasBeenSet = false;
160 bool m_cloudProviderHasBeenSet = false;
161 bool m_sourceAccountIdHasBeenSet = false;
162 bool m_namespaceHasBeenSet = false;
163 bool m_categoryHasBeenSet = false;
164 bool m_stageHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace CloudWatchOmni
169} // namespace Aws
NodeProperties & WithNamespace(NamespaceT &&value)
NodeProperties & WithRegion(RegionT &&value)
NodeProperties & WithSourceAccountId(SourceAccountIdT &&value)
const Aws::String & GetSourceAccountId() const
AWS_CLOUDWATCHOMNI_API NodeProperties()=default
const Aws::String & GetCloudProvider() const
NodeProperties & WithStage(StageT &&value)
AWS_CLOUDWATCHOMNI_API NodeProperties(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetNamespace() const
const Aws::String & GetRegion() const
NodeProperties & WithCloudProvider(CloudProviderT &&value)
void SetCloudProvider(CloudProviderT &&value)
NodeProperties & WithCategory(NodeCategory value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetSourceAccountId(SourceAccountIdT &&value)
AWS_CLOUDWATCHOMNI_API NodeProperties & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String