AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ContainerOverrides.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 ContainerOverrides() = 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 ContainerOverrides& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
58 template<typename CommandT = Aws::String>
59 ContainerOverrides& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
61
63
68 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
69 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
70 template<typename InstanceTypeT = Aws::String>
71 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
72 template<typename InstanceTypeT = Aws::String>
73 ContainerOverrides& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
75
77
85 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const { return m_environment; }
86 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
87 template<typename EnvironmentT = Aws::Vector<KeyValuePair>>
88 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
89 template<typename EnvironmentT = Aws::Vector<KeyValuePair>>
90 ContainerOverrides& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
91 template<typename EnvironmentT = KeyValuePair>
92 ContainerOverrides& AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment.emplace_back(std::forward<EnvironmentT>(value)); return *this; }
94
96
101 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const { return m_resourceRequirements; }
102 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
103 template<typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
104 void SetResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::forward<ResourceRequirementsT>(value); }
105 template<typename ResourceRequirementsT = Aws::Vector<ResourceRequirement>>
106 ContainerOverrides& WithResourceRequirements(ResourceRequirementsT&& value) { SetResourceRequirements(std::forward<ResourceRequirementsT>(value)); return *this;}
107 template<typename ResourceRequirementsT = ResourceRequirement>
108 ContainerOverrides& AddResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.emplace_back(std::forward<ResourceRequirementsT>(value)); return *this; }
110 private:
111
112 Aws::Vector<Aws::String> m_command;
113 bool m_commandHasBeenSet = false;
114
115 Aws::String m_instanceType;
116 bool m_instanceTypeHasBeenSet = false;
117
118 Aws::Vector<KeyValuePair> m_environment;
119 bool m_environmentHasBeenSet = false;
120
121 Aws::Vector<ResourceRequirement> m_resourceRequirements;
122 bool m_resourceRequirementsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Batch
127} // namespace Aws
AWS_BATCH_API ContainerOverrides()=default
ContainerOverrides & WithCommand(CommandT &&value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
void SetResourceRequirements(ResourceRequirementsT &&value)
AWS_BATCH_API ContainerOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceType() const
AWS_BATCH_API ContainerOverrides(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetCommand() const
void SetEnvironment(EnvironmentT &&value)
void SetInstanceType(InstanceTypeT &&value)
ContainerOverrides & AddResourceRequirements(ResourceRequirementsT &&value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
ContainerOverrides & WithEnvironment(EnvironmentT &&value)
ContainerOverrides & AddCommand(CommandT &&value)
ContainerOverrides & AddEnvironment(EnvironmentT &&value)
ContainerOverrides & WithInstanceType(InstanceTypeT &&value)
ContainerOverrides & WithResourceRequirements(ResourceRequirementsT &&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