AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TaskContainerOverrides.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/batch/model/KeyValuePair.h>
11#include <aws/batch/model/ResourceRequirement.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 TaskContainerOverrides();
43 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline const Aws::Vector<Aws::String>& GetCommand() const{ return m_command; }
53 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
54 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
55 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
56 inline TaskContainerOverrides& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
57 inline TaskContainerOverrides& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
58 inline TaskContainerOverrides& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
59 inline TaskContainerOverrides& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
60 inline TaskContainerOverrides& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
62
64
72 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const{ return m_environment; }
73 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
74 inline void SetEnvironment(const Aws::Vector<KeyValuePair>& value) { m_environmentHasBeenSet = true; m_environment = value; }
75 inline void SetEnvironment(Aws::Vector<KeyValuePair>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
77 inline TaskContainerOverrides& WithEnvironment(Aws::Vector<KeyValuePair>&& value) { SetEnvironment(std::move(value)); return *this;}
78 inline TaskContainerOverrides& AddEnvironment(const KeyValuePair& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
79 inline TaskContainerOverrides& AddEnvironment(KeyValuePair&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
81
83
87 inline const Aws::String& GetName() const{ return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
91 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
92 inline TaskContainerOverrides& WithName(const Aws::String& value) { SetName(value); return *this;}
93 inline TaskContainerOverrides& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
94 inline TaskContainerOverrides& WithName(const char* value) { SetName(value); return *this;}
96
98
103 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const{ return m_resourceRequirements; }
104 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
105 inline void SetResourceRequirements(const Aws::Vector<ResourceRequirement>& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; }
106 inline void SetResourceRequirements(Aws::Vector<ResourceRequirement>&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); }
109 inline TaskContainerOverrides& AddResourceRequirements(const ResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; }
110 inline TaskContainerOverrides& AddResourceRequirements(ResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::Vector<Aws::String> m_command;
115 bool m_commandHasBeenSet = false;
116
117 Aws::Vector<KeyValuePair> m_environment;
118 bool m_environmentHasBeenSet = false;
119
120 Aws::String m_name;
121 bool m_nameHasBeenSet = false;
122
123 Aws::Vector<ResourceRequirement> m_resourceRequirements;
124 bool m_resourceRequirementsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Batch
129} // namespace Aws
void SetCommand(const Aws::Vector< Aws::String > &value)
TaskContainerOverrides & AddCommand(const char *value)
TaskContainerOverrides & WithCommand(Aws::Vector< Aws::String > &&value)
TaskContainerOverrides & AddEnvironment(const KeyValuePair &value)
TaskContainerOverrides & AddResourceRequirements(const ResourceRequirement &value)
TaskContainerOverrides & AddCommand(Aws::String &&value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
TaskContainerOverrides & WithEnvironment(Aws::Vector< KeyValuePair > &&value)
AWS_BATCH_API TaskContainerOverrides(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
TaskContainerOverrides & WithCommand(const Aws::Vector< Aws::String > &value)
AWS_BATCH_API TaskContainerOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEnvironment(const Aws::Vector< KeyValuePair > &value)
void SetEnvironment(Aws::Vector< KeyValuePair > &&value)
void SetResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
const Aws::Vector< Aws::String > & GetCommand() const
void SetCommand(Aws::Vector< Aws::String > &&value)
TaskContainerOverrides & AddCommand(const Aws::String &value)
TaskContainerOverrides & WithResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
void SetResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
TaskContainerOverrides & WithName(const Aws::String &value)
TaskContainerOverrides & WithName(const char *value)
TaskContainerOverrides & AddEnvironment(KeyValuePair &&value)
TaskContainerOverrides & WithName(Aws::String &&value)
TaskContainerOverrides & AddResourceRequirements(ResourceRequirement &&value)
TaskContainerOverrides & WithEnvironment(const Aws::Vector< KeyValuePair > &value)
TaskContainerOverrides & WithResourceRequirements(const Aws::Vector< ResourceRequirement > &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