AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContainerArguments(const Aws::Vector<Aws::String>& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments = value; }
50 inline void SetContainerArguments(Aws::Vector<Aws::String>&& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments = std::move(value); }
52 inline ContainerConfig& WithContainerArguments(Aws::Vector<Aws::String>&& value) { SetContainerArguments(std::move(value)); return *this;}
53 inline ContainerConfig& AddContainerArguments(const Aws::String& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments.push_back(value); return *this; }
54 inline ContainerConfig& AddContainerArguments(Aws::String&& value) { m_containerArgumentsHasBeenSet = true; m_containerArguments.push_back(std::move(value)); return *this; }
55 inline ContainerConfig& AddContainerArguments(const char* value) { m_containerArgumentsHasBeenSet = true; m_containerArguments.push_back(value); return *this; }
57
59
62 inline const Aws::Vector<Aws::String>& GetContainerEntrypoint() const{ return m_containerEntrypoint; }
63 inline bool ContainerEntrypointHasBeenSet() const { return m_containerEntrypointHasBeenSet; }
64 inline void SetContainerEntrypoint(const Aws::Vector<Aws::String>& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint = value; }
65 inline void SetContainerEntrypoint(Aws::Vector<Aws::String>&& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint = std::move(value); }
68 inline ContainerConfig& AddContainerEntrypoint(const Aws::String& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint.push_back(value); return *this; }
69 inline ContainerConfig& AddContainerEntrypoint(Aws::String&& value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint.push_back(std::move(value)); return *this; }
70 inline ContainerConfig& AddContainerEntrypoint(const char* value) { m_containerEntrypointHasBeenSet = true; m_containerEntrypoint.push_back(value); return *this; }
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetContainerEnvironmentVariables() const{ return m_containerEnvironmentVariables; }
78 inline bool ContainerEnvironmentVariablesHasBeenSet() const { return m_containerEnvironmentVariablesHasBeenSet; }
79 inline void SetContainerEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables = value; }
80 inline void SetContainerEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables = std::move(value); }
83 inline ContainerConfig& AddContainerEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(key, value); return *this; }
84 inline ContainerConfig& AddContainerEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(std::move(key), value); return *this; }
85 inline ContainerConfig& AddContainerEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(key, std::move(value)); return *this; }
86 inline ContainerConfig& AddContainerEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(std::move(key), std::move(value)); return *this; }
87 inline ContainerConfig& AddContainerEnvironmentVariables(const char* key, Aws::String&& value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(key, std::move(value)); return *this; }
88 inline ContainerConfig& AddContainerEnvironmentVariables(Aws::String&& key, const char* value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(std::move(key), value); return *this; }
89 inline ContainerConfig& AddContainerEnvironmentVariables(const char* key, const char* value) { m_containerEnvironmentVariablesHasBeenSet = true; m_containerEnvironmentVariables.emplace(key, value); return *this; }
91 private:
92
93 Aws::Vector<Aws::String> m_containerArguments;
94 bool m_containerArgumentsHasBeenSet = false;
95
96 Aws::Vector<Aws::String> m_containerEntrypoint;
97 bool m_containerEntrypointHasBeenSet = false;
98
99 Aws::Map<Aws::String, Aws::String> m_containerEnvironmentVariables;
100 bool m_containerEnvironmentVariablesHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SageMaker
105} // namespace Aws
ContainerConfig & AddContainerEntrypoint(const char *value)
ContainerConfig & AddContainerArguments(const char *value)
ContainerConfig & AddContainerEnvironmentVariables(const Aws::String &key, const Aws::String &value)
ContainerConfig & AddContainerEntrypoint(Aws::String &&value)
ContainerConfig & WithContainerArguments(const Aws::Vector< Aws::String > &value)
AWS_SAGEMAKER_API ContainerConfig(Aws::Utils::Json::JsonView jsonValue)
ContainerConfig & WithContainerEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetContainerEnvironmentVariables() const
const Aws::Vector< Aws::String > & GetContainerEntrypoint() const
ContainerConfig & AddContainerEnvironmentVariables(Aws::String &&key, const Aws::String &value)
ContainerConfig & WithContainerEntrypoint(Aws::Vector< Aws::String > &&value)
ContainerConfig & WithContainerEntrypoint(const Aws::Vector< Aws::String > &value)
AWS_SAGEMAKER_API ContainerConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerConfig & WithContainerArguments(Aws::Vector< Aws::String > &&value)
ContainerConfig & AddContainerEnvironmentVariables(const Aws::String &key, Aws::String &&value)
void SetContainerArguments(Aws::Vector< Aws::String > &&value)
void SetContainerEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
ContainerConfig & AddContainerArguments(Aws::String &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerConfig & AddContainerEnvironmentVariables(Aws::String &&key, const char *value)
void SetContainerEntrypoint(const Aws::Vector< Aws::String > &value)
void SetContainerArguments(const Aws::Vector< Aws::String > &value)
ContainerConfig & WithContainerEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
void SetContainerEntrypoint(Aws::Vector< Aws::String > &&value)
ContainerConfig & AddContainerArguments(const Aws::String &value)
ContainerConfig & AddContainerEnvironmentVariables(Aws::String &&key, Aws::String &&value)
ContainerConfig & AddContainerEntrypoint(const Aws::String &value)
const Aws::Vector< Aws::String > & GetContainerArguments() const
ContainerConfig & AddContainerEnvironmentVariables(const char *key, const char *value)
ContainerConfig & AddContainerEnvironmentVariables(const char *key, Aws::String &&value)
void SetContainerEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue