AWS SDK for C++

AWS SDK for C++ Version 1.11.868

Loading...
Searching...
No Matches
StartTestRunResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11#include <aws/resiliencehubv2/model/TestRunStatus.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace resiliencehubv2 {
25namespace Model {
27 public:
28 AWS_RESILIENCEHUBV2_API StartTestRunResult() = default;
31
33
36 inline const Aws::String& GetTestRunId() const { return m_testRunId; }
37 template <typename TestRunIdT = Aws::String>
38 void SetTestRunId(TestRunIdT&& value) {
39 m_testRunIdHasBeenSet = true;
40 m_testRunId = std::forward<TestRunIdT>(value);
41 }
42 template <typename TestRunIdT = Aws::String>
43 StartTestRunResult& WithTestRunId(TestRunIdT&& value) {
44 SetTestRunId(std::forward<TestRunIdT>(value));
45 return *this;
46 }
48
50
53 inline TestRunStatus GetStatus() const { return m_status; }
54 inline void SetStatus(TestRunStatus value) {
55 m_statusHasBeenSet = true;
56 m_status = value;
57 }
59 SetStatus(value);
60 return *this;
61 }
63
65
69 inline const Aws::Vector<Aws::String>& GetExperimentArns() const { return m_experimentArns; }
70 template <typename ExperimentArnsT = Aws::Vector<Aws::String>>
71 void SetExperimentArns(ExperimentArnsT&& value) {
72 m_experimentArnsHasBeenSet = true;
73 m_experimentArns = std::forward<ExperimentArnsT>(value);
74 }
75 template <typename ExperimentArnsT = Aws::Vector<Aws::String>>
76 StartTestRunResult& WithExperimentArns(ExperimentArnsT&& value) {
77 SetExperimentArns(std::forward<ExperimentArnsT>(value));
78 return *this;
79 }
80 template <typename ExperimentArnsT = Aws::String>
81 StartTestRunResult& AddExperimentArns(ExperimentArnsT&& value) {
82 m_experimentArnsHasBeenSet = true;
83 m_experimentArns.emplace_back(std::forward<ExperimentArnsT>(value));
84 return *this;
85 }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
97 StartTestRunResult& WithRequestId(RequestIdT&& value) {
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Aws::String m_testRunId;
106
108
109 Aws::Vector<Aws::String> m_experimentArns;
110
111 Aws::String m_requestId;
112 Aws::Http::HttpResponseCode m_HttpResponseCode;
113 bool m_testRunIdHasBeenSet = false;
114 bool m_statusHasBeenSet = false;
115 bool m_experimentArnsHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace resiliencehubv2
121} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< Aws::String > & GetExperimentArns() const
StartTestRunResult & WithTestRunId(TestRunIdT &&value)
AWS_RESILIENCEHUBV2_API StartTestRunResult()=default
AWS_RESILIENCEHUBV2_API StartTestRunResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartTestRunResult & WithStatus(TestRunStatus value)
StartTestRunResult & WithExperimentArns(ExperimentArnsT &&value)
StartTestRunResult & AddExperimentArns(ExperimentArnsT &&value)
AWS_RESILIENCEHUBV2_API StartTestRunResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartTestRunResult & WithRequestId(RequestIdT &&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