AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateInferenceComponentRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/InferenceComponentSpecification.h>
11#include <aws/sagemaker/model/InferenceComponentRuntimeConfig.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace SageMaker
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_SAGEMAKER_API CreateInferenceComponentRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateInferenceComponent"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetInferenceComponentName() const { return m_inferenceComponentName; }
46 inline bool InferenceComponentNameHasBeenSet() const { return m_inferenceComponentNameHasBeenSet; }
47 template<typename InferenceComponentNameT = Aws::String>
48 void SetInferenceComponentName(InferenceComponentNameT&& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = std::forward<InferenceComponentNameT>(value); }
49 template<typename InferenceComponentNameT = Aws::String>
50 CreateInferenceComponentRequest& WithInferenceComponentName(InferenceComponentNameT&& value) { SetInferenceComponentName(std::forward<InferenceComponentNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
58 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
59 template<typename EndpointNameT = Aws::String>
60 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
61 template<typename EndpointNameT = Aws::String>
62 CreateInferenceComponentRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
64
66
70 inline const Aws::String& GetVariantName() const { return m_variantName; }
71 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
72 template<typename VariantNameT = Aws::String>
73 void SetVariantName(VariantNameT&& value) { m_variantNameHasBeenSet = true; m_variantName = std::forward<VariantNameT>(value); }
74 template<typename VariantNameT = Aws::String>
75 CreateInferenceComponentRequest& WithVariantName(VariantNameT&& value) { SetVariantName(std::forward<VariantNameT>(value)); return *this;}
77
79
83 inline const InferenceComponentSpecification& GetSpecification() const { return m_specification; }
84 inline bool SpecificationHasBeenSet() const { return m_specificationHasBeenSet; }
85 template<typename SpecificationT = InferenceComponentSpecification>
86 void SetSpecification(SpecificationT&& value) { m_specificationHasBeenSet = true; m_specification = std::forward<SpecificationT>(value); }
87 template<typename SpecificationT = InferenceComponentSpecification>
88 CreateInferenceComponentRequest& WithSpecification(SpecificationT&& value) { SetSpecification(std::forward<SpecificationT>(value)); return *this;}
90
92
96 inline const InferenceComponentRuntimeConfig& GetRuntimeConfig() const { return m_runtimeConfig; }
97 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
98 template<typename RuntimeConfigT = InferenceComponentRuntimeConfig>
99 void SetRuntimeConfig(RuntimeConfigT&& value) { m_runtimeConfigHasBeenSet = true; m_runtimeConfig = std::forward<RuntimeConfigT>(value); }
100 template<typename RuntimeConfigT = InferenceComponentRuntimeConfig>
101 CreateInferenceComponentRequest& WithRuntimeConfig(RuntimeConfigT&& value) { SetRuntimeConfig(std::forward<RuntimeConfigT>(value)); return *this;}
103
105
112 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template<typename TagsT = Aws::Vector<Tag>>
115 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
116 template<typename TagsT = Aws::Vector<Tag>>
117 CreateInferenceComponentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
118 template<typename TagsT = Tag>
119 CreateInferenceComponentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
121 private:
122
123 Aws::String m_inferenceComponentName;
124 bool m_inferenceComponentNameHasBeenSet = false;
125
126 Aws::String m_endpointName;
127 bool m_endpointNameHasBeenSet = false;
128
129 Aws::String m_variantName;
130 bool m_variantNameHasBeenSet = false;
131
132 InferenceComponentSpecification m_specification;
133 bool m_specificationHasBeenSet = false;
134
135 InferenceComponentRuntimeConfig m_runtimeConfig;
136 bool m_runtimeConfigHasBeenSet = false;
137
138 Aws::Vector<Tag> m_tags;
139 bool m_tagsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace SageMaker
144} // namespace Aws
CreateInferenceComponentRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateInferenceComponentRequest & WithVariantName(VariantNameT &&value)
const InferenceComponentSpecification & GetSpecification() const
CreateInferenceComponentRequest & WithEndpointName(EndpointNameT &&value)
CreateInferenceComponentRequest & WithSpecification(SpecificationT &&value)
CreateInferenceComponentRequest & WithRuntimeConfig(RuntimeConfigT &&value)
CreateInferenceComponentRequest & AddTags(TagsT &&value)
CreateInferenceComponentRequest & WithInferenceComponentName(InferenceComponentNameT &&value)
AWS_SAGEMAKER_API CreateInferenceComponentRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const InferenceComponentRuntimeConfig & GetRuntimeConfig() const
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