AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSolutionVersionRequest.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/TrainingMode.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/personalize/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Personalize
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_PERSONALIZE_API CreateSolutionVersionRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateSolutionVersion"; }
34
35 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
36
37 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetName() const{ return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
47 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
48 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
49 inline CreateSolutionVersionRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
50 inline CreateSolutionVersionRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
51 inline CreateSolutionVersionRequest& WithName(const char* value) { SetName(value); return *this;}
53
55
59 inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; }
60 inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
61 inline void SetSolutionArn(const Aws::String& value) { m_solutionArnHasBeenSet = true; m_solutionArn = value; }
62 inline void SetSolutionArn(Aws::String&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::move(value); }
63 inline void SetSolutionArn(const char* value) { m_solutionArnHasBeenSet = true; m_solutionArn.assign(value); }
64 inline CreateSolutionVersionRequest& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;}
65 inline CreateSolutionVersionRequest& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;}
66 inline CreateSolutionVersionRequest& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;}
68
70
92 inline const TrainingMode& GetTrainingMode() const{ return m_trainingMode; }
93 inline bool TrainingModeHasBeenSet() const { return m_trainingModeHasBeenSet; }
94 inline void SetTrainingMode(const TrainingMode& value) { m_trainingModeHasBeenSet = true; m_trainingMode = value; }
95 inline void SetTrainingMode(TrainingMode&& value) { m_trainingModeHasBeenSet = true; m_trainingMode = std::move(value); }
96 inline CreateSolutionVersionRequest& WithTrainingMode(const TrainingMode& value) { SetTrainingMode(value); return *this;}
97 inline CreateSolutionVersionRequest& WithTrainingMode(TrainingMode&& value) { SetTrainingMode(std::move(value)); return *this;}
99
101
106 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
107 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
108 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
109 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
110 inline CreateSolutionVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
111 inline CreateSolutionVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
112 inline CreateSolutionVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
113 inline CreateSolutionVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
115 private:
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::String m_solutionArn;
121 bool m_solutionArnHasBeenSet = false;
122
123 TrainingMode m_trainingMode;
124 bool m_trainingModeHasBeenSet = false;
125
126 Aws::Vector<Tag> m_tags;
127 bool m_tagsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Personalize
132} // namespace Aws
CreateSolutionVersionRequest & WithTrainingMode(const TrainingMode &value)
CreateSolutionVersionRequest & WithName(const char *value)
CreateSolutionVersionRequest & AddTags(const Tag &value)
CreateSolutionVersionRequest & WithSolutionArn(const char *value)
CreateSolutionVersionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateSolutionVersionRequest & WithName(Aws::String &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSolutionVersionRequest & WithSolutionArn(Aws::String &&value)
CreateSolutionVersionRequest & WithName(const Aws::String &value)
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateSolutionVersionRequest & WithSolutionArn(const Aws::String &value)
CreateSolutionVersionRequest & WithTags(const Aws::Vector< Tag > &value)
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