AWS SDK for C++

AWS SDK for C++ Version 1.11.834

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#include <aws/sagemaker/model/ContainerMetricsConfig.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 InferenceComponentContainerSpecification() = default;
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetImage() const { return m_image; }
43 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
44 template <typename ImageT = Aws::String>
45 void SetImage(ImageT&& value) {
46 m_imageHasBeenSet = true;
47 m_image = std::forward<ImageT>(value);
48 }
49 template <typename ImageT = Aws::String>
51 SetImage(std::forward<ImageT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetArtifactUrl() const { return m_artifactUrl; }
63 inline bool ArtifactUrlHasBeenSet() const { return m_artifactUrlHasBeenSet; }
64 template <typename ArtifactUrlT = Aws::String>
65 void SetArtifactUrl(ArtifactUrlT&& value) {
66 m_artifactUrlHasBeenSet = true;
67 m_artifactUrl = std::forward<ArtifactUrlT>(value);
68 }
69 template <typename ArtifactUrlT = Aws::String>
71 SetArtifactUrl(std::forward<ArtifactUrlT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
83 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
84 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
85 void SetEnvironment(EnvironmentT&& value) {
86 m_environmentHasBeenSet = true;
87 m_environment = std::forward<EnvironmentT>(value);
88 }
89 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
91 SetEnvironment(std::forward<EnvironmentT>(value));
92 return *this;
93 }
94 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
95 InferenceComponentContainerSpecification& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
96 m_environmentHasBeenSet = true;
97 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
98 return *this;
99 }
101
103
112 inline const ContainerMetricsConfig& GetContainerMetricsConfig() const { return m_containerMetricsConfig; }
113 inline bool ContainerMetricsConfigHasBeenSet() const { return m_containerMetricsConfigHasBeenSet; }
114 template <typename ContainerMetricsConfigT = ContainerMetricsConfig>
115 void SetContainerMetricsConfig(ContainerMetricsConfigT&& value) {
116 m_containerMetricsConfigHasBeenSet = true;
117 m_containerMetricsConfig = std::forward<ContainerMetricsConfigT>(value);
118 }
119 template <typename ContainerMetricsConfigT = ContainerMetricsConfig>
121 SetContainerMetricsConfig(std::forward<ContainerMetricsConfigT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_image;
127
128 Aws::String m_artifactUrl;
129
131
132 ContainerMetricsConfig m_containerMetricsConfig;
133 bool m_imageHasBeenSet = false;
134 bool m_artifactUrlHasBeenSet = false;
135 bool m_environmentHasBeenSet = false;
136 bool m_containerMetricsConfigHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace SageMaker
141} // 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 & WithContainerMetricsConfig(ContainerMetricsConfigT &&value)
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