AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
InferenceComponentContainerSpecificationSummary.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#include <aws/sagemaker/model/DeployedImage.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
24
32 public:
36 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const DeployedImage& GetDeployedImage() const { return m_deployedImage; }
41 inline bool DeployedImageHasBeenSet() const { return m_deployedImageHasBeenSet; }
42 template <typename DeployedImageT = DeployedImage>
43 void SetDeployedImage(DeployedImageT&& value) {
44 m_deployedImageHasBeenSet = true;
45 m_deployedImage = std::forward<DeployedImageT>(value);
46 }
47 template <typename DeployedImageT = DeployedImage>
49 SetDeployedImage(std::forward<DeployedImageT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArtifactUrl() const { return m_artifactUrl; }
59 inline bool ArtifactUrlHasBeenSet() const { return m_artifactUrlHasBeenSet; }
60 template <typename ArtifactUrlT = Aws::String>
61 void SetArtifactUrl(ArtifactUrlT&& value) {
62 m_artifactUrlHasBeenSet = true;
63 m_artifactUrl = std::forward<ArtifactUrlT>(value);
64 }
65 template <typename ArtifactUrlT = Aws::String>
67 SetArtifactUrl(std::forward<ArtifactUrlT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironment() const { return m_environment; }
77 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
78 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
79 void SetEnvironment(EnvironmentT&& value) {
80 m_environmentHasBeenSet = true;
81 m_environment = std::forward<EnvironmentT>(value);
82 }
83 template <typename EnvironmentT = Aws::Map<Aws::String, Aws::String>>
85 SetEnvironment(std::forward<EnvironmentT>(value));
86 return *this;
87 }
88 template <typename EnvironmentKeyT = Aws::String, typename EnvironmentValueT = Aws::String>
89 InferenceComponentContainerSpecificationSummary& AddEnvironment(EnvironmentKeyT&& key, EnvironmentValueT&& value) {
90 m_environmentHasBeenSet = true;
91 m_environment.emplace(std::forward<EnvironmentKeyT>(key), std::forward<EnvironmentValueT>(value));
92 return *this;
93 }
95
97
101 inline const ContainerMetricsConfig& GetContainerMetricsConfig() const { return m_containerMetricsConfig; }
102 inline bool ContainerMetricsConfigHasBeenSet() const { return m_containerMetricsConfigHasBeenSet; }
103 template <typename ContainerMetricsConfigT = ContainerMetricsConfig>
104 void SetContainerMetricsConfig(ContainerMetricsConfigT&& value) {
105 m_containerMetricsConfigHasBeenSet = true;
106 m_containerMetricsConfig = std::forward<ContainerMetricsConfigT>(value);
107 }
108 template <typename ContainerMetricsConfigT = ContainerMetricsConfig>
110 SetContainerMetricsConfig(std::forward<ContainerMetricsConfigT>(value));
111 return *this;
112 }
114 private:
115 DeployedImage m_deployedImage;
116
117 Aws::String m_artifactUrl;
118
120
121 ContainerMetricsConfig m_containerMetricsConfig;
122 bool m_deployedImageHasBeenSet = false;
123 bool m_artifactUrlHasBeenSet = false;
124 bool m_environmentHasBeenSet = false;
125 bool m_containerMetricsConfigHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SageMaker
130} // namespace Aws
AWS_SAGEMAKER_API InferenceComponentContainerSpecificationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
InferenceComponentContainerSpecificationSummary & WithContainerMetricsConfig(ContainerMetricsConfigT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InferenceComponentContainerSpecificationSummary & AddEnvironment(EnvironmentKeyT &&key, EnvironmentValueT &&value)
InferenceComponentContainerSpecificationSummary & WithDeployedImage(DeployedImageT &&value)
AWS_SAGEMAKER_API InferenceComponentContainerSpecificationSummary(Aws::Utils::Json::JsonView jsonValue)
InferenceComponentContainerSpecificationSummary & WithEnvironment(EnvironmentT &&value)
InferenceComponentContainerSpecificationSummary & WithArtifactUrl(ArtifactUrlT &&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