AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTrainingDatasetRequest.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
8#include <aws/cleanroomsml/CleanRoomsMLRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/cleanroomsml/model/Dataset.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CleanRoomsML
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLEANROOMSML_API CreateTrainingDatasetRequest();
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 "CreateTrainingDataset"; }
34
35 AWS_CLEANROOMSML_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
46 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
47 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
48 inline CreateTrainingDatasetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
49 inline CreateTrainingDatasetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
50 inline CreateTrainingDatasetRequest& WithName(const char* value) { SetName(value); return *this;}
52
54
60 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
61 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
62 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
63 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
64 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 inline CreateTrainingDatasetRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
66 inline CreateTrainingDatasetRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
67 inline CreateTrainingDatasetRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
69
71
76 inline const Aws::Vector<Dataset>& GetTrainingData() const{ return m_trainingData; }
77 inline bool TrainingDataHasBeenSet() const { return m_trainingDataHasBeenSet; }
78 inline void SetTrainingData(const Aws::Vector<Dataset>& value) { m_trainingDataHasBeenSet = true; m_trainingData = value; }
79 inline void SetTrainingData(Aws::Vector<Dataset>&& value) { m_trainingDataHasBeenSet = true; m_trainingData = std::move(value); }
81 inline CreateTrainingDatasetRequest& WithTrainingData(Aws::Vector<Dataset>&& value) { SetTrainingData(std::move(value)); return *this;}
82 inline CreateTrainingDatasetRequest& AddTrainingData(const Dataset& value) { m_trainingDataHasBeenSet = true; m_trainingData.push_back(value); return *this; }
83 inline CreateTrainingDatasetRequest& AddTrainingData(Dataset&& value) { m_trainingDataHasBeenSet = true; m_trainingData.push_back(std::move(value)); return *this; }
85
87
107 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
108 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
109 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
110 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
112 inline CreateTrainingDatasetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
113 inline CreateTrainingDatasetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
114 inline CreateTrainingDatasetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
115 inline CreateTrainingDatasetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
116 inline CreateTrainingDatasetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
117 inline CreateTrainingDatasetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
118 inline CreateTrainingDatasetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
119 inline CreateTrainingDatasetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
121
123
126 inline const Aws::String& GetDescription() const{ return m_description; }
127 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
128 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
129 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
130 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
131 inline CreateTrainingDatasetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
132 inline CreateTrainingDatasetRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
133 inline CreateTrainingDatasetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
135 private:
136
137 Aws::String m_name;
138 bool m_nameHasBeenSet = false;
139
140 Aws::String m_roleArn;
141 bool m_roleArnHasBeenSet = false;
142
143 Aws::Vector<Dataset> m_trainingData;
144 bool m_trainingDataHasBeenSet = false;
145
147 bool m_tagsHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151 };
152
153} // namespace Model
154} // namespace CleanRoomsML
155} // namespace Aws
CreateTrainingDatasetRequest & AddTags(Aws::String &&key, const char *value)
CreateTrainingDatasetRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateTrainingDatasetRequest & WithTrainingData(Aws::Vector< Dataset > &&value)
CreateTrainingDatasetRequest & WithRoleArn(const Aws::String &value)
CreateTrainingDatasetRequest & WithRoleArn(Aws::String &&value)
CreateTrainingDatasetRequest & WithDescription(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTrainingDatasetRequest & WithName(Aws::String &&value)
CreateTrainingDatasetRequest & AddTrainingData(Dataset &&value)
CreateTrainingDatasetRequest & WithDescription(const Aws::String &value)
CreateTrainingDatasetRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateTrainingDatasetRequest & WithTrainingData(const Aws::Vector< Dataset > &value)
CreateTrainingDatasetRequest & WithDescription(const char *value)
CreateTrainingDatasetRequest & AddTags(const char *key, Aws::String &&value)
AWS_CLEANROOMSML_API Aws::String SerializePayload() const override
CreateTrainingDatasetRequest & WithName(const char *value)
CreateTrainingDatasetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTrainingDatasetRequest & WithRoleArn(const char *value)
CreateTrainingDatasetRequest & WithName(const Aws::String &value)
CreateTrainingDatasetRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateTrainingDatasetRequest & AddTrainingData(const Dataset &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateTrainingDatasetRequest & AddTags(const char *key, const char *value)
CreateTrainingDatasetRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateTrainingDatasetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector