AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InferenceComponentContainerSpecification.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/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker
23{
24namespace Model
25{
26
34 {
35 public:
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetImage() const{ return m_image; }
48 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
49 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
50 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
51 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
52 inline InferenceComponentContainerSpecification& WithImage(const Aws::String& value) { SetImage(value); return *this;}
53 inline InferenceComponentContainerSpecification& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
54 inline InferenceComponentContainerSpecification& WithImage(const char* value) { SetImage(value); return *this;}
56
58
63 inline const Aws::String& GetArtifactUrl() const{ return m_artifactUrl; }
64 inline bool ArtifactUrlHasBeenSet() const { return m_artifactUrlHasBeenSet; }
65 inline void SetArtifactUrl(const Aws::String& value) { m_artifactUrlHasBeenSet = true; m_artifactUrl = value; }
66 inline void SetArtifactUrl(Aws::String&& value) { m_artifactUrlHasBeenSet = true; m_artifactUrl = std::move(value); }
67 inline void SetArtifactUrl(const char* value) { m_artifactUrlHasBeenSet = true; m_artifactUrl.assign(value); }
69 inline InferenceComponentContainerSpecification& WithArtifactUrl(Aws::String&& value) { SetArtifactUrl(std::move(value)); return *this;}
70 inline InferenceComponentContainerSpecification& WithArtifactUrl(const char* value) { SetArtifactUrl(value); return *this;}
72
74
79 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const{ return m_environment; }
80 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
81 inline void SetEnvironment(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentHasBeenSet = true; m_environment = value; }
82 inline void SetEnvironment(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
85 inline InferenceComponentContainerSpecification& AddEnvironment(const Aws::String& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
86 inline InferenceComponentContainerSpecification& AddEnvironment(Aws::String&& key, const Aws::String& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
87 inline InferenceComponentContainerSpecification& AddEnvironment(const Aws::String& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
88 inline InferenceComponentContainerSpecification& AddEnvironment(Aws::String&& key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), std::move(value)); return *this; }
89 inline InferenceComponentContainerSpecification& AddEnvironment(const char* key, Aws::String&& value) { m_environmentHasBeenSet = true; m_environment.emplace(key, std::move(value)); return *this; }
90 inline InferenceComponentContainerSpecification& AddEnvironment(Aws::String&& key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(std::move(key), value); return *this; }
91 inline InferenceComponentContainerSpecification& AddEnvironment(const char* key, const char* value) { m_environmentHasBeenSet = true; m_environment.emplace(key, value); return *this; }
93 private:
94
95 Aws::String m_image;
96 bool m_imageHasBeenSet = false;
97
98 Aws::String m_artifactUrl;
99 bool m_artifactUrlHasBeenSet = false;
100
102 bool m_environmentHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SageMaker
107} // namespace Aws
InferenceComponentContainerSpecification & AddEnvironment(const char *key, Aws::String &&value)
InferenceComponentContainerSpecification & AddEnvironment(const Aws::String &key, const Aws::String &value)
InferenceComponentContainerSpecification & AddEnvironment(const Aws::String &key, Aws::String &&value)
InferenceComponentContainerSpecification & WithImage(const char *value)
InferenceComponentContainerSpecification & AddEnvironment(Aws::String &&key, const Aws::String &value)
InferenceComponentContainerSpecification & AddEnvironment(Aws::String &&key, const char *value)
InferenceComponentContainerSpecification & WithArtifactUrl(const Aws::String &value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InferenceComponentContainerSpecification & WithImage(Aws::String &&value)
AWS_SAGEMAKER_API InferenceComponentContainerSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API InferenceComponentContainerSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceComponentContainerSpecification & WithArtifactUrl(Aws::String &&value)
InferenceComponentContainerSpecification & WithEnvironment(const Aws::Map< Aws::String, Aws::String > &value)
InferenceComponentContainerSpecification & WithImage(const Aws::String &value)
InferenceComponentContainerSpecification & WithEnvironment(Aws::Map< Aws::String, Aws::String > &&value)
InferenceComponentContainerSpecification & AddEnvironment(const char *key, const char *value)
InferenceComponentContainerSpecification & WithArtifactUrl(const char *value)
InferenceComponentContainerSpecification & AddEnvironment(Aws::String &&key, Aws::String &&value)
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