AWS SDK for C++

AWS SDK for C++ Version 1.11.853

Loading...
Searching...
No Matches
ServiceTopologyEdgeSummary.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/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
10#include <aws/resiliencehubv2/model/EdgePropertySummary.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace resiliencehubv2 {
22namespace Model {
23
31 public:
32 AWS_RESILIENCEHUBV2_API ServiceTopologyEdgeSummary() = default;
33 AWS_RESILIENCEHUBV2_API ServiceTopologyEdgeSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSourceResourceIdentifier() const { return m_sourceResourceIdentifier; }
42 inline bool SourceResourceIdentifierHasBeenSet() const { return m_sourceResourceIdentifierHasBeenSet; }
43 template <typename SourceResourceIdentifierT = Aws::String>
44 void SetSourceResourceIdentifier(SourceResourceIdentifierT&& value) {
45 m_sourceResourceIdentifierHasBeenSet = true;
46 m_sourceResourceIdentifier = std::forward<SourceResourceIdentifierT>(value);
47 }
48 template <typename SourceResourceIdentifierT = Aws::String>
49 ServiceTopologyEdgeSummary& WithSourceResourceIdentifier(SourceResourceIdentifierT&& value) {
50 SetSourceResourceIdentifier(std::forward<SourceResourceIdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDestinationResourceIdentifier() const { return m_destinationResourceIdentifier; }
60 inline bool DestinationResourceIdentifierHasBeenSet() const { return m_destinationResourceIdentifierHasBeenSet; }
61 template <typename DestinationResourceIdentifierT = Aws::String>
62 void SetDestinationResourceIdentifier(DestinationResourceIdentifierT&& value) {
63 m_destinationResourceIdentifierHasBeenSet = true;
64 m_destinationResourceIdentifier = std::forward<DestinationResourceIdentifierT>(value);
65 }
66 template <typename DestinationResourceIdentifierT = Aws::String>
67 ServiceTopologyEdgeSummary& WithDestinationResourceIdentifier(DestinationResourceIdentifierT&& value) {
68 SetDestinationResourceIdentifier(std::forward<DestinationResourceIdentifierT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
78 inline bool SourceRegionHasBeenSet() const { return m_sourceRegionHasBeenSet; }
79 template <typename SourceRegionT = Aws::String>
80 void SetSourceRegion(SourceRegionT&& value) {
81 m_sourceRegionHasBeenSet = true;
82 m_sourceRegion = std::forward<SourceRegionT>(value);
83 }
84 template <typename SourceRegionT = Aws::String>
86 SetSourceRegion(std::forward<SourceRegionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDestinationRegion() const { return m_destinationRegion; }
96 inline bool DestinationRegionHasBeenSet() const { return m_destinationRegionHasBeenSet; }
97 template <typename DestinationRegionT = Aws::String>
98 void SetDestinationRegion(DestinationRegionT&& value) {
99 m_destinationRegionHasBeenSet = true;
100 m_destinationRegion = std::forward<DestinationRegionT>(value);
101 }
102 template <typename DestinationRegionT = Aws::String>
104 SetDestinationRegion(std::forward<DestinationRegionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetSourceAccount() const { return m_sourceAccount; }
114 inline bool SourceAccountHasBeenSet() const { return m_sourceAccountHasBeenSet; }
115 template <typename SourceAccountT = Aws::String>
116 void SetSourceAccount(SourceAccountT&& value) {
117 m_sourceAccountHasBeenSet = true;
118 m_sourceAccount = std::forward<SourceAccountT>(value);
119 }
120 template <typename SourceAccountT = Aws::String>
122 SetSourceAccount(std::forward<SourceAccountT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetDestinationAccount() const { return m_destinationAccount; }
132 inline bool DestinationAccountHasBeenSet() const { return m_destinationAccountHasBeenSet; }
133 template <typename DestinationAccountT = Aws::String>
134 void SetDestinationAccount(DestinationAccountT&& value) {
135 m_destinationAccountHasBeenSet = true;
136 m_destinationAccount = std::forward<DestinationAccountT>(value);
137 }
138 template <typename DestinationAccountT = Aws::String>
140 SetDestinationAccount(std::forward<DestinationAccountT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Vector<EdgePropertySummary>& GetProperties() const { return m_properties; }
150 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
151 template <typename PropertiesT = Aws::Vector<EdgePropertySummary>>
152 void SetProperties(PropertiesT&& value) {
153 m_propertiesHasBeenSet = true;
154 m_properties = std::forward<PropertiesT>(value);
155 }
156 template <typename PropertiesT = Aws::Vector<EdgePropertySummary>>
158 SetProperties(std::forward<PropertiesT>(value));
159 return *this;
160 }
161 template <typename PropertiesT = EdgePropertySummary>
163 m_propertiesHasBeenSet = true;
164 m_properties.emplace_back(std::forward<PropertiesT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_sourceResourceIdentifier;
170
171 Aws::String m_destinationResourceIdentifier;
172
173 Aws::String m_sourceRegion;
174
175 Aws::String m_destinationRegion;
176
177 Aws::String m_sourceAccount;
178
179 Aws::String m_destinationAccount;
180
182 bool m_sourceResourceIdentifierHasBeenSet = false;
183 bool m_destinationResourceIdentifierHasBeenSet = false;
184 bool m_sourceRegionHasBeenSet = false;
185 bool m_destinationRegionHasBeenSet = false;
186 bool m_sourceAccountHasBeenSet = false;
187 bool m_destinationAccountHasBeenSet = false;
188 bool m_propertiesHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace resiliencehubv2
193} // namespace Aws
ServiceTopologyEdgeSummary & AddProperties(PropertiesT &&value)
ServiceTopologyEdgeSummary & WithDestinationAccount(DestinationAccountT &&value)
ServiceTopologyEdgeSummary & WithDestinationRegion(DestinationRegionT &&value)
ServiceTopologyEdgeSummary & WithProperties(PropertiesT &&value)
ServiceTopologyEdgeSummary & WithSourceResourceIdentifier(SourceResourceIdentifierT &&value)
ServiceTopologyEdgeSummary & WithSourceAccount(SourceAccountT &&value)
AWS_RESILIENCEHUBV2_API ServiceTopologyEdgeSummary()=default
ServiceTopologyEdgeSummary & WithDestinationResourceIdentifier(DestinationResourceIdentifierT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceResourceIdentifier(SourceResourceIdentifierT &&value)
AWS_RESILIENCEHUBV2_API ServiceTopologyEdgeSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUBV2_API ServiceTopologyEdgeSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< EdgePropertySummary > & GetProperties() const
void SetDestinationResourceIdentifier(DestinationResourceIdentifierT &&value)
ServiceTopologyEdgeSummary & WithSourceRegion(SourceRegionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue