AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Job.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/drs/model/InitiatedBy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/drs/model/JobStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/drs/model/JobType.h>
14#include <aws/drs/model/ParticipatingResource.h>
15#include <aws/drs/model/ParticipatingServer.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace drs
29{
30namespace Model
31{
32
38 class Job
39 {
40 public:
41 AWS_DRS_API Job() = default;
42 AWS_DRS_API Job(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DRS_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetArn() const { return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 Job& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
63 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
64 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
65 template<typename CreationDateTimeT = Aws::String>
66 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
67 template<typename CreationDateTimeT = Aws::String>
68 Job& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
70
72
75 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
76 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
77 template<typename EndDateTimeT = Aws::String>
78 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
79 template<typename EndDateTimeT = Aws::String>
80 Job& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
82
84
87 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
88 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
89 inline void SetInitiatedBy(InitiatedBy value) { m_initiatedByHasBeenSet = true; m_initiatedBy = value; }
90 inline Job& WithInitiatedBy(InitiatedBy value) { SetInitiatedBy(value); return *this;}
92
94
97 inline const Aws::String& GetJobID() const { return m_jobID; }
98 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
99 template<typename JobIDT = Aws::String>
100 void SetJobID(JobIDT&& value) { m_jobIDHasBeenSet = true; m_jobID = std::forward<JobIDT>(value); }
101 template<typename JobIDT = Aws::String>
102 Job& WithJobID(JobIDT&& value) { SetJobID(std::forward<JobIDT>(value)); return *this;}
104
106
109 inline const Aws::Vector<ParticipatingResource>& GetParticipatingResources() const { return m_participatingResources; }
110 inline bool ParticipatingResourcesHasBeenSet() const { return m_participatingResourcesHasBeenSet; }
111 template<typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
112 void SetParticipatingResources(ParticipatingResourcesT&& value) { m_participatingResourcesHasBeenSet = true; m_participatingResources = std::forward<ParticipatingResourcesT>(value); }
113 template<typename ParticipatingResourcesT = Aws::Vector<ParticipatingResource>>
114 Job& WithParticipatingResources(ParticipatingResourcesT&& value) { SetParticipatingResources(std::forward<ParticipatingResourcesT>(value)); return *this;}
115 template<typename ParticipatingResourcesT = ParticipatingResource>
116 Job& AddParticipatingResources(ParticipatingResourcesT&& value) { m_participatingResourcesHasBeenSet = true; m_participatingResources.emplace_back(std::forward<ParticipatingResourcesT>(value)); return *this; }
118
120
123 inline const Aws::Vector<ParticipatingServer>& GetParticipatingServers() const { return m_participatingServers; }
124 inline bool ParticipatingServersHasBeenSet() const { return m_participatingServersHasBeenSet; }
125 template<typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
126 void SetParticipatingServers(ParticipatingServersT&& value) { m_participatingServersHasBeenSet = true; m_participatingServers = std::forward<ParticipatingServersT>(value); }
127 template<typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
128 Job& WithParticipatingServers(ParticipatingServersT&& value) { SetParticipatingServers(std::forward<ParticipatingServersT>(value)); return *this;}
129 template<typename ParticipatingServersT = ParticipatingServer>
130 Job& AddParticipatingServers(ParticipatingServersT&& value) { m_participatingServersHasBeenSet = true; m_participatingServers.emplace_back(std::forward<ParticipatingServersT>(value)); return *this; }
132
134
137 inline JobStatus GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
140 inline Job& WithStatus(JobStatus value) { SetStatus(value); return *this;}
142
144
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
152 Job& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 Job& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
156 }
158
160
163 inline JobType GetType() const { return m_type; }
164 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
165 inline void SetType(JobType value) { m_typeHasBeenSet = true; m_type = value; }
166 inline Job& WithType(JobType value) { SetType(value); return *this;}
168 private:
169
170 Aws::String m_arn;
171 bool m_arnHasBeenSet = false;
172
173 Aws::String m_creationDateTime;
174 bool m_creationDateTimeHasBeenSet = false;
175
176 Aws::String m_endDateTime;
177 bool m_endDateTimeHasBeenSet = false;
178
179 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
180 bool m_initiatedByHasBeenSet = false;
181
182 Aws::String m_jobID;
183 bool m_jobIDHasBeenSet = false;
184
185 Aws::Vector<ParticipatingResource> m_participatingResources;
186 bool m_participatingResourcesHasBeenSet = false;
187
188 Aws::Vector<ParticipatingServer> m_participatingServers;
189 bool m_participatingServersHasBeenSet = false;
190
192 bool m_statusHasBeenSet = false;
193
195 bool m_tagsHasBeenSet = false;
196
198 bool m_typeHasBeenSet = false;
199 };
200
201} // namespace Model
202} // namespace drs
203} // namespace Aws
void SetArn(ArnT &&value)
Definition Job.h:54
void SetType(JobType value)
Definition Job.h:165
void SetEndDateTime(EndDateTimeT &&value)
Definition Job.h:78
bool TagsHasBeenSet() const
Definition Job.h:148
AWS_DRS_API Job(Aws::Utils::Json::JsonView jsonValue)
void SetInitiatedBy(InitiatedBy value)
Definition Job.h:89
Job & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Job.h:154
const Aws::String & GetArn() const
Definition Job.h:51
JobStatus GetStatus() const
Definition Job.h:137
Job & WithJobID(JobIDT &&value)
Definition Job.h:102
void SetTags(TagsT &&value)
Definition Job.h:150
Job & WithEndDateTime(EndDateTimeT &&value)
Definition Job.h:80
Job & WithParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:128
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Job.h:147
bool CreationDateTimeHasBeenSet() const
Definition Job.h:64
InitiatedBy GetInitiatedBy() const
Definition Job.h:87
Job & WithInitiatedBy(InitiatedBy value)
Definition Job.h:90
void SetStatus(JobStatus value)
Definition Job.h:139
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
Definition Job.h:123
const Aws::Vector< ParticipatingResource > & GetParticipatingResources() const
Definition Job.h:109
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:66
AWS_DRS_API Job()=default
bool EndDateTimeHasBeenSet() const
Definition Job.h:76
const Aws::String & GetEndDateTime() const
Definition Job.h:75
Job & WithParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:114
Job & WithArn(ArnT &&value)
Definition Job.h:56
bool StatusHasBeenSet() const
Definition Job.h:138
bool InitiatedByHasBeenSet() const
Definition Job.h:88
bool TypeHasBeenSet() const
Definition Job.h:164
void SetParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:112
JobType GetType() const
Definition Job.h:163
Job & AddParticipatingResources(ParticipatingResourcesT &&value)
Definition Job.h:116
Job & AddParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:130
const Aws::String & GetJobID() const
Definition Job.h:97
void SetJobID(JobIDT &&value)
Definition Job.h:100
bool JobIDHasBeenSet() const
Definition Job.h:98
AWS_DRS_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
Job & WithCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:68
Job & WithType(JobType value)
Definition Job.h:166
bool ArnHasBeenSet() const
Definition Job.h:52
Job & WithTags(TagsT &&value)
Definition Job.h:152
void SetParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:126
Job & WithStatus(JobStatus value)
Definition Job.h:140
bool ParticipatingServersHasBeenSet() const
Definition Job.h:124
const Aws::String & GetCreationDateTime() const
Definition Job.h:63
bool ParticipatingResourcesHasBeenSet() const
Definition Job.h:110
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue