AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateSolutionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/personalize/Personalize_EXPORTS.h>
10#include <aws/personalize/model/SolutionUpdateConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Personalize {
16namespace Model {
17
21 public:
22 AWS_PERSONALIZE_API UpdateSolutionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateSolution"; }
29
30 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
31
32 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetSolutionArn() const { return m_solutionArn; }
39 inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
40 template <typename SolutionArnT = Aws::String>
41 void SetSolutionArn(SolutionArnT&& value) {
42 m_solutionArnHasBeenSet = true;
43 m_solutionArn = std::forward<SolutionArnT>(value);
44 }
45 template <typename SolutionArnT = Aws::String>
46 UpdateSolutionRequest& WithSolutionArn(SolutionArnT&& value) {
47 SetSolutionArn(std::forward<SolutionArnT>(value));
48 return *this;
49 }
51
53
70 inline bool GetPerformAutoTraining() const { return m_performAutoTraining; }
71 inline bool PerformAutoTrainingHasBeenSet() const { return m_performAutoTrainingHasBeenSet; }
72 inline void SetPerformAutoTraining(bool value) {
73 m_performAutoTrainingHasBeenSet = true;
74 m_performAutoTraining = value;
75 }
78 return *this;
79 }
81
83
89 inline bool GetPerformIncrementalUpdate() const { return m_performIncrementalUpdate; }
90 inline bool PerformIncrementalUpdateHasBeenSet() const { return m_performIncrementalUpdateHasBeenSet; }
91 inline void SetPerformIncrementalUpdate(bool value) {
92 m_performIncrementalUpdateHasBeenSet = true;
93 m_performIncrementalUpdate = value;
94 }
97 return *this;
98 }
100
102
105 inline const SolutionUpdateConfig& GetSolutionUpdateConfig() const { return m_solutionUpdateConfig; }
106 inline bool SolutionUpdateConfigHasBeenSet() const { return m_solutionUpdateConfigHasBeenSet; }
107 template <typename SolutionUpdateConfigT = SolutionUpdateConfig>
108 void SetSolutionUpdateConfig(SolutionUpdateConfigT&& value) {
109 m_solutionUpdateConfigHasBeenSet = true;
110 m_solutionUpdateConfig = std::forward<SolutionUpdateConfigT>(value);
111 }
112 template <typename SolutionUpdateConfigT = SolutionUpdateConfig>
113 UpdateSolutionRequest& WithSolutionUpdateConfig(SolutionUpdateConfigT&& value) {
114 SetSolutionUpdateConfig(std::forward<SolutionUpdateConfigT>(value));
115 return *this;
116 }
118 private:
119 Aws::String m_solutionArn;
120
121 bool m_performAutoTraining{false};
122
123 bool m_performIncrementalUpdate{false};
124
125 SolutionUpdateConfig m_solutionUpdateConfig;
126 bool m_solutionArnHasBeenSet = false;
127 bool m_performAutoTrainingHasBeenSet = false;
128 bool m_performIncrementalUpdateHasBeenSet = false;
129 bool m_solutionUpdateConfigHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace Personalize
134} // namespace Aws
const SolutionUpdateConfig & GetSolutionUpdateConfig() const
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateSolutionRequest & WithPerformAutoTraining(bool value)
void SetSolutionUpdateConfig(SolutionUpdateConfigT &&value)
virtual const char * GetServiceRequestName() const override
UpdateSolutionRequest & WithSolutionUpdateConfig(SolutionUpdateConfigT &&value)
UpdateSolutionRequest & WithPerformIncrementalUpdate(bool value)
UpdateSolutionRequest & WithSolutionArn(SolutionArnT &&value)
AWS_PERSONALIZE_API UpdateSolutionRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String