AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CommandT = Aws::Vector<Aws::String>>
55 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
56 template<typename CommandT = Aws::Vector<Aws::String>>
57 TaskContainerOverrides& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
58 template<typename CommandT = Aws::String>
59 TaskContainerOverrides& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
61
63
71 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const { return m_environment; }
72 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
73 template<typename EnvironmentT = Aws::Vector<KeyValuePair>>
74 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
75 template<typename EnvironmentT = Aws::Vector<KeyValuePair>>
76 TaskContainerOverrides& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
77 template<typename EnvironmentT = KeyValuePair>
78 TaskContainerOverrides& AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment.emplace_back(std::forward<EnvironmentT>(value)); return *this; }
80
82
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template<typename NameT = Aws::String>
89 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
90 template<typename NameT = Aws::String>
91 TaskContainerOverrides& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
93
95
100 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const { return m_resourceRequirements; }
101 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
102 template<typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
103 void SetResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::forward<ResourceRequirementsT>(value); }
104 template<typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
105 TaskContainerOverrides& WithResourceRequirements(ResourceRequirementsT&& value) { SetResourceRequirements(std::forward<ResourceRequirementsT>(value)); return *this;}
106 template<typename ResourceRequirementsT = ResourceRequirement>
107 TaskContainerOverrides& AddResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.emplace_back(std::forward<ResourceRequirementsT>(value)); return *this; }
109 private:
110
111 Aws::Vector<Aws::String> m_command;
112 bool m_commandHasBeenSet = false;
113
114 Aws::Vector<KeyValuePair> m_environment;
115 bool m_environmentHasBeenSet = false;
116
117 Aws::String m_name;
118 bool m_nameHasBeenSet = false;
119
120 Aws::Vector<ResourceRequirement> m_resourceRequirements;
121 bool m_resourceRequirementsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Batch
126} // namespace Aws
void SetResourceRequirements(ResourceRequirementsT &&value)
TaskContainerOverrides & AddCommand(CommandT &&value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
AWS_BATCH_API TaskContainerOverrides(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
TaskContainerOverrides & WithResourceRequirements(ResourceRequirementsT &&value)
AWS_BATCH_API TaskContainerOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskContainerOverrides & AddResourceRequirements(ResourceRequirementsT &&value)
TaskContainerOverrides & AddEnvironment(EnvironmentT &&value)
TaskContainerOverrides & WithCommand(CommandT &&value)
AWS_BATCH_API TaskContainerOverrides()=default
const Aws::Vector< KeyValuePair > & GetEnvironment() const
const Aws::Vector< Aws::String > & GetCommand() const
TaskContainerOverrides & WithEnvironment(EnvironmentT &&value)
TaskContainerOverrides & WithName(NameT &&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