AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ContainerConfig.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/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.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 ContainerConfig() = default;
33 AWS_SAGEMAKER_API ContainerConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetContainerArguments() const { return m_containerArguments; }
42 inline bool ContainerArgumentsHasBeenSet() const { return m_containerArgumentsHasBeenSet; }
43 template <typename ContainerArgumentsT = Aws::Vector<Aws::String>>
44 void SetContainerArguments(ContainerArgumentsT&& value) {
45 m_containerArgumentsHasBeenSet = true;
46 m_containerArguments = std::forward<ContainerArgumentsT>(value);
47 }
48 template <typename ContainerArgumentsT = Aws::Vector<Aws::String>>
49 ContainerConfig& WithContainerArguments(ContainerArgumentsT&& value) {
50 SetContainerArguments(std::forward<ContainerArgumentsT>(value));
51 return *this;
52 }
53 template <typename ContainerArgumentsT = Aws::String>
54 ContainerConfig& AddContainerArguments(ContainerArgumentsT&& value) {
55 m_containerArgumentsHasBeenSet = true;
56 m_containerArguments.emplace_back(std::forward<ContainerArgumentsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<Aws::String>& GetContainerEntrypoint() const { return m_containerEntrypoint; }
66 inline bool ContainerEntrypointHasBeenSet() const { return m_containerEntrypointHasBeenSet; }
67 template <typename ContainerEntrypointT = Aws::Vector<Aws::String>>
68 void SetContainerEntrypoint(ContainerEntrypointT&& value) {
69 m_containerEntrypointHasBeenSet = true;
70 m_containerEntrypoint = std::forward<ContainerEntrypointT>(value);
71 }
72 template <typename ContainerEntrypointT = Aws::Vector<Aws::String>>
73 ContainerConfig& WithContainerEntrypoint(ContainerEntrypointT&& value) {
74 SetContainerEntrypoint(std::forward<ContainerEntrypointT>(value));
75 return *this;
76 }
77 template <typename ContainerEntrypointT = Aws::String>
78 ContainerConfig& AddContainerEntrypoint(ContainerEntrypointT&& value) {
79 m_containerEntrypointHasBeenSet = true;
80 m_containerEntrypoint.emplace_back(std::forward<ContainerEntrypointT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetContainerEnvironmentVariables() const { return m_containerEnvironmentVariables; }
90 inline bool ContainerEnvironmentVariablesHasBeenSet() const { return m_containerEnvironmentVariablesHasBeenSet; }
91 template <typename ContainerEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
92 void SetContainerEnvironmentVariables(ContainerEnvironmentVariablesT&& value) {
93 m_containerEnvironmentVariablesHasBeenSet = true;
94 m_containerEnvironmentVariables = std::forward<ContainerEnvironmentVariablesT>(value);
95 }
96 template <typename ContainerEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
97 ContainerConfig& WithContainerEnvironmentVariables(ContainerEnvironmentVariablesT&& value) {
98 SetContainerEnvironmentVariables(std::forward<ContainerEnvironmentVariablesT>(value));
99 return *this;
100 }
101 template <typename ContainerEnvironmentVariablesKeyT = Aws::String, typename ContainerEnvironmentVariablesValueT = Aws::String>
102 ContainerConfig& AddContainerEnvironmentVariables(ContainerEnvironmentVariablesKeyT&& key, ContainerEnvironmentVariablesValueT&& value) {
103 m_containerEnvironmentVariablesHasBeenSet = true;
104 m_containerEnvironmentVariables.emplace(std::forward<ContainerEnvironmentVariablesKeyT>(key),
105 std::forward<ContainerEnvironmentVariablesValueT>(value));
106 return *this;
107 }
109 private:
110 Aws::Vector<Aws::String> m_containerArguments;
111
112 Aws::Vector<Aws::String> m_containerEntrypoint;
113
114 Aws::Map<Aws::String, Aws::String> m_containerEnvironmentVariables;
115 bool m_containerArgumentsHasBeenSet = false;
116 bool m_containerEntrypointHasBeenSet = false;
117 bool m_containerEnvironmentVariablesHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace SageMaker
122} // namespace Aws
ContainerConfig & WithContainerEnvironmentVariables(ContainerEnvironmentVariablesT &&value)
void SetContainerArguments(ContainerArgumentsT &&value)
AWS_SAGEMAKER_API ContainerConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API ContainerConfig()=default
const Aws::Map< Aws::String, Aws::String > & GetContainerEnvironmentVariables() const
const Aws::Vector< Aws::String > & GetContainerEntrypoint() const
void SetContainerEnvironmentVariables(ContainerEnvironmentVariablesT &&value)
void SetContainerEntrypoint(ContainerEntrypointT &&value)
ContainerConfig & WithContainerEntrypoint(ContainerEntrypointT &&value)
ContainerConfig & WithContainerArguments(ContainerArgumentsT &&value)
AWS_SAGEMAKER_API ContainerConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerConfig & AddContainerEntrypoint(ContainerEntrypointT &&value)
ContainerConfig & AddContainerEnvironmentVariables(ContainerEnvironmentVariablesKeyT &&key, ContainerEnvironmentVariablesValueT &&value)
const Aws::Vector< Aws::String > & GetContainerArguments() const
ContainerConfig & AddContainerArguments(ContainerArgumentsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue