AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateConfiguredModelAlgorithmRequest.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/cleanroomsml/model/ContainerConfig.h>
11#include <aws/cleanroomsml/model/InferenceContainerConfig.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CleanRoomsML
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLEANROOMSML_API CreateConfiguredModelAlgorithmRequest() = default;
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 "CreateConfiguredModelAlgorithm"; }
34
35 AWS_CLEANROOMSML_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateConfiguredModelAlgorithmRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetDescription() const { return m_description; }
55 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
56 template<typename DescriptionT = Aws::String>
57 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
58 template<typename DescriptionT = Aws::String>
59 CreateConfiguredModelAlgorithmRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
61
63
67 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
68 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
69 template<typename RoleArnT = Aws::String>
70 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
71 template<typename RoleArnT = Aws::String>
72 CreateConfiguredModelAlgorithmRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
74
76
80 inline const ContainerConfig& GetTrainingContainerConfig() const { return m_trainingContainerConfig; }
81 inline bool TrainingContainerConfigHasBeenSet() const { return m_trainingContainerConfigHasBeenSet; }
82 template<typename TrainingContainerConfigT = ContainerConfig>
83 void SetTrainingContainerConfig(TrainingContainerConfigT&& value) { m_trainingContainerConfigHasBeenSet = true; m_trainingContainerConfig = std::forward<TrainingContainerConfigT>(value); }
84 template<typename TrainingContainerConfigT = ContainerConfig>
85 CreateConfiguredModelAlgorithmRequest& WithTrainingContainerConfig(TrainingContainerConfigT&& value) { SetTrainingContainerConfig(std::forward<TrainingContainerConfigT>(value)); return *this;}
87
89
93 inline const InferenceContainerConfig& GetInferenceContainerConfig() const { return m_inferenceContainerConfig; }
94 inline bool InferenceContainerConfigHasBeenSet() const { return m_inferenceContainerConfigHasBeenSet; }
95 template<typename InferenceContainerConfigT = InferenceContainerConfig>
96 void SetInferenceContainerConfig(InferenceContainerConfigT&& value) { m_inferenceContainerConfigHasBeenSet = true; m_inferenceContainerConfig = std::forward<InferenceContainerConfigT>(value); }
97 template<typename InferenceContainerConfigT = InferenceContainerConfig>
98 CreateConfiguredModelAlgorithmRequest& WithInferenceContainerConfig(InferenceContainerConfigT&& value) { SetInferenceContainerConfig(std::forward<InferenceContainerConfigT>(value)); return *this;}
100
102
122 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
125 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
126 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
127 CreateConfiguredModelAlgorithmRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
128 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
129 CreateConfiguredModelAlgorithmRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
130 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
131 }
133
135
140 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
141 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
142 template<typename KmsKeyArnT = Aws::String>
143 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
144 template<typename KmsKeyArnT = Aws::String>
145 CreateConfiguredModelAlgorithmRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
147 private:
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
155 Aws::String m_roleArn;
156 bool m_roleArnHasBeenSet = false;
157
158 ContainerConfig m_trainingContainerConfig;
159 bool m_trainingContainerConfigHasBeenSet = false;
160
161 InferenceContainerConfig m_inferenceContainerConfig;
162 bool m_inferenceContainerConfigHasBeenSet = false;
163
165 bool m_tagsHasBeenSet = false;
166
167 Aws::String m_kmsKeyArn;
168 bool m_kmsKeyArnHasBeenSet = false;
169 };
170
171} // namespace Model
172} // namespace CleanRoomsML
173} // namespace Aws
CreateConfiguredModelAlgorithmRequest & WithRoleArn(RoleArnT &&value)
AWS_CLEANROOMSML_API Aws::String SerializePayload() const override
CreateConfiguredModelAlgorithmRequest & WithDescription(DescriptionT &&value)
CreateConfiguredModelAlgorithmRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateConfiguredModelAlgorithmRequest & WithKmsKeyArn(KmsKeyArnT &&value)
CreateConfiguredModelAlgorithmRequest & WithTrainingContainerConfig(TrainingContainerConfigT &&value)
AWS_CLEANROOMSML_API CreateConfiguredModelAlgorithmRequest()=default
CreateConfiguredModelAlgorithmRequest & WithInferenceContainerConfig(InferenceContainerConfigT &&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