AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchContainerOverrides.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pipes/model/BatchEnvironmentVariable.h>
11#include <aws/pipes/model/BatchResourceRequirement.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 Pipes
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_PIPES_API BatchContainerOverrides() = default;
40 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Aws::String>& GetCommand() const { return m_command; }
49 inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; }
50 template<typename CommandT = Aws::Vector<Aws::String>>
51 void SetCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command = std::forward<CommandT>(value); }
52 template<typename CommandT = Aws::Vector<Aws::String>>
53 BatchContainerOverrides& WithCommand(CommandT&& value) { SetCommand(std::forward<CommandT>(value)); return *this;}
54 template<typename CommandT = Aws::String>
55 BatchContainerOverrides& AddCommand(CommandT&& value) { m_commandHasBeenSet = true; m_command.emplace_back(std::forward<CommandT>(value)); return *this; }
57
59
67 inline const Aws::Vector<BatchEnvironmentVariable>& GetEnvironment() const { return m_environment; }
68 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
69 template<typename EnvironmentT = Aws::Vector<BatchEnvironmentVariable>>
70 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
71 template<typename EnvironmentT = Aws::Vector<BatchEnvironmentVariable>>
72 BatchContainerOverrides& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
73 template<typename EnvironmentT = BatchEnvironmentVariable>
74 BatchContainerOverrides& AddEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment.emplace_back(std::forward<EnvironmentT>(value)); return *this; }
76
78
83 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
84 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
85 template<typename InstanceTypeT = Aws::String>
86 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
87 template<typename InstanceTypeT = Aws::String>
88 BatchContainerOverrides& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
90
92
97 inline const Aws::Vector<BatchResourceRequirement>& GetResourceRequirements() const { return m_resourceRequirements; }
98 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
99 template<typename ResourceRequirementsT = Aws::Vector<BatchResourceRequirement>>
100 void SetResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::forward<ResourceRequirementsT>(value); }
101 template<typename ResourceRequirementsT = Aws::Vector<BatchResourceRequirement>>
102 BatchContainerOverrides& WithResourceRequirements(ResourceRequirementsT&& value) { SetResourceRequirements(std::forward<ResourceRequirementsT>(value)); return *this;}
103 template<typename ResourceRequirementsT = BatchResourceRequirement>
104 BatchContainerOverrides& AddResourceRequirements(ResourceRequirementsT&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.emplace_back(std::forward<ResourceRequirementsT>(value)); return *this; }
106 private:
107
108 Aws::Vector<Aws::String> m_command;
109 bool m_commandHasBeenSet = false;
110
112 bool m_environmentHasBeenSet = false;
113
114 Aws::String m_instanceType;
115 bool m_instanceTypeHasBeenSet = false;
116
117 Aws::Vector<BatchResourceRequirement> m_resourceRequirements;
118 bool m_resourceRequirementsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Pipes
123} // namespace Aws
void SetResourceRequirements(ResourceRequirementsT &&value)
AWS_PIPES_API BatchContainerOverrides(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< BatchEnvironmentVariable > & GetEnvironment() const
BatchContainerOverrides & WithCommand(CommandT &&value)
BatchContainerOverrides & AddCommand(CommandT &&value)
AWS_PIPES_API BatchContainerOverrides()=default
AWS_PIPES_API BatchContainerOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchContainerOverrides & WithResourceRequirements(ResourceRequirementsT &&value)
BatchContainerOverrides & WithInstanceType(InstanceTypeT &&value)
BatchContainerOverrides & AddResourceRequirements(ResourceRequirementsT &&value)
BatchContainerOverrides & WithEnvironment(EnvironmentT &&value)
const Aws::Vector< Aws::String > & GetCommand() const
const Aws::Vector< BatchResourceRequirement > & GetResourceRequirements() const
BatchContainerOverrides & AddEnvironment(EnvironmentT &&value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue