AWS SDK for C++  1.9.66
AWS SDK for C++
CreateSolutionVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Personalize
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateSolutionVersion"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; }
43 
48  inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
49 
54  inline void SetSolutionArn(const Aws::String& value) { m_solutionArnHasBeenSet = true; m_solutionArn = value; }
55 
60  inline void SetSolutionArn(Aws::String&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::move(value); }
61 
66  inline void SetSolutionArn(const char* value) { m_solutionArnHasBeenSet = true; m_solutionArn.assign(value); }
67 
72  inline CreateSolutionVersionRequest& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;}
73 
78  inline CreateSolutionVersionRequest& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;}
79 
84  inline CreateSolutionVersionRequest& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;}
85 
86 
102  inline const TrainingMode& GetTrainingMode() const{ return m_trainingMode; }
103 
119  inline bool TrainingModeHasBeenSet() const { return m_trainingModeHasBeenSet; }
120 
136  inline void SetTrainingMode(const TrainingMode& value) { m_trainingModeHasBeenSet = true; m_trainingMode = value; }
137 
153  inline void SetTrainingMode(TrainingMode&& value) { m_trainingModeHasBeenSet = true; m_trainingMode = std::move(value); }
154 
170  inline CreateSolutionVersionRequest& WithTrainingMode(const TrainingMode& value) { SetTrainingMode(value); return *this;}
171 
187  inline CreateSolutionVersionRequest& WithTrainingMode(TrainingMode&& value) { SetTrainingMode(std::move(value)); return *this;}
188 
189  private:
190 
191  Aws::String m_solutionArn;
192  bool m_solutionArnHasBeenSet;
193 
194  TrainingMode m_trainingMode;
195  bool m_trainingModeHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace Personalize
200 } // namespace Aws
Aws::Personalize::Model::TrainingMode
TrainingMode
Definition: TrainingMode.h:17
PersonalizeRequest.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Personalize::Model::CreateSolutionVersionRequest
Definition: CreateSolutionVersionRequest.h:23
Aws::Personalize::Model::CreateSolutionVersionRequest::WithSolutionArn
CreateSolutionVersionRequest & WithSolutionArn(const char *value)
Definition: CreateSolutionVersionRequest.h:84
AWS_PERSONALIZE_API
#define AWS_PERSONALIZE_API
Definition: Personalize_EXPORTS.h:28
Aws::Personalize::Model::CreateSolutionVersionRequest::SetTrainingMode
void SetTrainingMode(TrainingMode &&value)
Definition: CreateSolutionVersionRequest.h:153
Aws::Personalize::Model::CreateSolutionVersionRequest::SetTrainingMode
void SetTrainingMode(const TrainingMode &value)
Definition: CreateSolutionVersionRequest.h:136
Aws::Personalize::Model::CreateSolutionVersionRequest::SetSolutionArn
void SetSolutionArn(const Aws::String &value)
Definition: CreateSolutionVersionRequest.h:54
Aws::Personalize::Model::CreateSolutionVersionRequest::TrainingModeHasBeenSet
bool TrainingModeHasBeenSet() const
Definition: CreateSolutionVersionRequest.h:119
Aws::Personalize::Model::CreateSolutionVersionRequest::SetSolutionArn
void SetSolutionArn(const char *value)
Definition: CreateSolutionVersionRequest.h:66
Aws::Personalize::Model::CreateSolutionVersionRequest::SetSolutionArn
void SetSolutionArn(Aws::String &&value)
Definition: CreateSolutionVersionRequest.h:60
Aws::Personalize::Model::CreateSolutionVersionRequest::WithTrainingMode
CreateSolutionVersionRequest & WithTrainingMode(TrainingMode &&value)
Definition: CreateSolutionVersionRequest.h:187
TrainingMode.h
Aws::Personalize::Model::CreateSolutionVersionRequest::WithSolutionArn
CreateSolutionVersionRequest & WithSolutionArn(Aws::String &&value)
Definition: CreateSolutionVersionRequest.h:78
Aws::Personalize::Model::CreateSolutionVersionRequest::GetSolutionArn
const Aws::String & GetSolutionArn() const
Definition: CreateSolutionVersionRequest.h:42
AWSString.h
Aws::Personalize::Model::CreateSolutionVersionRequest::CreateSolutionVersionRequest
CreateSolutionVersionRequest()
Aws::Personalize::Model::CreateSolutionVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Personalize::PersonalizeRequest
Definition: PersonalizeRequest.h:17
Aws::Personalize::Model::CreateSolutionVersionRequest::SolutionArnHasBeenSet
bool SolutionArnHasBeenSet() const
Definition: CreateSolutionVersionRequest.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::Personalize::Model::CreateSolutionVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Personalize::Model::CreateSolutionVersionRequest::WithTrainingMode
CreateSolutionVersionRequest & WithTrainingMode(const TrainingMode &value)
Definition: CreateSolutionVersionRequest.h:170
Aws::Personalize::Model::CreateSolutionVersionRequest::WithSolutionArn
CreateSolutionVersionRequest & WithSolutionArn(const Aws::String &value)
Definition: CreateSolutionVersionRequest.h:72
Aws::Personalize::Model::CreateSolutionVersionRequest::GetTrainingMode
const TrainingMode & GetTrainingMode() const
Definition: CreateSolutionVersionRequest.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Personalize_EXPORTS.h
Aws::Personalize::Model::CreateSolutionVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSolutionVersionRequest.h:31