AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
JobDetailsEntity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/JobAttachmentSettings.h>
12#include <aws/deadline/model/JobParameter.h>
13#include <aws/deadline/model/JobRunAsUser.h>
14#include <aws/deadline/model/PathMappingRule.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace deadline {
26namespace Model {
27
34 public:
35 AWS_DEADLINE_API JobDetailsEntity() = default;
36 AWS_DEADLINE_API JobDetailsEntity(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetJobId() const { return m_jobId; }
45 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
46 template <typename JobIdT = Aws::String>
47 void SetJobId(JobIdT&& value) {
48 m_jobIdHasBeenSet = true;
49 m_jobId = std::forward<JobIdT>(value);
50 }
51 template <typename JobIdT = Aws::String>
52 JobDetailsEntity& WithJobId(JobIdT&& value) {
53 SetJobId(std::forward<JobIdT>(value));
54 return *this;
55 }
57
59
62 inline const JobAttachmentSettings& GetJobAttachmentSettings() const { return m_jobAttachmentSettings; }
63 inline bool JobAttachmentSettingsHasBeenSet() const { return m_jobAttachmentSettingsHasBeenSet; }
64 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
65 void SetJobAttachmentSettings(JobAttachmentSettingsT&& value) {
66 m_jobAttachmentSettingsHasBeenSet = true;
67 m_jobAttachmentSettings = std::forward<JobAttachmentSettingsT>(value);
68 }
69 template <typename JobAttachmentSettingsT = JobAttachmentSettings>
70 JobDetailsEntity& WithJobAttachmentSettings(JobAttachmentSettingsT&& value) {
71 SetJobAttachmentSettings(std::forward<JobAttachmentSettingsT>(value));
72 return *this;
73 }
75
77
80 inline const JobRunAsUser& GetJobRunAsUser() const { return m_jobRunAsUser; }
81 inline bool JobRunAsUserHasBeenSet() const { return m_jobRunAsUserHasBeenSet; }
82 template <typename JobRunAsUserT = JobRunAsUser>
83 void SetJobRunAsUser(JobRunAsUserT&& value) {
84 m_jobRunAsUserHasBeenSet = true;
85 m_jobRunAsUser = std::forward<JobRunAsUserT>(value);
86 }
87 template <typename JobRunAsUserT = JobRunAsUser>
88 JobDetailsEntity& WithJobRunAsUser(JobRunAsUserT&& value) {
89 SetJobRunAsUser(std::forward<JobRunAsUserT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
99 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
100 template <typename LogGroupNameT = Aws::String>
101 void SetLogGroupName(LogGroupNameT&& value) {
102 m_logGroupNameHasBeenSet = true;
103 m_logGroupName = std::forward<LogGroupNameT>(value);
104 }
105 template <typename LogGroupNameT = Aws::String>
106 JobDetailsEntity& WithLogGroupName(LogGroupNameT&& value) {
107 SetLogGroupName(std::forward<LogGroupNameT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetQueueRoleArn() const { return m_queueRoleArn; }
117 inline bool QueueRoleArnHasBeenSet() const { return m_queueRoleArnHasBeenSet; }
118 template <typename QueueRoleArnT = Aws::String>
119 void SetQueueRoleArn(QueueRoleArnT&& value) {
120 m_queueRoleArnHasBeenSet = true;
121 m_queueRoleArn = std::forward<QueueRoleArnT>(value);
122 }
123 template <typename QueueRoleArnT = Aws::String>
124 JobDetailsEntity& WithQueueRoleArn(QueueRoleArnT&& value) {
125 SetQueueRoleArn(std::forward<QueueRoleArnT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Map<Aws::String, JobParameter>& GetParameters() const { return m_parameters; }
135 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
136 template <typename ParametersT = Aws::Map<Aws::String, JobParameter>>
137 void SetParameters(ParametersT&& value) {
138 m_parametersHasBeenSet = true;
139 m_parameters = std::forward<ParametersT>(value);
140 }
141 template <typename ParametersT = Aws::Map<Aws::String, JobParameter>>
142 JobDetailsEntity& WithParameters(ParametersT&& value) {
143 SetParameters(std::forward<ParametersT>(value));
144 return *this;
145 }
146 template <typename ParametersKeyT = Aws::String, typename ParametersValueT = JobParameter>
147 JobDetailsEntity& AddParameters(ParametersKeyT&& key, ParametersValueT&& value) {
148 m_parametersHasBeenSet = true;
149 m_parameters.emplace(std::forward<ParametersKeyT>(key), std::forward<ParametersValueT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
159 inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; }
160 template <typename SchemaVersionT = Aws::String>
161 void SetSchemaVersion(SchemaVersionT&& value) {
162 m_schemaVersionHasBeenSet = true;
163 m_schemaVersion = std::forward<SchemaVersionT>(value);
164 }
165 template <typename SchemaVersionT = Aws::String>
166 JobDetailsEntity& WithSchemaVersion(SchemaVersionT&& value) {
167 SetSchemaVersion(std::forward<SchemaVersionT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Vector<PathMappingRule>& GetPathMappingRules() const { return m_pathMappingRules; }
177 inline bool PathMappingRulesHasBeenSet() const { return m_pathMappingRulesHasBeenSet; }
178 template <typename PathMappingRulesT = Aws::Vector<PathMappingRule>>
179 void SetPathMappingRules(PathMappingRulesT&& value) {
180 m_pathMappingRulesHasBeenSet = true;
181 m_pathMappingRules = std::forward<PathMappingRulesT>(value);
182 }
183 template <typename PathMappingRulesT = Aws::Vector<PathMappingRule>>
184 JobDetailsEntity& WithPathMappingRules(PathMappingRulesT&& value) {
185 SetPathMappingRules(std::forward<PathMappingRulesT>(value));
186 return *this;
187 }
188 template <typename PathMappingRulesT = PathMappingRule>
189 JobDetailsEntity& AddPathMappingRules(PathMappingRulesT&& value) {
190 m_pathMappingRulesHasBeenSet = true;
191 m_pathMappingRules.emplace_back(std::forward<PathMappingRulesT>(value));
192 return *this;
193 }
195 private:
196 Aws::String m_jobId;
197
198 JobAttachmentSettings m_jobAttachmentSettings;
199
200 JobRunAsUser m_jobRunAsUser;
201
202 Aws::String m_logGroupName;
203
204 Aws::String m_queueRoleArn;
205
207
208 Aws::String m_schemaVersion;
209
210 Aws::Vector<PathMappingRule> m_pathMappingRules;
211 bool m_jobIdHasBeenSet = false;
212 bool m_jobAttachmentSettingsHasBeenSet = false;
213 bool m_jobRunAsUserHasBeenSet = false;
214 bool m_logGroupNameHasBeenSet = false;
215 bool m_queueRoleArnHasBeenSet = false;
216 bool m_parametersHasBeenSet = false;
217 bool m_schemaVersionHasBeenSet = false;
218 bool m_pathMappingRulesHasBeenSet = false;
219};
220
221} // namespace Model
222} // namespace deadline
223} // namespace Aws
JobDetailsEntity & WithParameters(ParametersT &&value)
void SetJobRunAsUser(JobRunAsUserT &&value)
void SetSchemaVersion(SchemaVersionT &&value)
const Aws::String & GetQueueRoleArn() const
JobDetailsEntity & WithSchemaVersion(SchemaVersionT &&value)
const Aws::Map< Aws::String, JobParameter > & GetParameters() const
const Aws::String & GetSchemaVersion() const
void SetJobAttachmentSettings(JobAttachmentSettingsT &&value)
const JobRunAsUser & GetJobRunAsUser() const
AWS_DEADLINE_API JobDetailsEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
const JobAttachmentSettings & GetJobAttachmentSettings() const
JobDetailsEntity & WithJobId(JobIdT &&value)
void SetQueueRoleArn(QueueRoleArnT &&value)
void SetParameters(ParametersT &&value)
void SetLogGroupName(LogGroupNameT &&value)
JobDetailsEntity & WithPathMappingRules(PathMappingRulesT &&value)
void SetPathMappingRules(PathMappingRulesT &&value)
JobDetailsEntity & AddParameters(ParametersKeyT &&key, ParametersValueT &&value)
const Aws::String & GetJobId() const
JobDetailsEntity & AddPathMappingRules(PathMappingRulesT &&value)
JobDetailsEntity & WithQueueRoleArn(QueueRoleArnT &&value)
const Aws::Vector< PathMappingRule > & GetPathMappingRules() const
AWS_DEADLINE_API JobDetailsEntity()=default
JobDetailsEntity & WithJobRunAsUser(JobRunAsUserT &&value)
JobDetailsEntity & WithJobAttachmentSettings(JobAttachmentSettingsT &&value)
AWS_DEADLINE_API JobDetailsEntity(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
JobDetailsEntity & WithLogGroupName(LogGroupNameT &&value)
const Aws::String & GetLogGroupName() const
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