AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TextGenerationJobConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/model/AutoMLJobCompletionCriteria.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/sagemaker/model/ModelAccessConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_SAGEMAKER_API TextGenerationJobConfig();
45 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
55 inline const AutoMLJobCompletionCriteria& GetCompletionCriteria() const{ return m_completionCriteria; }
56 inline bool CompletionCriteriaHasBeenSet() const { return m_completionCriteriaHasBeenSet; }
57 inline void SetCompletionCriteria(const AutoMLJobCompletionCriteria& value) { m_completionCriteriaHasBeenSet = true; m_completionCriteria = value; }
58 inline void SetCompletionCriteria(AutoMLJobCompletionCriteria&& value) { m_completionCriteriaHasBeenSet = true; m_completionCriteria = std::move(value); }
62
64
73 inline const Aws::String& GetBaseModelName() const{ return m_baseModelName; }
74 inline bool BaseModelNameHasBeenSet() const { return m_baseModelNameHasBeenSet; }
75 inline void SetBaseModelName(const Aws::String& value) { m_baseModelNameHasBeenSet = true; m_baseModelName = value; }
76 inline void SetBaseModelName(Aws::String&& value) { m_baseModelNameHasBeenSet = true; m_baseModelName = std::move(value); }
77 inline void SetBaseModelName(const char* value) { m_baseModelNameHasBeenSet = true; m_baseModelName.assign(value); }
78 inline TextGenerationJobConfig& WithBaseModelName(const Aws::String& value) { SetBaseModelName(value); return *this;}
79 inline TextGenerationJobConfig& WithBaseModelName(Aws::String&& value) { SetBaseModelName(std::move(value)); return *this;}
80 inline TextGenerationJobConfig& WithBaseModelName(const char* value) { SetBaseModelName(value); return *this;}
82
84
106 inline const Aws::Map<Aws::String, Aws::String>& GetTextGenerationHyperParameters() const{ return m_textGenerationHyperParameters; }
107 inline bool TextGenerationHyperParametersHasBeenSet() const { return m_textGenerationHyperParametersHasBeenSet; }
108 inline void SetTextGenerationHyperParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters = value; }
109 inline void SetTextGenerationHyperParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters = std::move(value); }
112 inline TextGenerationJobConfig& AddTextGenerationHyperParameters(const Aws::String& key, const Aws::String& value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters.emplace(key, value); return *this; }
113 inline TextGenerationJobConfig& AddTextGenerationHyperParameters(Aws::String&& key, const Aws::String& value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters.emplace(std::move(key), value); return *this; }
114 inline TextGenerationJobConfig& AddTextGenerationHyperParameters(const Aws::String& key, Aws::String&& value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters.emplace(key, std::move(value)); return *this; }
115 inline TextGenerationJobConfig& AddTextGenerationHyperParameters(Aws::String&& key, Aws::String&& value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters.emplace(std::move(key), std::move(value)); return *this; }
116 inline TextGenerationJobConfig& AddTextGenerationHyperParameters(const char* key, Aws::String&& value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters.emplace(key, std::move(value)); return *this; }
117 inline TextGenerationJobConfig& AddTextGenerationHyperParameters(Aws::String&& key, const char* value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters.emplace(std::move(key), value); return *this; }
118 inline TextGenerationJobConfig& AddTextGenerationHyperParameters(const char* key, const char* value) { m_textGenerationHyperParametersHasBeenSet = true; m_textGenerationHyperParameters.emplace(key, value); return *this; }
120
122
123 inline const ModelAccessConfig& GetModelAccessConfig() const{ return m_modelAccessConfig; }
124 inline bool ModelAccessConfigHasBeenSet() const { return m_modelAccessConfigHasBeenSet; }
125 inline void SetModelAccessConfig(const ModelAccessConfig& value) { m_modelAccessConfigHasBeenSet = true; m_modelAccessConfig = value; }
126 inline void SetModelAccessConfig(ModelAccessConfig&& value) { m_modelAccessConfigHasBeenSet = true; m_modelAccessConfig = std::move(value); }
128 inline TextGenerationJobConfig& WithModelAccessConfig(ModelAccessConfig&& value) { SetModelAccessConfig(std::move(value)); return *this;}
130 private:
131
132 AutoMLJobCompletionCriteria m_completionCriteria;
133 bool m_completionCriteriaHasBeenSet = false;
134
135 Aws::String m_baseModelName;
136 bool m_baseModelNameHasBeenSet = false;
137
138 Aws::Map<Aws::String, Aws::String> m_textGenerationHyperParameters;
139 bool m_textGenerationHyperParametersHasBeenSet = false;
140
141 ModelAccessConfig m_modelAccessConfig;
142 bool m_modelAccessConfigHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SageMaker
147} // namespace Aws
TextGenerationJobConfig & WithBaseModelName(const Aws::String &value)
TextGenerationJobConfig & WithTextGenerationHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetTextGenerationHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
TextGenerationJobConfig & AddTextGenerationHyperParameters(Aws::String &&key, Aws::String &&value)
void SetModelAccessConfig(const ModelAccessConfig &value)
TextGenerationJobConfig & AddTextGenerationHyperParameters(const char *key, const char *value)
void SetCompletionCriteria(const AutoMLJobCompletionCriteria &value)
TextGenerationJobConfig & WithBaseModelName(const char *value)
AWS_SAGEMAKER_API TextGenerationJobConfig(Aws::Utils::Json::JsonView jsonValue)
void SetCompletionCriteria(AutoMLJobCompletionCriteria &&value)
TextGenerationJobConfig & WithTextGenerationHyperParameters(Aws::Map< Aws::String, Aws::String > &&value)
TextGenerationJobConfig & WithModelAccessConfig(ModelAccessConfig &&value)
void SetTextGenerationHyperParameters(const Aws::Map< Aws::String, Aws::String > &value)
TextGenerationJobConfig & WithCompletionCriteria(AutoMLJobCompletionCriteria &&value)
TextGenerationJobConfig & AddTextGenerationHyperParameters(const Aws::String &key, Aws::String &&value)
TextGenerationJobConfig & WithBaseModelName(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTextGenerationHyperParameters() const
TextGenerationJobConfig & WithCompletionCriteria(const AutoMLJobCompletionCriteria &value)
TextGenerationJobConfig & AddTextGenerationHyperParameters(Aws::String &&key, const Aws::String &value)
TextGenerationJobConfig & AddTextGenerationHyperParameters(Aws::String &&key, const char *value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
TextGenerationJobConfig & AddTextGenerationHyperParameters(const char *key, Aws::String &&value)
const ModelAccessConfig & GetModelAccessConfig() const
TextGenerationJobConfig & WithModelAccessConfig(const ModelAccessConfig &value)
TextGenerationJobConfig & AddTextGenerationHyperParameters(const Aws::String &key, const Aws::String &value)
AWS_SAGEMAKER_API TextGenerationJobConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const AutoMLJobCompletionCriteria & GetCompletionCriteria() 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