AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TestCaseExecution.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/TestCaseExecutionStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect {
23namespace Model {
24
32 public:
33 AWS_CONNECT_API TestCaseExecution() = default;
36 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
43 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
44 template <typename StartTimeT = Aws::Utils::DateTime>
45 void SetStartTime(StartTimeT&& value) {
46 m_startTimeHasBeenSet = true;
47 m_startTime = std::forward<StartTimeT>(value);
48 }
49 template <typename StartTimeT = Aws::Utils::DateTime>
50 TestCaseExecution& WithStartTime(StartTimeT&& value) {
51 SetStartTime(std::forward<StartTimeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
61 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
62 template <typename EndTimeT = Aws::Utils::DateTime>
63 void SetEndTime(EndTimeT&& value) {
64 m_endTimeHasBeenSet = true;
65 m_endTime = std::forward<EndTimeT>(value);
66 }
67 template <typename EndTimeT = Aws::Utils::DateTime>
68 TestCaseExecution& WithEndTime(EndTimeT&& value) {
69 SetEndTime(std::forward<EndTimeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetTestCaseExecutionId() const { return m_testCaseExecutionId; }
79 inline bool TestCaseExecutionIdHasBeenSet() const { return m_testCaseExecutionIdHasBeenSet; }
80 template <typename TestCaseExecutionIdT = Aws::String>
81 void SetTestCaseExecutionId(TestCaseExecutionIdT&& value) {
82 m_testCaseExecutionIdHasBeenSet = true;
83 m_testCaseExecutionId = std::forward<TestCaseExecutionIdT>(value);
84 }
85 template <typename TestCaseExecutionIdT = Aws::String>
86 TestCaseExecution& WithTestCaseExecutionId(TestCaseExecutionIdT&& value) {
87 SetTestCaseExecutionId(std::forward<TestCaseExecutionIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetTestCaseId() const { return m_testCaseId; }
97 inline bool TestCaseIdHasBeenSet() const { return m_testCaseIdHasBeenSet; }
98 template <typename TestCaseIdT = Aws::String>
99 void SetTestCaseId(TestCaseIdT&& value) {
100 m_testCaseIdHasBeenSet = true;
101 m_testCaseId = std::forward<TestCaseIdT>(value);
102 }
103 template <typename TestCaseIdT = Aws::String>
104 TestCaseExecution& WithTestCaseId(TestCaseIdT&& value) {
105 SetTestCaseId(std::forward<TestCaseIdT>(value));
106 return *this;
107 }
109
111
114 inline TestCaseExecutionStatus GetTestCaseExecutionStatus() const { return m_testCaseExecutionStatus; }
115 inline bool TestCaseExecutionStatusHasBeenSet() const { return m_testCaseExecutionStatusHasBeenSet; }
117 m_testCaseExecutionStatusHasBeenSet = true;
118 m_testCaseExecutionStatus = value;
119 }
122 return *this;
123 }
125
127
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 void SetTags(TagsT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags = std::forward<TagsT>(value);
136 }
137 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 TestCaseExecution& WithTags(TagsT&& value) {
139 SetTags(std::forward<TagsT>(value));
140 return *this;
141 }
142 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
143 TestCaseExecution& AddTags(TagsKeyT&& key, TagsValueT&& value) {
144 m_tagsHasBeenSet = true;
145 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
146 return *this;
147 }
149 private:
150 Aws::Utils::DateTime m_startTime{};
151
152 Aws::Utils::DateTime m_endTime{};
153
154 Aws::String m_testCaseExecutionId;
155
156 Aws::String m_testCaseId;
157
159
161 bool m_startTimeHasBeenSet = false;
162 bool m_endTimeHasBeenSet = false;
163 bool m_testCaseExecutionIdHasBeenSet = false;
164 bool m_testCaseIdHasBeenSet = false;
165 bool m_testCaseExecutionStatusHasBeenSet = false;
166 bool m_tagsHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace Connect
171} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Utils::DateTime & GetEndTime() const
TestCaseExecution & WithTestCaseExecutionStatus(TestCaseExecutionStatus value)
TestCaseExecution & WithEndTime(EndTimeT &&value)
void SetTestCaseExecutionStatus(TestCaseExecutionStatus value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTestCaseExecutionId(TestCaseExecutionIdT &&value)
TestCaseExecution & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Utils::DateTime & GetStartTime() const
AWS_CONNECT_API TestCaseExecution(Aws::Utils::Json::JsonView jsonValue)
TestCaseExecution & WithTestCaseId(TestCaseIdT &&value)
const Aws::String & GetTestCaseId() const
TestCaseExecution & WithTags(TagsT &&value)
TestCaseExecutionStatus GetTestCaseExecutionStatus() const
TestCaseExecution & WithStartTime(StartTimeT &&value)
AWS_CONNECT_API TestCaseExecution & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTestCaseExecutionId() const
TestCaseExecution & WithTestCaseExecutionId(TestCaseExecutionIdT &&value)
void SetTestCaseId(TestCaseIdT &&value)
AWS_CONNECT_API TestCaseExecution()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue