AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DeviceJob.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/panorama/Panorama_EXPORTS.h>
10#include <aws/panorama/model/JobType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Panorama {
22namespace Model {
23
29class DeviceJob {
30 public:
31 AWS_PANORAMA_API DeviceJob() = default;
32 AWS_PANORAMA_API DeviceJob(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PANORAMA_API DeviceJob& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
41 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
42 template <typename CreatedTimeT = Aws::Utils::DateTime>
43 void SetCreatedTime(CreatedTimeT&& value) {
44 m_createdTimeHasBeenSet = true;
45 m_createdTime = std::forward<CreatedTimeT>(value);
46 }
47 template <typename CreatedTimeT = Aws::Utils::DateTime>
48 DeviceJob& WithCreatedTime(CreatedTimeT&& value) {
49 SetCreatedTime(std::forward<CreatedTimeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDeviceId() const { return m_deviceId; }
59 inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; }
60 template <typename DeviceIdT = Aws::String>
61 void SetDeviceId(DeviceIdT&& value) {
62 m_deviceIdHasBeenSet = true;
63 m_deviceId = std::forward<DeviceIdT>(value);
64 }
65 template <typename DeviceIdT = Aws::String>
66 DeviceJob& WithDeviceId(DeviceIdT&& value) {
67 SetDeviceId(std::forward<DeviceIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
77 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
78 template <typename DeviceNameT = Aws::String>
79 void SetDeviceName(DeviceNameT&& value) {
80 m_deviceNameHasBeenSet = true;
81 m_deviceName = std::forward<DeviceNameT>(value);
82 }
83 template <typename DeviceNameT = Aws::String>
84 DeviceJob& WithDeviceName(DeviceNameT&& value) {
85 SetDeviceName(std::forward<DeviceNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetJobId() const { return m_jobId; }
95 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
96 template <typename JobIdT = Aws::String>
97 void SetJobId(JobIdT&& value) {
98 m_jobIdHasBeenSet = true;
99 m_jobId = std::forward<JobIdT>(value);
100 }
101 template <typename JobIdT = Aws::String>
102 DeviceJob& WithJobId(JobIdT&& value) {
103 SetJobId(std::forward<JobIdT>(value));
104 return *this;
105 }
107
109
112 inline JobType GetJobType() const { return m_jobType; }
113 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
114 inline void SetJobType(JobType value) {
115 m_jobTypeHasBeenSet = true;
116 m_jobType = value;
117 }
119 SetJobType(value);
120 return *this;
121 }
123 private:
124 Aws::Utils::DateTime m_createdTime{};
125
126 Aws::String m_deviceId;
127
128 Aws::String m_deviceName;
129
130 Aws::String m_jobId;
131
132 JobType m_jobType{JobType::NOT_SET};
133 bool m_createdTimeHasBeenSet = false;
134 bool m_deviceIdHasBeenSet = false;
135 bool m_deviceNameHasBeenSet = false;
136 bool m_jobIdHasBeenSet = false;
137 bool m_jobTypeHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Panorama
142} // namespace Aws
DeviceJob & WithCreatedTime(CreatedTimeT &&value)
Definition DeviceJob.h:48
void SetDeviceId(DeviceIdT &&value)
Definition DeviceJob.h:61
AWS_PANORAMA_API DeviceJob & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeviceName(DeviceNameT &&value)
Definition DeviceJob.h:79
AWS_PANORAMA_API DeviceJob()=default
const Aws::String & GetDeviceName() const
Definition DeviceJob.h:76
void SetCreatedTime(CreatedTimeT &&value)
Definition DeviceJob.h:43
void SetJobType(JobType value)
Definition DeviceJob.h:114
DeviceJob & WithDeviceId(DeviceIdT &&value)
Definition DeviceJob.h:66
const Aws::String & GetJobId() const
Definition DeviceJob.h:94
const Aws::Utils::DateTime & GetCreatedTime() const
Definition DeviceJob.h:40
AWS_PANORAMA_API DeviceJob(Aws::Utils::Json::JsonView jsonValue)
DeviceJob & WithJobType(JobType value)
Definition DeviceJob.h:118
const Aws::String & GetDeviceId() const
Definition DeviceJob.h:58
AWS_PANORAMA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetJobId(JobIdT &&value)
Definition DeviceJob.h:97
DeviceJob & WithDeviceName(DeviceNameT &&value)
Definition DeviceJob.h:84
DeviceJob & WithJobId(JobIdT &&value)
Definition DeviceJob.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue