AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
TestRunDependencySummary.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/DependencyCriticality.h>
11#include <aws/resiliencehubv2/model/TestRunDependencySource.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace resiliencehubv2 {
23namespace Model {
24
32 public:
33 AWS_RESILIENCEHUBV2_API TestRunDependencySummary() = default;
34 AWS_RESILIENCEHUBV2_API TestRunDependencySummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetDependencyId() const { return m_dependencyId; }
44 inline bool DependencyIdHasBeenSet() const { return m_dependencyIdHasBeenSet; }
45 template <typename DependencyIdT = Aws::String>
46 void SetDependencyId(DependencyIdT&& value) {
47 m_dependencyIdHasBeenSet = true;
48 m_dependencyId = std::forward<DependencyIdT>(value);
49 }
50 template <typename DependencyIdT = Aws::String>
52 SetDependencyId(std::forward<DependencyIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDependencyName() const { return m_dependencyName; }
62 inline bool DependencyNameHasBeenSet() const { return m_dependencyNameHasBeenSet; }
63 template <typename DependencyNameT = Aws::String>
64 void SetDependencyName(DependencyNameT&& value) {
65 m_dependencyNameHasBeenSet = true;
66 m_dependencyName = std::forward<DependencyNameT>(value);
67 }
68 template <typename DependencyNameT = Aws::String>
69 TestRunDependencySummary& WithDependencyName(DependencyNameT&& value) {
70 SetDependencyName(std::forward<DependencyNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDnsName() const { return m_dnsName; }
80 inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; }
81 template <typename DnsNameT = Aws::String>
82 void SetDnsName(DnsNameT&& value) {
83 m_dnsNameHasBeenSet = true;
84 m_dnsName = std::forward<DnsNameT>(value);
85 }
86 template <typename DnsNameT = Aws::String>
88 SetDnsName(std::forward<DnsNameT>(value));
89 return *this;
90 }
92
94
98 inline DependencyCriticality GetCriticality() const { return m_criticality; }
99 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
101 m_criticalityHasBeenSet = true;
102 m_criticality = value;
103 }
105 SetCriticality(value);
106 return *this;
107 }
109
111
115 inline TestRunDependencySource GetSource() const { return m_source; }
116 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
118 m_sourceHasBeenSet = true;
119 m_source = value;
120 }
122 SetSource(value);
123 return *this;
124 }
126
128
131 inline const Aws::String& GetLocation() const { return m_location; }
132 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
133 template <typename LocationT = Aws::String>
134 void SetLocation(LocationT&& value) {
135 m_locationHasBeenSet = true;
136 m_location = std::forward<LocationT>(value);
137 }
138 template <typename LocationT = Aws::String>
140 SetLocation(std::forward<LocationT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Vector<Aws::String>& GetSourceRegions() const { return m_sourceRegions; }
150 inline bool SourceRegionsHasBeenSet() const { return m_sourceRegionsHasBeenSet; }
151 template <typename SourceRegionsT = Aws::Vector<Aws::String>>
152 void SetSourceRegions(SourceRegionsT&& value) {
153 m_sourceRegionsHasBeenSet = true;
154 m_sourceRegions = std::forward<SourceRegionsT>(value);
155 }
156 template <typename SourceRegionsT = Aws::Vector<Aws::String>>
158 SetSourceRegions(std::forward<SourceRegionsT>(value));
159 return *this;
160 }
161 template <typename SourceRegionsT = Aws::String>
163 m_sourceRegionsHasBeenSet = true;
164 m_sourceRegions.emplace_back(std::forward<SourceRegionsT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::String& GetProvider() const { return m_provider; }
174 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
175 template <typename ProviderT = Aws::String>
176 void SetProvider(ProviderT&& value) {
177 m_providerHasBeenSet = true;
178 m_provider = std::forward<ProviderT>(value);
179 }
180 template <typename ProviderT = Aws::String>
182 SetProvider(std::forward<ProviderT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_dependencyId;
188
189 Aws::String m_dependencyName;
190
191 Aws::String m_dnsName;
192
194
196
197 Aws::String m_location;
198
199 Aws::Vector<Aws::String> m_sourceRegions;
200
201 Aws::String m_provider;
202 bool m_dependencyIdHasBeenSet = false;
203 bool m_dependencyNameHasBeenSet = false;
204 bool m_dnsNameHasBeenSet = false;
205 bool m_criticalityHasBeenSet = false;
206 bool m_sourceHasBeenSet = false;
207 bool m_locationHasBeenSet = false;
208 bool m_sourceRegionsHasBeenSet = false;
209 bool m_providerHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace resiliencehubv2
214} // namespace Aws
TestRunDependencySummary & WithLocation(LocationT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
TestRunDependencySummary & AddSourceRegions(SourceRegionsT &&value)
TestRunDependencySummary & WithSource(TestRunDependencySource value)
const Aws::Vector< Aws::String > & GetSourceRegions() const
AWS_RESILIENCEHUBV2_API TestRunDependencySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
TestRunDependencySummary & WithDnsName(DnsNameT &&value)
TestRunDependencySummary & WithCriticality(DependencyCriticality value)
AWS_RESILIENCEHUBV2_API TestRunDependencySummary()=default
TestRunDependencySummary & WithProvider(ProviderT &&value)
TestRunDependencySummary & WithDependencyName(DependencyNameT &&value)
TestRunDependencySummary & WithSourceRegions(SourceRegionsT &&value)
TestRunDependencySummary & WithDependencyId(DependencyIdT &&value)
AWS_RESILIENCEHUBV2_API TestRunDependencySummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue