AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
CreateJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/JobCategory.h>
12#include <aws/sagemaker/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateJobRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateJob"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetJobName() const { return m_jobName; }
42 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
43 template <typename JobNameT = Aws::String>
44 void SetJobName(JobNameT&& value) {
45 m_jobNameHasBeenSet = true;
46 m_jobName = std::forward<JobNameT>(value);
47 }
48 template <typename JobNameT = Aws::String>
49 CreateJobRequest& WithJobName(JobNameT&& value) {
50 SetJobName(std::forward<JobNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
62 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
63 template <typename RoleArnT = Aws::String>
64 void SetRoleArn(RoleArnT&& value) {
65 m_roleArnHasBeenSet = true;
66 m_roleArn = std::forward<RoleArnT>(value);
67 }
68 template <typename RoleArnT = Aws::String>
69 CreateJobRequest& WithRoleArn(RoleArnT&& value) {
70 SetRoleArn(std::forward<RoleArnT>(value));
71 return *this;
72 }
74
76
80 inline JobCategory GetJobCategory() const { return m_jobCategory; }
81 inline bool JobCategoryHasBeenSet() const { return m_jobCategoryHasBeenSet; }
82 inline void SetJobCategory(JobCategory value) {
83 m_jobCategoryHasBeenSet = true;
84 m_jobCategory = value;
85 }
87 SetJobCategory(value);
88 return *this;
89 }
91
93
98 inline const Aws::String& GetJobConfigSchemaVersion() const { return m_jobConfigSchemaVersion; }
99 inline bool JobConfigSchemaVersionHasBeenSet() const { return m_jobConfigSchemaVersionHasBeenSet; }
100 template <typename JobConfigSchemaVersionT = Aws::String>
101 void SetJobConfigSchemaVersion(JobConfigSchemaVersionT&& value) {
102 m_jobConfigSchemaVersionHasBeenSet = true;
103 m_jobConfigSchemaVersion = std::forward<JobConfigSchemaVersionT>(value);
104 }
105 template <typename JobConfigSchemaVersionT = Aws::String>
106 CreateJobRequest& WithJobConfigSchemaVersion(JobConfigSchemaVersionT&& value) {
107 SetJobConfigSchemaVersion(std::forward<JobConfigSchemaVersionT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::String& GetJobConfigDocument() const { return m_jobConfigDocument; }
119 inline bool JobConfigDocumentHasBeenSet() const { return m_jobConfigDocumentHasBeenSet; }
120 template <typename JobConfigDocumentT = Aws::String>
121 void SetJobConfigDocument(JobConfigDocumentT&& value) {
122 m_jobConfigDocumentHasBeenSet = true;
123 m_jobConfigDocument = std::forward<JobConfigDocumentT>(value);
124 }
125 template <typename JobConfigDocumentT = Aws::String>
126 CreateJobRequest& WithJobConfigDocument(JobConfigDocumentT&& value) {
127 SetJobConfigDocument(std::forward<JobConfigDocumentT>(value));
128 return *this;
129 }
131
133
139 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Vector<Tag>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Vector<Tag>>
147 CreateJobRequest& WithTags(TagsT&& value) {
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsT = Tag>
152 CreateJobRequest& AddTags(TagsT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags.emplace_back(std::forward<TagsT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_jobName;
160
161 Aws::String m_roleArn;
162
163 JobCategory m_jobCategory{JobCategory::NOT_SET};
164
165 Aws::String m_jobConfigSchemaVersion;
166
167 Aws::String m_jobConfigDocument;
168
169 Aws::Vector<Tag> m_tags;
170 bool m_jobNameHasBeenSet = false;
171 bool m_roleArnHasBeenSet = false;
172 bool m_jobCategoryHasBeenSet = false;
173 bool m_jobConfigSchemaVersionHasBeenSet = false;
174 bool m_jobConfigDocumentHasBeenSet = false;
175 bool m_tagsHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace SageMaker
180} // namespace Aws
const Aws::String & GetRoleArn() const
void SetJobConfigDocument(JobConfigDocumentT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateJobRequest & WithJobName(JobNameT &&value)
AWS_SAGEMAKER_API CreateJobRequest()=default
CreateJobRequest & WithRoleArn(RoleArnT &&value)
CreateJobRequest & WithJobConfigDocument(JobConfigDocumentT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetJobConfigDocument() const
const Aws::String & GetJobConfigSchemaVersion() const
CreateJobRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetJobName() const
void SetJobConfigSchemaVersion(JobConfigSchemaVersionT &&value)
CreateJobRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateJobRequest & WithJobConfigSchemaVersion(JobConfigSchemaVersionT &&value)
CreateJobRequest & WithJobCategory(JobCategory value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector