AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename JobNameT = Aws::String>
48 void SetJobName(JobNameT&& value) { m_jobNameHasBeenSet = true; m_jobName = std::forward<JobNameT>(value); }
49 template<typename JobNameT = Aws::String>
50 CreateBatchSegmentJobRequest& WithJobName(JobNameT&& value) { SetJobName(std::forward<JobNameT>(value)); return *this;}
52
54
58 inline const Aws::String& GetSolutionVersionArn() const { return m_solutionVersionArn; }
59 inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
60 template<typename SolutionVersionArnT = Aws::String>
61 void SetSolutionVersionArn(SolutionVersionArnT&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::forward<SolutionVersionArnT>(value); }
62 template<typename SolutionVersionArnT = Aws::String>
63 CreateBatchSegmentJobRequest& WithSolutionVersionArn(SolutionVersionArnT&& value) { SetSolutionVersionArn(std::forward<SolutionVersionArnT>(value)); return *this;}
65
67
73 inline const Aws::String& GetFilterArn() const { return m_filterArn; }
74 inline bool FilterArnHasBeenSet() const { return m_filterArnHasBeenSet; }
75 template<typename FilterArnT = Aws::String>
76 void SetFilterArn(FilterArnT&& value) { m_filterArnHasBeenSet = true; m_filterArn = std::forward<FilterArnT>(value); }
77 template<typename FilterArnT = Aws::String>
78 CreateBatchSegmentJobRequest& WithFilterArn(FilterArnT&& value) { SetFilterArn(std::forward<FilterArnT>(value)); return *this;}
80
82
86 inline int GetNumResults() const { return m_numResults; }
87 inline bool NumResultsHasBeenSet() const { return m_numResultsHasBeenSet; }
88 inline void SetNumResults(int value) { m_numResultsHasBeenSet = true; m_numResults = value; }
89 inline CreateBatchSegmentJobRequest& WithNumResults(int value) { SetNumResults(value); return *this;}
91
93
97 inline const BatchSegmentJobInput& GetJobInput() const { return m_jobInput; }
98 inline bool JobInputHasBeenSet() const { return m_jobInputHasBeenSet; }
99 template<typename JobInputT = BatchSegmentJobInput>
100 void SetJobInput(JobInputT&& value) { m_jobInputHasBeenSet = true; m_jobInput = std::forward<JobInputT>(value); }
101 template<typename JobInputT = BatchSegmentJobInput>
102 CreateBatchSegmentJobRequest& WithJobInput(JobInputT&& value) { SetJobInput(std::forward<JobInputT>(value)); return *this;}
104
106
109 inline const BatchSegmentJobOutput& GetJobOutput() const { return m_jobOutput; }
110 inline bool JobOutputHasBeenSet() const { return m_jobOutputHasBeenSet; }
111 template<typename JobOutputT = BatchSegmentJobOutput>
112 void SetJobOutput(JobOutputT&& value) { m_jobOutputHasBeenSet = true; m_jobOutput = std::forward<JobOutputT>(value); }
113 template<typename JobOutputT = BatchSegmentJobOutput>
114 CreateBatchSegmentJobRequest& WithJobOutput(JobOutputT&& value) { SetJobOutput(std::forward<JobOutputT>(value)); return *this;}
116
118
123 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
124 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
125 template<typename RoleArnT = Aws::String>
126 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
127 template<typename RoleArnT = Aws::String>
128 CreateBatchSegmentJobRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
130
132
137 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
138 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
139 template<typename TagsT = Aws::Vector<Tag>>
140 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
141 template<typename TagsT = Aws::Vector<Tag>>
142 CreateBatchSegmentJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
143 template<typename TagsT = Tag>
144 CreateBatchSegmentJobRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
146 private:
147
148 Aws::String m_jobName;
149 bool m_jobNameHasBeenSet = false;
150
151 Aws::String m_solutionVersionArn;
152 bool m_solutionVersionArnHasBeenSet = false;
153
154 Aws::String m_filterArn;
155 bool m_filterArnHasBeenSet = false;
156
157 int m_numResults{0};
158 bool m_numResultsHasBeenSet = false;
159
160 BatchSegmentJobInput m_jobInput;
161 bool m_jobInputHasBeenSet = false;
162
163 BatchSegmentJobOutput m_jobOutput;
164 bool m_jobOutputHasBeenSet = false;
165
166 Aws::String m_roleArn;
167 bool m_roleArnHasBeenSet = false;
168
169 Aws::Vector<Tag> m_tags;
170 bool m_tagsHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace Personalize
175} // namespace Aws
CreateBatchSegmentJobRequest & WithJobInput(JobInputT &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateBatchSegmentJobRequest & WithFilterArn(FilterArnT &&value)
CreateBatchSegmentJobRequest & WithJobName(JobNameT &&value)
CreateBatchSegmentJobRequest & WithRoleArn(RoleArnT &&value)
CreateBatchSegmentJobRequest & WithTags(TagsT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBatchSegmentJobRequest & WithSolutionVersionArn(SolutionVersionArnT &&value)
CreateBatchSegmentJobRequest & WithJobOutput(JobOutputT &&value)
CreateBatchSegmentJobRequest & AddTags(TagsT &&value)
AWS_PERSONALIZE_API CreateBatchSegmentJobRequest()=default
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