AWS SDK for C++

AWS SDK for C++ Version 1.11.820

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::Vector<EdgePropertySummary>& GetProperties() const { return m_properties; }
78 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
79 template <typename PropertiesT = Aws::Vector<EdgePropertySummary>>
80 void SetProperties(PropertiesT&& value) {
81 m_propertiesHasBeenSet = true;
82 m_properties = std::forward<PropertiesT>(value);
83 }
84 template <typename PropertiesT = Aws::Vector<EdgePropertySummary>>
86 SetProperties(std::forward<PropertiesT>(value));
87 return *this;
88 }
89 template <typename PropertiesT = EdgePropertySummary>
91 m_propertiesHasBeenSet = true;
92 m_properties.emplace_back(std::forward<PropertiesT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_sourceResourceIdentifier;
98
99 Aws::String m_destinationResourceIdentifier;
100
102 bool m_sourceResourceIdentifierHasBeenSet = false;
103 bool m_destinationResourceIdentifierHasBeenSet = false;
104 bool m_propertiesHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace resiliencehubv2
109} // namespace Aws
ServiceTopologyEdgeSummary & AddProperties(PropertiesT &&value)
ServiceTopologyEdgeSummary & WithProperties(PropertiesT &&value)
ServiceTopologyEdgeSummary & WithSourceResourceIdentifier(SourceResourceIdentifierT &&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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue