AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
36 AWS_SAGEMAKER_API InferenceComponentContainerSpecification() = default;
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 template<typename ImageT = Aws::String>
50 void SetImage(ImageT&& value) { m_imageHasBeenSet = true; m_image = std::forward<ImageT>(value); }
51 template<typename ImageT = Aws::String>
52 InferenceComponentContainerSpecification& WithImage(ImageT&& value) { SetImage(std::forward<ImageT>(value)); return *this;}
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) { m_artifactUrlHasBeenSet = true; m_artifactUrl = std::forward<ArtifactUrlT>(value); }
65 template<typename ArtifactUrlT = Aws::String>
66 InferenceComponentContainerSpecification& WithArtifactUrl(ArtifactUrlT&& value) { SetArtifactUrl(std::forward<ArtifactUrlT>(value)); return *this;}
68
70
75 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
76 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
77 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
78 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
79 template<typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
80 InferenceComponentContainerSpecification& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
81 template<typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
82 InferenceComponentContainerSpecification& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
83 m_environmentHasBeenSet = true; m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value)); return *this;
84 }
86 private:
87
88 Aws::String m_image;
89 bool m_imageHasBeenSet = false;
90
91 Aws::String m_artifactUrl;
92 bool m_artifactUrlHasBeenSet = false;
93
95 bool m_environmentHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SageMaker
100} // 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