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/mgn/Mgn_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mgn/model/InitiatedBy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mgn/model/JobStatus.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/mgn/model/JobType.h>
14#include <aws/mgn/model/ParticipatingServer.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace mgn
28{
29namespace Model
30{
31
37 class Job
38 {
39 public:
40 AWS_MGN_API Job() = default;
41 AWS_MGN_API Job(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MGN_API Job& operator=(Aws::Utils::Json::JsonView jsonValue);
44
45
47
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 Job& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
57
59
62 inline const Aws::String& GetCreationDateTime() const { return m_creationDateTime; }
63 inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
64 template<typename CreationDateTimeT = Aws::String>
65 void SetCreationDateTime(CreationDateTimeT&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::forward<CreationDateTimeT>(value); }
66 template<typename CreationDateTimeT = Aws::String>
67 Job& WithCreationDateTime(CreationDateTimeT&& value) { SetCreationDateTime(std::forward<CreationDateTimeT>(value)); return *this;}
69
71
74 inline const Aws::String& GetEndDateTime() const { return m_endDateTime; }
75 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
76 template<typename EndDateTimeT = Aws::String>
77 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
78 template<typename EndDateTimeT = Aws::String>
79 Job& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
81
83
86 inline InitiatedBy GetInitiatedBy() const { return m_initiatedBy; }
87 inline bool InitiatedByHasBeenSet() const { return m_initiatedByHasBeenSet; }
88 inline void SetInitiatedBy(InitiatedBy value) { m_initiatedByHasBeenSet = true; m_initiatedBy = value; }
89 inline Job& WithInitiatedBy(InitiatedBy value) { SetInitiatedBy(value); return *this;}
91
93
96 inline const Aws::String& GetJobID() const { return m_jobID; }
97 inline bool JobIDHasBeenSet() const { return m_jobIDHasBeenSet; }
98 template<typename JobIDT = Aws::String>
99 void SetJobID(JobIDT&& value) { m_jobIDHasBeenSet = true; m_jobID = std::forward<JobIDT>(value); }
100 template<typename JobIDT = Aws::String>
101 Job& WithJobID(JobIDT&& value) { SetJobID(std::forward<JobIDT>(value)); return *this;}
103
105
108 inline const Aws::Vector<ParticipatingServer>& GetParticipatingServers() const { return m_participatingServers; }
109 inline bool ParticipatingServersHasBeenSet() const { return m_participatingServersHasBeenSet; }
110 template<typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
111 void SetParticipatingServers(ParticipatingServersT&& value) { m_participatingServersHasBeenSet = true; m_participatingServers = std::forward<ParticipatingServersT>(value); }
112 template<typename ParticipatingServersT = Aws::Vector<ParticipatingServer>>
113 Job& WithParticipatingServers(ParticipatingServersT&& value) { SetParticipatingServers(std::forward<ParticipatingServersT>(value)); return *this;}
114 template<typename ParticipatingServersT = ParticipatingServer>
115 Job& AddParticipatingServers(ParticipatingServersT&& value) { m_participatingServersHasBeenSet = true; m_participatingServers.emplace_back(std::forward<ParticipatingServersT>(value)); return *this; }
117
119
122 inline JobStatus GetStatus() const { return m_status; }
123 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
124 inline void SetStatus(JobStatus value) { m_statusHasBeenSet = true; m_status = value; }
125 inline Job& WithStatus(JobStatus value) { SetStatus(value); return *this;}
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
136 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
137 Job& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
138 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
139 Job& AddTags(TagsKeyT&& key, TagsValueT&& value) {
140 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
141 }
143
145
148 inline JobType GetType() const { return m_type; }
149 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
150 inline void SetType(JobType value) { m_typeHasBeenSet = true; m_type = value; }
151 inline Job& WithType(JobType value) { SetType(value); return *this;}
153 private:
154
155 Aws::String m_arn;
156 bool m_arnHasBeenSet = false;
157
158 Aws::String m_creationDateTime;
159 bool m_creationDateTimeHasBeenSet = false;
160
161 Aws::String m_endDateTime;
162 bool m_endDateTimeHasBeenSet = false;
163
164 InitiatedBy m_initiatedBy{InitiatedBy::NOT_SET};
165 bool m_initiatedByHasBeenSet = false;
166
167 Aws::String m_jobID;
168 bool m_jobIDHasBeenSet = false;
169
170 Aws::Vector<ParticipatingServer> m_participatingServers;
171 bool m_participatingServersHasBeenSet = false;
172
174 bool m_statusHasBeenSet = false;
175
177 bool m_tagsHasBeenSet = false;
178
180 bool m_typeHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace mgn
185} // namespace Aws
JobStatus GetStatus() const
Definition Job.h:122
void SetCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:65
void SetEndDateTime(EndDateTimeT &&value)
Definition Job.h:77
InitiatedBy GetInitiatedBy() const
Definition Job.h:86
void SetJobID(JobIDT &&value)
Definition Job.h:99
const Aws::String & GetEndDateTime() const
Definition Job.h:74
bool ParticipatingServersHasBeenSet() const
Definition Job.h:109
void SetType(JobType value)
Definition Job.h:150
const Aws::String & GetArn() const
Definition Job.h:50
const Aws::String & GetJobID() const
Definition Job.h:96
Job & WithEndDateTime(EndDateTimeT &&value)
Definition Job.h:79
bool JobIDHasBeenSet() const
Definition Job.h:97
Job & WithTags(TagsT &&value)
Definition Job.h:137
void SetTags(TagsT &&value)
Definition Job.h:135
Job & WithInitiatedBy(InitiatedBy value)
Definition Job.h:89
const Aws::String & GetCreationDateTime() const
Definition Job.h:62
void SetParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:111
bool InitiatedByHasBeenSet() const
Definition Job.h:87
void SetArn(ArnT &&value)
Definition Job.h:53
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Job.h:132
bool TagsHasBeenSet() const
Definition Job.h:133
bool EndDateTimeHasBeenSet() const
Definition Job.h:75
void SetInitiatedBy(InitiatedBy value)
Definition Job.h:88
JobType GetType() const
Definition Job.h:148
Job & WithType(JobType value)
Definition Job.h:151
Job & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Job.h:139
bool CreationDateTimeHasBeenSet() const
Definition Job.h:63
Job & WithArn(ArnT &&value)
Definition Job.h:55
Job & WithStatus(JobStatus value)
Definition Job.h:125
const Aws::Vector< ParticipatingServer > & GetParticipatingServers() const
Definition Job.h:108
bool TypeHasBeenSet() const
Definition Job.h:149
void SetStatus(JobStatus value)
Definition Job.h:124
bool ArnHasBeenSet() const
Definition Job.h:51
AWS_MGN_API Job()=default
AWS_MGN_API Job & operator=(Aws::Utils::Json::JsonView jsonValue)
Job & WithCreationDateTime(CreationDateTimeT &&value)
Definition Job.h:67
AWS_MGN_API Job(Aws::Utils::Json::JsonView jsonValue)
Job & WithJobID(JobIDT &&value)
Definition Job.h:101
Job & WithParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:113
bool StatusHasBeenSet() const
Definition Job.h:123
Job & AddParticipatingServers(ParticipatingServersT &&value)
Definition Job.h:115
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