AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateSolutionVersionRequest.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/personalize/PersonalizeRequest.h>
10#include <aws/personalize/Personalize_EXPORTS.h>
11#include <aws/personalize/model/Tag.h>
12#include <aws/personalize/model/TrainingMode.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Personalize {
18namespace Model {
19
23 public:
24 AWS_PERSONALIZE_API CreateSolutionVersionRequest() = 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 "CreateSolutionVersion"; }
31
32 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
33
34 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetSolutionArn() const { return m_solutionArn; }
60 inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
61 template <typename SolutionArnT = Aws::String>
62 void SetSolutionArn(SolutionArnT&& value) {
63 m_solutionArnHasBeenSet = true;
64 m_solutionArn = std::forward<SolutionArnT>(value);
65 }
66 template <typename SolutionArnT = Aws::String>
68 SetSolutionArn(std::forward<SolutionArnT>(value));
69 return *this;
70 }
72
74
96 inline TrainingMode GetTrainingMode() const { return m_trainingMode; }
97 inline bool TrainingModeHasBeenSet() const { return m_trainingModeHasBeenSet; }
98 inline void SetTrainingMode(TrainingMode value) {
99 m_trainingModeHasBeenSet = true;
100 m_trainingMode = value;
101 }
103 SetTrainingMode(value);
104 return *this;
105 }
107
109
114 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Vector<Tag>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Vector<Tag>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsT = Tag>
128 m_tagsHasBeenSet = true;
129 m_tags.emplace_back(std::forward<TagsT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_name;
135
136 Aws::String m_solutionArn;
137
138 TrainingMode m_trainingMode{TrainingMode::NOT_SET};
139
140 Aws::Vector<Tag> m_tags;
141 bool m_nameHasBeenSet = false;
142 bool m_solutionArnHasBeenSet = false;
143 bool m_trainingModeHasBeenSet = false;
144 bool m_tagsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace Personalize
149} // namespace Aws
CreateSolutionVersionRequest & WithName(NameT &&value)
CreateSolutionVersionRequest & WithSolutionArn(SolutionArnT &&value)
CreateSolutionVersionRequest & AddTags(TagsT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_PERSONALIZE_API CreateSolutionVersionRequest()=default
CreateSolutionVersionRequest & WithTags(TagsT &&value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateSolutionVersionRequest & WithTrainingMode(TrainingMode 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