AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ContainerConfig.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API ContainerConfig() = default;
38 AWS_SAGEMAKER_API ContainerConfig(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetContainerArguments() const { return m_containerArguments; }
48 inline bool ContainerArgumentsHasBeenSet() const { return m_containerArgumentsHasBeenSet; }
49 template<typename ContainerArgumentsT = Aws::Vector<Aws::String>>
50 void SetContainerArguments(ContainerArgumentsT&& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments = std::forward<ContainerArgumentsT>(value); }
51 template<typename ContainerArgumentsT = Aws::Vector<Aws::String>>
52 ContainerConfig& WithContainerArguments(ContainerArgumentsT&& value) { SetContainerArguments(std::forward<ContainerArgumentsT>(value)); return *this;}
53 template<typename ContainerArgumentsT = Aws::String>
54 ContainerConfig& AddContainerArguments(ContainerArgumentsT&& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments.emplace_back(std::forward<ContainerArgumentsT>(value)); return *this; }
56
58
61 inline const Aws::Vector<Aws::String>& GetContainerEntrypoint() const { return m_containerEntrypoint; }
62 inline bool ContainerEntrypointHasBeenSet() const { return m_containerEntrypointHasBeenSet; }
63 template<typename ContainerEntrypointT = Aws::Vector<Aws::String>>
64 void SetContainerEntrypoint(ContainerEntrypointT&& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint = std::forward<ContainerEntrypointT>(value); }
65 template<typename ContainerEntrypointT = Aws::Vector<Aws::String>>
66 ContainerConfig& WithContainerEntrypoint(ContainerEntrypointT&& value) { SetContainerEntrypoint(std::forward<ContainerEntrypointT>(value)); return *this;}
67 template<typename ContainerEntrypointT = Aws::String>
68 ContainerConfig& AddContainerEntrypoint(ContainerEntrypointT&& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint.emplace_back(std::forward<ContainerEntrypointT>(value)); return *this; }
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetContainerEnvironmentVariables() const { return m_containerEnvironmentVariables; }
76 inline bool ContainerEnvironmentVariablesHasBeenSet() const { return m_containerEnvironmentVariablesHasBeenSet; }
77 template<typename ContainerEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
78 void SetContainerEnvironmentVariables(ContainerEnvironmentVariablesT&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables = std::forward<ContainerEnvironmentVariablesT>(value); }
79 template<typename ContainerEnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
80 ContainerConfig& WithContainerEnvironmentVariables(ContainerEnvironmentVariablesT&& value) { SetContainerEnvironmentVariables(std::forward<ContainerEnvironmentVariablesT>(value)); return *this;}
81 template<typename ContainerEnvironmentVariablesKeyT = Aws::String, typename ContainerEnvironmentVariablesValueT = Aws::String>
82 ContainerConfig& AddContainerEnvironmentVariables(ContainerEnvironmentVariablesKeyT&& key, ContainerEnvironmentVariablesValueT&& value) {
83 m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(std::forward<ContainerEnvironmentVariablesKeyT>(key), std::forward<ContainerEnvironmentVariablesValueT>(value)); return *this;
84 }
86 private:
87
88 Aws::Vector<Aws::String> m_containerArguments;
89 bool m_containerArgumentsHasBeenSet = false;
90
91 Aws::Vector<Aws::String> m_containerEntrypoint;
92 bool m_containerEntrypointHasBeenSet = false;
93
94 Aws::Map<Aws::String, Aws::String> m_containerEnvironmentVariables;
95 bool m_containerEnvironmentVariablesHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace SageMaker
100} // 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