AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EksContainerOverride.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/batch/model/EksContainerResourceRequirements.h>
11#include <aws/batch/model/EksContainerEnvironmentVariable.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Batch
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_BATCH_API EksContainerOverride();
43 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetName() const{ return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
56 inline EksContainerOverride& WithName(const Aws::String& value) { SetName(value); return *this;}
57 inline EksContainerOverride& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
58 inline EksContainerOverride& WithName(const char* value) { SetName(value); return *this;}
60
62
65 inline const Aws::String& GetImage() const{ return m_image; }
66 inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; }
67 inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; }
68 inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); }
69 inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); }
70 inline EksContainerOverride& WithImage(const Aws::String& value) { SetImage(value); return *this;}
71 inline EksContainerOverride& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;}
72 inline EksContainerOverride& WithImage(const char* value) { SetImage(value); return *this;}
74
76
80 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
81 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
82 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
83 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
84 inline EksContainerOverride& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
85 inline EksContainerOverride& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
86 inline EksContainerOverride& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
87 inline EksContainerOverride& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
88 inline EksContainerOverride& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
90
92
101 inline const Aws::Vector<Aws::String>& GetArgs() const{ return m_args; }
102 inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; }
103 inline void SetArgs(const Aws::Vector<Aws::String>& value) { m_argsHasBeenSet = true; m_args = value; }
104 inline void SetArgs(Aws::Vector<Aws::String>&& value) { m_argsHasBeenSet = true; m_args = std::move(value); }
105 inline EksContainerOverride& WithArgs(const Aws::Vector<Aws::String>& value) { SetArgs(value); return *this;}
106 inline EksContainerOverride& WithArgs(Aws::Vector<Aws::String>&& value) { SetArgs(std::move(value)); return *this;}
107 inline EksContainerOverride& AddArgs(const Aws::String& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
108 inline EksContainerOverride& AddArgs(Aws::String&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; }
109 inline EksContainerOverride& AddArgs(const char* value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; }
111
113
121 inline const Aws::Vector<EksContainerEnvironmentVariable>& GetEnv() const{ return m_env; }
122 inline bool EnvHasBeenSet() const { return m_envHasBeenSet; }
123 inline void SetEnv(const Aws::Vector<EksContainerEnvironmentVariable>& value) { m_envHasBeenSet = true; m_env = value; }
124 inline void SetEnv(Aws::Vector<EksContainerEnvironmentVariable>&& value) { m_envHasBeenSet = true; m_env = std::move(value); }
126 inline EksContainerOverride& WithEnv(Aws::Vector<EksContainerEnvironmentVariable>&& value) { SetEnv(std::move(value)); return *this;}
127 inline EksContainerOverride& AddEnv(const EksContainerEnvironmentVariable& value) { m_envHasBeenSet = true; m_env.push_back(value); return *this; }
128 inline EksContainerOverride& AddEnv(EksContainerEnvironmentVariable&& value) { m_envHasBeenSet = true; m_env.push_back(std::move(value)); return *this; }
130
132
141 inline const EksContainerResourceRequirements& GetResources() const{ return m_resources; }
142 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
143 inline void SetResources(const EksContainerResourceRequirements& value) { m_resourcesHasBeenSet = true; m_resources = value; }
144 inline void SetResources(EksContainerResourceRequirements&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
146 inline EksContainerOverride& WithResources(EksContainerResourceRequirements&& value) { SetResources(std::move(value)); return *this;}
148 private:
149
150 Aws::String m_name;
151 bool m_nameHasBeenSet = false;
152
153 Aws::String m_image;
154 bool m_imageHasBeenSet = false;
155
156 Aws::Vector<Aws::String> m_command;
157 bool m_commandHasBeenSet = false;
158
160 bool m_argsHasBeenSet = false;
161
163 bool m_envHasBeenSet = false;
164
166 bool m_resourcesHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace Batch
171} // namespace Aws
EksContainerOverride & AddArgs(const Aws::String &value)
void SetEnv(const Aws::Vector< EksContainerEnvironmentVariable > &value)
EksContainerOverride & WithCommand(const Aws::Vector< Aws::String > &value)
EksContainerOverride & AddArgs(Aws::String &&value)
void SetEnv(Aws::Vector< EksContainerEnvironmentVariable > &&value)
const Aws::Vector< Aws::String > & GetCommand() const
EksContainerOverride & WithName(const Aws::String &value)
EksContainerOverride & AddCommand(Aws::String &&value)
const Aws::Vector< EksContainerEnvironmentVariable > & GetEnv() const
EksContainerOverride & AddEnv(EksContainerEnvironmentVariable &&value)
EksContainerOverride & AddEnv(const EksContainerEnvironmentVariable &value)
void SetImage(const Aws::String &value)
EksContainerOverride & WithImage(Aws::String &&value)
void SetArgs(Aws::Vector< Aws::String > &&value)
EksContainerOverride & WithEnv(const Aws::Vector< EksContainerEnvironmentVariable > &value)
EksContainerOverride & WithArgs(Aws::Vector< Aws::String > &&value)
void SetResources(const EksContainerResourceRequirements &value)
void SetName(const Aws::String &value)
EksContainerOverride & WithCommand(Aws::Vector< Aws::String > &&value)
AWS_BATCH_API EksContainerOverride(Aws::Utils::Json::JsonView jsonValue)
void SetResources(EksContainerResourceRequirements &&value)
EksContainerOverride & WithImage(const Aws::String &value)
const EksContainerResourceRequirements & GetResources() const
EksContainerOverride & WithResources(const EksContainerResourceRequirements &value)
const Aws::Vector< Aws::String > & GetArgs() const
EksContainerOverride & AddCommand(const Aws::String &value)
void SetArgs(const Aws::Vector< Aws::String > &value)
void SetCommand(const Aws::Vector< Aws::String > &value)
AWS_BATCH_API EksContainerOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
EksContainerOverride & WithResources(EksContainerResourceRequirements &&value)
EksContainerOverride & WithArgs(const Aws::Vector< Aws::String > &value)
EksContainerOverride & WithName(const char *value)
EksContainerOverride & WithEnv(Aws::Vector< EksContainerEnvironmentVariable > &&value)
void SetCommand(Aws::Vector< Aws::String > &&value)
EksContainerOverride & WithName(Aws::String &&value)
EksContainerOverride & AddCommand(const char *value)
EksContainerOverride & WithImage(const char *value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
EksContainerOverride & AddArgs(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue