AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InferenceComponentContainerSpecification.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SageMaker {
21namespace Model {
22
30 public:
31 AWS_SAGEMAKER_API InferenceComponentContainerSpecification() = default;
34 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetImage() const { return m_image; }
42 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
43 template <typename ImageT = Aws::String>
44 void SetImage(ImageT&& value) {
45 m_imageHasBeenSet = true;
46 m_image = std::forward<ImageT>(value);
47 }
48 template <typename ImageT = Aws::String>
50 SetImage(std::forward<ImageT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetArtifactUrl() const { return m_artifactUrl; }
62 inline bool ArtifactUrlHasBeenSet() const { return m_artifactUrlHasBeenSet; }
63 template <typename ArtifactUrlT = Aws::String>
64 void SetArtifactUrl(ArtifactUrlT&& value) {
65 m_artifactUrlHasBeenSet = true;
66 m_artifactUrl = std::forward<ArtifactUrlT>(value);
67 }
68 template <typename ArtifactUrlT = Aws::String>
70 SetArtifactUrl(std::forward<ArtifactUrlT>(value));
71 return *this;
72 }
74
76
81 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
82 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
83 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
84 void SetEnvironment(EnvironmentT&& value) {
85 m_environmentHasBeenSet = true;
86 m_environment = std::forward<EnvironmentT>(value);
87 }
88 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
90 SetEnvironment(std::forward<EnvironmentT>(value));
91 return *this;
92 }
93 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
94 InferenceComponentContainerSpecification& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
95 m_environmentHasBeenSet = true;
96 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
97 return *this;
98 }
100 private:
101 Aws::String m_image;
102
103 Aws::String m_artifactUrl;
104
106 bool m_imageHasBeenSet = false;
107 bool m_artifactUrlHasBeenSet = false;
108 bool m_environmentHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace SageMaker
113} // namespace Aws
InferenceComponentContainerSpecification & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API InferenceComponentContainerSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API InferenceComponentContainerSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceComponentContainerSpecification & WithArtifactUrl(ArtifactUrlT &&value)
InferenceComponentContainerSpecification & WithEnvironment(EnvironmentT &&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