AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetInferenceComponentName(const Aws::String& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = value; }
48 inline void SetInferenceComponentName(Aws::String&& value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName = std::move(value); }
49 inline void SetInferenceComponentName(const char* value) { m_inferenceComponentNameHasBeenSet = true; m_inferenceComponentName.assign(value); }
54
56
59 inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
60 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
61 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
62 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
63 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
64 inline CreateInferenceComponentRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
65 inline CreateInferenceComponentRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
66 inline CreateInferenceComponentRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
68
70
74 inline const Aws::String& GetVariantName() const{ return m_variantName; }
75 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
76 inline void SetVariantName(const Aws::String& value) { m_variantNameHasBeenSet = true; m_variantName = value; }
77 inline void SetVariantName(Aws::String&& value) { m_variantNameHasBeenSet = true; m_variantName = std::move(value); }
78 inline void SetVariantName(const char* value) { m_variantNameHasBeenSet = true; m_variantName.assign(value); }
79 inline CreateInferenceComponentRequest& WithVariantName(const Aws::String& value) { SetVariantName(value); return *this;}
80 inline CreateInferenceComponentRequest& WithVariantName(Aws::String&& value) { SetVariantName(std::move(value)); return *this;}
81 inline CreateInferenceComponentRequest& WithVariantName(const char* value) { SetVariantName(value); return *this;}
83
85
89 inline const InferenceComponentSpecification& GetSpecification() const{ return m_specification; }
90 inline bool SpecificationHasBeenSet() const { return m_specificationHasBeenSet; }
91 inline void SetSpecification(const InferenceComponentSpecification& value) { m_specificationHasBeenSet = true; m_specification = value; }
92 inline void SetSpecification(InferenceComponentSpecification&& value) { m_specificationHasBeenSet = true; m_specification = std::move(value); }
96
98
102 inline const InferenceComponentRuntimeConfig& GetRuntimeConfig() const{ return m_runtimeConfig; }
103 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
104 inline void SetRuntimeConfig(const InferenceComponentRuntimeConfig& value) { m_runtimeConfigHasBeenSet = true; m_runtimeConfig = value; }
105 inline void SetRuntimeConfig(InferenceComponentRuntimeConfig&& value) { m_runtimeConfigHasBeenSet = true; m_runtimeConfig = std::move(value); }
109
111
118 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
119 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
120 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
121 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline CreateInferenceComponentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
123 inline CreateInferenceComponentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
124 inline CreateInferenceComponentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
125 inline CreateInferenceComponentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
127 private:
128
129 Aws::String m_inferenceComponentName;
130 bool m_inferenceComponentNameHasBeenSet = false;
131
132 Aws::String m_endpointName;
133 bool m_endpointNameHasBeenSet = false;
134
135 Aws::String m_variantName;
136 bool m_variantNameHasBeenSet = false;
137
138 InferenceComponentSpecification m_specification;
139 bool m_specificationHasBeenSet = false;
140
141 InferenceComponentRuntimeConfig m_runtimeConfig;
142 bool m_runtimeConfigHasBeenSet = false;
143
144 Aws::Vector<Tag> m_tags;
145 bool m_tagsHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SageMaker
150} // namespace Aws
void SetRuntimeConfig(InferenceComponentRuntimeConfig &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateInferenceComponentRequest & WithRuntimeConfig(const InferenceComponentRuntimeConfig &value)
CreateInferenceComponentRequest & WithTags(Aws::Vector< Tag > &&value)
const InferenceComponentSpecification & GetSpecification() const
CreateInferenceComponentRequest & WithEndpointName(const Aws::String &value)
CreateInferenceComponentRequest & WithVariantName(const Aws::String &value)
CreateInferenceComponentRequest & WithInferenceComponentName(Aws::String &&value)
CreateInferenceComponentRequest & WithInferenceComponentName(const char *value)
CreateInferenceComponentRequest & AddTags(const Tag &value)
CreateInferenceComponentRequest & WithVariantName(Aws::String &&value)
CreateInferenceComponentRequest & WithVariantName(const char *value)
CreateInferenceComponentRequest & WithSpecification(const InferenceComponentSpecification &value)
CreateInferenceComponentRequest & WithInferenceComponentName(const Aws::String &value)
void SetRuntimeConfig(const InferenceComponentRuntimeConfig &value)
CreateInferenceComponentRequest & WithSpecification(InferenceComponentSpecification &&value)
void SetSpecification(InferenceComponentSpecification &&value)
void SetSpecification(const InferenceComponentSpecification &value)
CreateInferenceComponentRequest & WithEndpointName(Aws::String &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInferenceComponentRequest & WithEndpointName(const char *value)
const InferenceComponentRuntimeConfig & GetRuntimeConfig() const
CreateInferenceComponentRequest & WithTags(const Aws::Vector< Tag > &value)
CreateInferenceComponentRequest & WithRuntimeConfig(InferenceComponentRuntimeConfig &&value)
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