AWS SDK for C++

AWS SDK for C++ Version 1.11.804

Loading...
Searching...
No Matches
AIRecommendationModelDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/AIRecommendationInstanceDetail.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 AIRecommendationModelDetails() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetModelPackageArn() const { return m_modelPackageArn; }
42 inline bool ModelPackageArnHasBeenSet() const { return m_modelPackageArnHasBeenSet; }
43 template <typename ModelPackageArnT = Aws::String>
44 void SetModelPackageArn(ModelPackageArnT&& value) {
45 m_modelPackageArnHasBeenSet = true;
46 m_modelPackageArn = std::forward<ModelPackageArnT>(value);
47 }
48 template <typename ModelPackageArnT = Aws::String>
50 SetModelPackageArn(std::forward<ModelPackageArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetInferenceSpecificationName() const { return m_inferenceSpecificationName; }
60 inline bool InferenceSpecificationNameHasBeenSet() const { return m_inferenceSpecificationNameHasBeenSet; }
61 template <typename InferenceSpecificationNameT = Aws::String>
62 void SetInferenceSpecificationName(InferenceSpecificationNameT&& value) {
63 m_inferenceSpecificationNameHasBeenSet = true;
64 m_inferenceSpecificationName = std::forward<InferenceSpecificationNameT>(value);
65 }
66 template <typename InferenceSpecificationNameT = Aws::String>
67 AIRecommendationModelDetails& WithInferenceSpecificationName(InferenceSpecificationNameT&& value) {
68 SetInferenceSpecificationName(std::forward<InferenceSpecificationNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Vector<AIRecommendationInstanceDetail>& GetInstanceDetails() const { return m_instanceDetails; }
79 inline bool InstanceDetailsHasBeenSet() const { return m_instanceDetailsHasBeenSet; }
80 template <typename InstanceDetailsT = Aws::Vector<AIRecommendationInstanceDetail>>
81 void SetInstanceDetails(InstanceDetailsT&& value) {
82 m_instanceDetailsHasBeenSet = true;
83 m_instanceDetails = std::forward<InstanceDetailsT>(value);
84 }
85 template <typename InstanceDetailsT = Aws::Vector<AIRecommendationInstanceDetail>>
87 SetInstanceDetails(std::forward<InstanceDetailsT>(value));
88 return *this;
89 }
90 template <typename InstanceDetailsT = AIRecommendationInstanceDetail>
92 m_instanceDetailsHasBeenSet = true;
93 m_instanceDetails.emplace_back(std::forward<InstanceDetailsT>(value));
94 return *this;
95 }
97 private:
98 Aws::String m_modelPackageArn;
99
100 Aws::String m_inferenceSpecificationName;
101
103 bool m_modelPackageArnHasBeenSet = false;
104 bool m_inferenceSpecificationNameHasBeenSet = false;
105 bool m_instanceDetailsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace SageMaker
110} // namespace Aws
AWS_SAGEMAKER_API AIRecommendationModelDetails(Aws::Utils::Json::JsonView jsonValue)
AIRecommendationModelDetails & WithInstanceDetails(InstanceDetailsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AIRecommendationModelDetails & WithModelPackageArn(ModelPackageArnT &&value)
AIRecommendationModelDetails & AddInstanceDetails(InstanceDetailsT &&value)
void SetInferenceSpecificationName(InferenceSpecificationNameT &&value)
AWS_SAGEMAKER_API AIRecommendationModelDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API AIRecommendationModelDetails()=default
const Aws::Vector< AIRecommendationInstanceDetail > & GetInstanceDetails() const
AIRecommendationModelDetails & WithInferenceSpecificationName(InferenceSpecificationNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue