AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModelConfiguration.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/EnvironmentParameter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API ModelConfiguration();
38 AWS_SAGEMAKER_API ModelConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetInferenceSpecificationName() const{ return m_inferenceSpecificationName; }
48 inline bool InferenceSpecificationNameHasBeenSet() const { return m_inferenceSpecificationNameHasBeenSet; }
49 inline void SetInferenceSpecificationName(const Aws::String& value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName = value; }
50 inline void SetInferenceSpecificationName(Aws::String&& value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName = std::move(value); }
51 inline void SetInferenceSpecificationName(const char* value) { m_inferenceSpecificationNameHasBeenSet = true; m_inferenceSpecificationName.assign(value); }
54 inline ModelConfiguration& WithInferenceSpecificationName(const char* value) { SetInferenceSpecificationName(value); return *this;}
56
58
62 inline const Aws::Vector<EnvironmentParameter>& GetEnvironmentParameters() const{ return m_environmentParameters; }
63 inline bool EnvironmentParametersHasBeenSet() const { return m_environmentParametersHasBeenSet; }
64 inline void SetEnvironmentParameters(const Aws::Vector<EnvironmentParameter>& value) { m_environmentParametersHasBeenSet = true; m_environmentParameters = value; }
65 inline void SetEnvironmentParameters(Aws::Vector<EnvironmentParameter>&& value) { m_environmentParametersHasBeenSet = true; m_environmentParameters = std::move(value); }
68 inline ModelConfiguration& AddEnvironmentParameters(const EnvironmentParameter& value) { m_environmentParametersHasBeenSet = true; m_environmentParameters.push_back(value); return *this; }
69 inline ModelConfiguration& AddEnvironmentParameters(EnvironmentParameter&& value) { m_environmentParametersHasBeenSet = true; m_environmentParameters.push_back(std::move(value)); return *this; }
71
73
77 inline const Aws::String& GetCompilationJobName() const{ return m_compilationJobName; }
78 inline bool CompilationJobNameHasBeenSet() const { return m_compilationJobNameHasBeenSet; }
79 inline void SetCompilationJobName(const Aws::String& value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName = value; }
80 inline void SetCompilationJobName(Aws::String&& value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName = std::move(value); }
81 inline void SetCompilationJobName(const char* value) { m_compilationJobNameHasBeenSet = true; m_compilationJobName.assign(value); }
82 inline ModelConfiguration& WithCompilationJobName(const Aws::String& value) { SetCompilationJobName(value); return *this;}
83 inline ModelConfiguration& WithCompilationJobName(Aws::String&& value) { SetCompilationJobName(std::move(value)); return *this;}
84 inline ModelConfiguration& WithCompilationJobName(const char* value) { SetCompilationJobName(value); return *this;}
86 private:
87
88 Aws::String m_inferenceSpecificationName;
89 bool m_inferenceSpecificationNameHasBeenSet = false;
90
91 Aws::Vector<EnvironmentParameter> m_environmentParameters;
92 bool m_environmentParametersHasBeenSet = false;
93
94 Aws::String m_compilationJobName;
95 bool m_compilationJobNameHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SageMaker
100} // namespace Aws
ModelConfiguration & WithInferenceSpecificationName(Aws::String &&value)
ModelConfiguration & WithCompilationJobName(const Aws::String &value)
ModelConfiguration & WithInferenceSpecificationName(const Aws::String &value)
ModelConfiguration & WithEnvironmentParameters(Aws::Vector< EnvironmentParameter > &&value)
const Aws::String & GetInferenceSpecificationName() const
const Aws::Vector< EnvironmentParameter > & GetEnvironmentParameters() const
ModelConfiguration & WithCompilationJobName(Aws::String &&value)
ModelConfiguration & WithEnvironmentParameters(const Aws::Vector< EnvironmentParameter > &value)
void SetCompilationJobName(const Aws::String &value)
AWS_SAGEMAKER_API ModelConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetInferenceSpecificationName(const char *value)
ModelConfiguration & AddEnvironmentParameters(const EnvironmentParameter &value)
void SetInferenceSpecificationName(const Aws::String &value)
AWS_SAGEMAKER_API ModelConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEnvironmentParameters(Aws::Vector< EnvironmentParameter > &&value)
void SetEnvironmentParameters(const Aws::Vector< EnvironmentParameter > &value)
void SetCompilationJobName(Aws::String &&value)
ModelConfiguration & AddEnvironmentParameters(EnvironmentParameter &&value)
ModelConfiguration & WithInferenceSpecificationName(const char *value)
ModelConfiguration & WithCompilationJobName(const char *value)
const Aws::String & GetCompilationJobName() const
void SetInferenceSpecificationName(Aws::String &&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