AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RealTimeInferenceRecommendation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/ProductionVariantInstanceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SageMaker {
22namespace Model {
23
31 public:
32 AWS_SAGEMAKER_API RealTimeInferenceRecommendation() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRecommendationId() const { return m_recommendationId; }
42 inline bool RecommendationIdHasBeenSet() const { return m_recommendationIdHasBeenSet; }
43 template <typename RecommendationIdT = Aws::String>
44 void SetRecommendationId(RecommendationIdT&& value) {
45 m_recommendationIdHasBeenSet = true;
46 m_recommendationId = std::forward<RecommendationIdT>(value);
47 }
48 template <typename RecommendationIdT = Aws::String>
50 SetRecommendationId(std::forward<RecommendationIdT>(value));
51 return *this;
52 }
54
56
59 inline ProductionVariantInstanceType GetInstanceType() const { return m_instanceType; }
60 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
62 m_instanceTypeHasBeenSet = true;
63 m_instanceType = value;
64 }
66 SetInstanceType(value);
67 return *this;
68 }
70
72
76 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
77 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
78 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
79 void SetEnvironment(EnvironmentT&& value) {
80 m_environmentHasBeenSet = true;
81 m_environment = std::forward<EnvironmentT>(value);
82 }
83 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
85 SetEnvironment(std::forward<EnvironmentT>(value));
86 return *this;
87 }
88 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
89 RealTimeInferenceRecommendation& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
90 m_environmentHasBeenSet = true;
91 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_recommendationId;
97
99
101 bool m_recommendationIdHasBeenSet = false;
102 bool m_instanceTypeHasBeenSet = false;
103 bool m_environmentHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace SageMaker
108} // namespace Aws
RealTimeInferenceRecommendation & WithEnvironment(EnvironmentT &&value)
AWS_SAGEMAKER_API RealTimeInferenceRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
RealTimeInferenceRecommendation & WithRecommendationId(RecommendationIdT &&value)
AWS_SAGEMAKER_API RealTimeInferenceRecommendation()=default
RealTimeInferenceRecommendation & WithInstanceType(ProductionVariantInstanceType value)
RealTimeInferenceRecommendation & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironment() const
AWS_SAGEMAKER_API RealTimeInferenceRecommendation(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
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
Aws::Utils::Json::JsonValue JsonValue