AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ExecutionSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/snow-device-management/SnowDeviceManagement_EXPORTS.h>
9#include <aws/snow-device-management/model/ExecutionState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SnowDeviceManagement {
21namespace Model {
22
30 public:
31 AWS_SNOWDEVICEMANAGEMENT_API ExecutionSummary() = default;
32 AWS_SNOWDEVICEMANAGEMENT_API ExecutionSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SNOWDEVICEMANAGEMENT_API ExecutionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetExecutionId() const { return m_executionId; }
41 inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
42 template <typename ExecutionIdT = Aws::String>
43 void SetExecutionId(ExecutionIdT&& value) {
44 m_executionIdHasBeenSet = true;
45 m_executionId = std::forward<ExecutionIdT>(value);
46 }
47 template <typename ExecutionIdT = Aws::String>
48 ExecutionSummary& WithExecutionId(ExecutionIdT&& value) {
49 SetExecutionId(std::forward<ExecutionIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetManagedDeviceId() const { return m_managedDeviceId; }
59 inline bool ManagedDeviceIdHasBeenSet() const { return m_managedDeviceIdHasBeenSet; }
60 template <typename ManagedDeviceIdT = Aws::String>
61 void SetManagedDeviceId(ManagedDeviceIdT&& value) {
62 m_managedDeviceIdHasBeenSet = true;
63 m_managedDeviceId = std::forward<ManagedDeviceIdT>(value);
64 }
65 template <typename ManagedDeviceIdT = Aws::String>
66 ExecutionSummary& WithManagedDeviceId(ManagedDeviceIdT&& value) {
67 SetManagedDeviceId(std::forward<ManagedDeviceIdT>(value));
68 return *this;
69 }
71
73
76 inline ExecutionState GetState() const { return m_state; }
77 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
78 inline void SetState(ExecutionState value) {
79 m_stateHasBeenSet = true;
80 m_state = value;
81 }
83 SetState(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetTaskId() const { return m_taskId; }
93 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
94 template <typename TaskIdT = Aws::String>
95 void SetTaskId(TaskIdT&& value) {
96 m_taskIdHasBeenSet = true;
97 m_taskId = std::forward<TaskIdT>(value);
98 }
99 template <typename TaskIdT = Aws::String>
100 ExecutionSummary& WithTaskId(TaskIdT&& value) {
101 SetTaskId(std::forward<TaskIdT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_executionId;
107
108 Aws::String m_managedDeviceId;
109
111
112 Aws::String m_taskId;
113 bool m_executionIdHasBeenSet = false;
114 bool m_managedDeviceIdHasBeenSet = false;
115 bool m_stateHasBeenSet = false;
116 bool m_taskIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace SnowDeviceManagement
121} // namespace Aws
ExecutionSummary & WithManagedDeviceId(ManagedDeviceIdT &&value)
AWS_SNOWDEVICEMANAGEMENT_API ExecutionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ExecutionSummary & WithTaskId(TaskIdT &&value)
AWS_SNOWDEVICEMANAGEMENT_API ExecutionSummary(Aws::Utils::Json::JsonView jsonValue)
ExecutionSummary & WithState(ExecutionState value)
AWS_SNOWDEVICEMANAGEMENT_API ExecutionSummary()=default
AWS_SNOWDEVICEMANAGEMENT_API Aws::Utils::Json::JsonValue Jsonize() const
ExecutionSummary & WithExecutionId(ExecutionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue