AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JobSummary.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/braket/model/JobPrimaryStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Braket
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_BRAKET_API JobSummary();
39 AWS_BRAKET_API JobSummary(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
49 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
50 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
51 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
52 inline JobSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
53 inline JobSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
55
57
61 inline const Aws::String& GetDevice() const{ return m_device; }
62 inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; }
63 inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; }
64 inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); }
65 inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); }
66 inline JobSummary& WithDevice(const Aws::String& value) { SetDevice(value); return *this;}
67 inline JobSummary& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;}
68 inline JobSummary& WithDevice(const char* value) { SetDevice(value); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetEndedAt() const{ return m_endedAt; }
76 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
77 inline void SetEndedAt(const Aws::Utils::DateTime& value) { m_endedAtHasBeenSet = true; m_endedAt = value; }
78 inline void SetEndedAt(Aws::Utils::DateTime&& value) { m_endedAtHasBeenSet = true; m_endedAt = std::move(value); }
79 inline JobSummary& WithEndedAt(const Aws::Utils::DateTime& value) { SetEndedAt(value); return *this;}
80 inline JobSummary& WithEndedAt(Aws::Utils::DateTime&& value) { SetEndedAt(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetJobArn() const{ return m_jobArn; }
88 inline bool JobArnHasBeenSet() const { return m_jobArnHasBeenSet; }
89 inline void SetJobArn(const Aws::String& value) { m_jobArnHasBeenSet = true; m_jobArn = value; }
90 inline void SetJobArn(Aws::String&& value) { m_jobArnHasBeenSet = true; m_jobArn = std::move(value); }
91 inline void SetJobArn(const char* value) { m_jobArnHasBeenSet = true; m_jobArn.assign(value); }
92 inline JobSummary& WithJobArn(const Aws::String& value) { SetJobArn(value); return *this;}
93 inline JobSummary& WithJobArn(Aws::String&& value) { SetJobArn(std::move(value)); return *this;}
94 inline JobSummary& WithJobArn(const char* value) { SetJobArn(value); return *this;}
96
98
101 inline const Aws::String& GetJobName() const{ return m_jobName; }
102 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
103 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
104 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
105 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
106 inline JobSummary& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
107 inline JobSummary& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
108 inline JobSummary& WithJobName(const char* value) { SetJobName(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
116 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
117 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
118 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
119 inline JobSummary& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
120 inline JobSummary& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
122
124
127 inline const JobPrimaryStatus& GetStatus() const{ return m_status; }
128 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 inline void SetStatus(const JobPrimaryStatus& value) { m_statusHasBeenSet = true; m_status = value; }
130 inline void SetStatus(JobPrimaryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
131 inline JobSummary& WithStatus(const JobPrimaryStatus& value) { SetStatus(value); return *this;}
132 inline JobSummary& WithStatus(JobPrimaryStatus&& value) { SetStatus(std::move(value)); return *this;}
134
136
140 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
143 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
144 inline JobSummary& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
145 inline JobSummary& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
146 inline JobSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
147 inline JobSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
148 inline JobSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
149 inline JobSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
150 inline JobSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
151 inline JobSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
152 inline JobSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154 private:
155
156 Aws::Utils::DateTime m_createdAt;
157 bool m_createdAtHasBeenSet = false;
158
159 Aws::String m_device;
160 bool m_deviceHasBeenSet = false;
161
162 Aws::Utils::DateTime m_endedAt;
163 bool m_endedAtHasBeenSet = false;
164
165 Aws::String m_jobArn;
166 bool m_jobArnHasBeenSet = false;
167
168 Aws::String m_jobName;
169 bool m_jobNameHasBeenSet = false;
170
171 Aws::Utils::DateTime m_startedAt;
172 bool m_startedAtHasBeenSet = false;
173
174 JobPrimaryStatus m_status;
175 bool m_statusHasBeenSet = false;
176
178 bool m_tagsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace Braket
183} // namespace Aws
JobSummary & AddTags(const Aws::String &key, const Aws::String &value)
Definition JobSummary.h:146
AWS_BRAKET_API JobSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
JobSummary & WithJobArn(Aws::String &&value)
Definition JobSummary.h:93
JobSummary & WithStartedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:119
void SetStartedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:117
AWS_BRAKET_API JobSummary(Aws::Utils::Json::JsonView jsonValue)
JobSummary & WithJobName(const char *value)
Definition JobSummary.h:108
JobSummary & WithEndedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:80
void SetJobArn(const char *value)
Definition JobSummary.h:91
JobSummary & AddTags(const Aws::String &key, Aws::String &&value)
Definition JobSummary.h:148
void SetDevice(const char *value)
Definition JobSummary.h:65
void SetJobArn(Aws::String &&value)
Definition JobSummary.h:90
JobSummary & WithDevice(Aws::String &&value)
Definition JobSummary.h:67
void SetJobName(Aws::String &&value)
Definition JobSummary.h:104
JobSummary & WithStatus(JobPrimaryStatus &&value)
Definition JobSummary.h:132
JobSummary & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition JobSummary.h:145
JobSummary & WithStartedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:120
void SetStatus(const JobPrimaryStatus &value)
Definition JobSummary.h:129
const JobPrimaryStatus & GetStatus() const
Definition JobSummary.h:127
void SetJobName(const char *value)
Definition JobSummary.h:105
const Aws::String & GetJobName() const
Definition JobSummary.h:101
JobSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:52
const Aws::Utils::DateTime & GetEndedAt() const
Definition JobSummary.h:75
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition JobSummary.h:140
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition JobSummary.h:142
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition JobSummary.h:143
JobSummary & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition JobSummary.h:144
const Aws::String & GetDevice() const
Definition JobSummary.h:61
JobSummary & AddTags(const char *key, const char *value)
Definition JobSummary.h:152
void SetEndedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:78
JobSummary & WithJobName(Aws::String &&value)
Definition JobSummary.h:107
JobSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:53
JobSummary & AddTags(Aws::String &&key, Aws::String &&value)
Definition JobSummary.h:149
JobSummary & WithJobArn(const char *value)
Definition JobSummary.h:94
const Aws::Utils::DateTime & GetStartedAt() const
Definition JobSummary.h:115
void SetDevice(const Aws::String &value)
Definition JobSummary.h:63
void SetStatus(JobPrimaryStatus &&value)
Definition JobSummary.h:130
JobSummary & WithDevice(const char *value)
Definition JobSummary.h:68
void SetStartedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:118
JobSummary & AddTags(Aws::String &&key, const Aws::String &value)
Definition JobSummary.h:147
AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const
JobSummary & WithDevice(const Aws::String &value)
Definition JobSummary.h:66
const Aws::Utils::DateTime & GetCreatedAt() const
Definition JobSummary.h:48
void SetDevice(Aws::String &&value)
Definition JobSummary.h:64
void SetEndedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:77
JobSummary & WithJobArn(const Aws::String &value)
Definition JobSummary.h:92
const Aws::String & GetJobArn() const
Definition JobSummary.h:87
void SetJobName(const Aws::String &value)
Definition JobSummary.h:103
JobSummary & AddTags(Aws::String &&key, const char *value)
Definition JobSummary.h:151
JobSummary & WithEndedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:79
JobSummary & WithStatus(const JobPrimaryStatus &value)
Definition JobSummary.h:131
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition JobSummary.h:50
JobSummary & AddTags(const char *key, Aws::String &&value)
Definition JobSummary.h:150
void SetJobArn(const Aws::String &value)
Definition JobSummary.h:89
JobSummary & WithJobName(const Aws::String &value)
Definition JobSummary.h:106
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition JobSummary.h:51
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