AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBatchSegmentJobRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/personalize/model/BatchSegmentJobInput.h>
11#include <aws/personalize/model/BatchSegmentJobOutput.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/personalize/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Personalize
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_PERSONALIZE_API CreateBatchSegmentJobRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBatchSegmentJob"; }
35
36 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
37
38 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetJobName() const{ return m_jobName; }
46 inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; }
47 inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; }
48 inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); }
49 inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); }
50 inline CreateBatchSegmentJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;}
51 inline CreateBatchSegmentJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;}
52 inline CreateBatchSegmentJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;}
54
56
60 inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
61 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
62 inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
63 inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
64 inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
66 inline CreateBatchSegmentJobRequest& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
67 inline CreateBatchSegmentJobRequest& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
69
71
77 inline const Aws::String& GetFilterArn() const{ return m_filterArn; }
78 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
79 inline void SetFilterArn(const Aws::String& value) { m_filterArnHasBeenSet = true; m_filterArn = value; }
80 inline void SetFilterArn(Aws::String&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::move(value); }
81 inline void SetFilterArn(const char* value) { m_filterArnHasBeenSet = true; m_filterArn.assign(value); }
82 inline CreateBatchSegmentJobRequest& WithFilterArn(const Aws::String& value) { SetFilterArn(value); return *this;}
83 inline CreateBatchSegmentJobRequest& WithFilterArn(Aws::String&& value) { SetFilterArn(std::move(value)); return *this;}
84 inline CreateBatchSegmentJobRequest& WithFilterArn(const char* value) { SetFilterArn(value); return *this;}
86
88
92 inline int GetNumResults() const{ return m_numResults; }
93 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
94 inline void SetNumResults(int value) { m_numResultsHasBeenSet = true; m_numResults = value; }
95 inline CreateBatchSegmentJobRequest& WithNumResults(int value) { SetNumResults(value); return *this;}
97
99
103 inline const BatchSegmentJobInput& GetJobInput() const{ return m_jobInput; }
104 inline bool JobInputHasBeenSet() const { return m_jobInputHasBeenSet; }
105 inline void SetJobInput(const BatchSegmentJobInput& value) { m_jobInputHasBeenSet = true; m_jobInput = value; }
106 inline void SetJobInput(BatchSegmentJobInput&& value) { m_jobInputHasBeenSet = true; m_jobInput = std::move(value); }
107 inline CreateBatchSegmentJobRequest& WithJobInput(const BatchSegmentJobInput& value) { SetJobInput(value); return *this;}
108 inline CreateBatchSegmentJobRequest& WithJobInput(BatchSegmentJobInput&& value) { SetJobInput(std::move(value)); return *this;}
110
112
115 inline const BatchSegmentJobOutput& GetJobOutput() const{ return m_jobOutput; }
116 inline bool JobOutputHasBeenSet() const { return m_jobOutputHasBeenSet; }
117 inline void SetJobOutput(const BatchSegmentJobOutput& value) { m_jobOutputHasBeenSet = true; m_jobOutput = value; }
118 inline void SetJobOutput(BatchSegmentJobOutput&& value) { m_jobOutputHasBeenSet = true; m_jobOutput = std::move(value); }
120 inline CreateBatchSegmentJobRequest& WithJobOutput(BatchSegmentJobOutput&& value) { SetJobOutput(std::move(value)); return *this;}
122
124
129 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
130 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
131 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
132 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
133 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
134 inline CreateBatchSegmentJobRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
135 inline CreateBatchSegmentJobRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
136 inline CreateBatchSegmentJobRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
138
140
145 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
146 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
147 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
148 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
149 inline CreateBatchSegmentJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
150 inline CreateBatchSegmentJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
151 inline CreateBatchSegmentJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
152 inline CreateBatchSegmentJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
154 private:
155
156 Aws::String m_jobName;
157 bool m_jobNameHasBeenSet = false;
158
159 Aws::String m_solutionVersionArn;
160 bool m_solutionVersionArnHasBeenSet = false;
161
162 Aws::String m_filterArn;
163 bool m_filterArnHasBeenSet = false;
164
165 int m_numResults;
166 bool m_numResultsHasBeenSet = false;
167
168 BatchSegmentJobInput m_jobInput;
169 bool m_jobInputHasBeenSet = false;
170
171 BatchSegmentJobOutput m_jobOutput;
172 bool m_jobOutputHasBeenSet = false;
173
174 Aws::String m_roleArn;
175 bool m_roleArnHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace Personalize
183} // namespace Aws
CreateBatchSegmentJobRequest & WithSolutionVersionArn(const Aws::String &value)
CreateBatchSegmentJobRequest & WithTags(Aws::Vector< Tag > &&value)
CreateBatchSegmentJobRequest & WithJobOutput(BatchSegmentJobOutput &&value)
CreateBatchSegmentJobRequest & WithJobInput(const BatchSegmentJobInput &value)
CreateBatchSegmentJobRequest & WithRoleArn(const Aws::String &value)
CreateBatchSegmentJobRequest & WithJobOutput(const BatchSegmentJobOutput &value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateBatchSegmentJobRequest & WithFilterArn(const char *value)
CreateBatchSegmentJobRequest & WithTags(const Aws::Vector< Tag > &value)
CreateBatchSegmentJobRequest & WithJobName(Aws::String &&value)
CreateBatchSegmentJobRequest & WithRoleArn(Aws::String &&value)
CreateBatchSegmentJobRequest & WithRoleArn(const char *value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBatchSegmentJobRequest & WithJobInput(BatchSegmentJobInput &&value)
CreateBatchSegmentJobRequest & WithFilterArn(Aws::String &&value)
CreateBatchSegmentJobRequest & WithFilterArn(const Aws::String &value)
CreateBatchSegmentJobRequest & WithJobName(const char *value)
CreateBatchSegmentJobRequest & WithSolutionVersionArn(const char *value)
CreateBatchSegmentJobRequest & WithJobName(const Aws::String &value)
CreateBatchSegmentJobRequest & WithSolutionVersionArn(Aws::String &&value)
CreateBatchSegmentJobRequest & AddTags(const Tag &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