AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeExecutionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
11#include <aws/snow-device-management/model/ExecutionState.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 SnowDeviceManagement {
25namespace Model {
27 public:
28 AWS_SNOWDEVICEMANAGEMENT_API DescribeExecutionResult() = default;
31
33
36 inline const Aws::String& GetExecutionId() const { return m_executionId; }
37 template <typename ExecutionIdT = Aws::String>
38 void SetExecutionId(ExecutionIdT&& value) {
39 m_executionIdHasBeenSet = true;
40 m_executionId = std::forward<ExecutionIdT>(value);
41 }
42 template <typename ExecutionIdT = Aws::String>
44 SetExecutionId(std::forward<ExecutionIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
54 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
55 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
56 m_lastUpdatedAtHasBeenSet = true;
57 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
58 }
59 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
60 DescribeExecutionResult& WithLastUpdatedAt(LastUpdatedAtT&& value) {
61 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetManagedDeviceId() const { return m_managedDeviceId; }
71 template <typename ManagedDeviceIdT = Aws::String>
72 void SetManagedDeviceId(ManagedDeviceIdT&& value) {
73 m_managedDeviceIdHasBeenSet = true;
74 m_managedDeviceId = std::forward<ManagedDeviceIdT>(value);
75 }
76 template <typename ManagedDeviceIdT = Aws::String>
77 DescribeExecutionResult& WithManagedDeviceId(ManagedDeviceIdT&& value) {
78 SetManagedDeviceId(std::forward<ManagedDeviceIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
88 template <typename StartedAtT = Aws::Utils::DateTime>
89 void SetStartedAt(StartedAtT&& value) {
90 m_startedAtHasBeenSet = true;
91 m_startedAt = std::forward<StartedAtT>(value);
92 }
93 template <typename StartedAtT = Aws::Utils::DateTime>
95 SetStartedAt(std::forward<StartedAtT>(value));
96 return *this;
97 }
99
101
104 inline ExecutionState GetState() const { return m_state; }
105 inline void SetState(ExecutionState value) {
106 m_stateHasBeenSet = true;
107 m_state = value;
108 }
110 SetState(value);
111 return *this;
112 }
114
116
119 inline const Aws::String& GetTaskId() const { return m_taskId; }
120 template <typename TaskIdT = Aws::String>
121 void SetTaskId(TaskIdT&& value) {
122 m_taskIdHasBeenSet = true;
123 m_taskId = std::forward<TaskIdT>(value);
124 }
125 template <typename TaskIdT = Aws::String>
127 SetTaskId(std::forward<TaskIdT>(value));
128 return *this;
129 }
131
133
134 inline const Aws::String& GetRequestId() const { return m_requestId; }
135 template <typename RequestIdT = Aws::String>
136 void SetRequestId(RequestIdT&& value) {
137 m_requestIdHasBeenSet = true;
138 m_requestId = std::forward<RequestIdT>(value);
139 }
140 template <typename RequestIdT = Aws::String>
142 SetRequestId(std::forward<RequestIdT>(value));
143 return *this;
144 }
146 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
147
148 private:
149 Aws::String m_executionId;
150
151 Aws::Utils::DateTime m_lastUpdatedAt{};
152
153 Aws::String m_managedDeviceId;
154
155 Aws::Utils::DateTime m_startedAt{};
156
158
159 Aws::String m_taskId;
160
161 Aws::String m_requestId;
162 Aws::Http::HttpResponseCode m_HttpResponseCode;
163 bool m_executionIdHasBeenSet = false;
164 bool m_lastUpdatedAtHasBeenSet = false;
165 bool m_managedDeviceIdHasBeenSet = false;
166 bool m_startedAtHasBeenSet = false;
167 bool m_stateHasBeenSet = false;
168 bool m_taskIdHasBeenSet = false;
169 bool m_requestIdHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SnowDeviceManagement
174} // namespace Aws
DescribeExecutionResult & WithManagedDeviceId(ManagedDeviceIdT &&value)
DescribeExecutionResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeExecutionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeExecutionResult & WithState(ExecutionState value)
DescribeExecutionResult & WithExecutionId(ExecutionIdT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeExecutionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeExecutionResult & WithRequestId(RequestIdT &&value)
AWS_SNOWDEVICEMANAGEMENT_API DescribeExecutionResult()=default
DescribeExecutionResult & WithStartedAt(StartedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue