AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCommand(const Aws::Vector<Aws::String>& value) { m_commandHasBeenSet = true; m_command = value; }
51 inline void SetCommand(Aws::Vector<Aws::String>&& value) { m_commandHasBeenSet = true; m_command = std::move(value); }
52 inline BatchContainerOverrides& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
53 inline BatchContainerOverrides& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
54 inline BatchContainerOverrides& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
55 inline BatchContainerOverrides& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
56 inline BatchContainerOverrides& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
58
60
68 inline const Aws::Vector<BatchEnvironmentVariable>& GetEnvironment() const{ return m_environment; }
69 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
70 inline void SetEnvironment(const Aws::Vector<BatchEnvironmentVariable>& value) { m_environmentHasBeenSet = true; m_environment = value; }
71 inline void SetEnvironment(Aws::Vector<BatchEnvironmentVariable>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
74 inline BatchContainerOverrides& AddEnvironment(const BatchEnvironmentVariable& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
75 inline BatchContainerOverrides& AddEnvironment(BatchEnvironmentVariable&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
77
79
84 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
85 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
86 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
87 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
88 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
89 inline BatchContainerOverrides& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
90 inline BatchContainerOverrides& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
91 inline BatchContainerOverrides& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
93
95
100 inline const Aws::Vector<BatchResourceRequirement>& GetResourceRequirements() const{ return m_resourceRequirements; }
101 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
102 inline void SetResourceRequirements(const Aws::Vector<BatchResourceRequirement>& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; }
103 inline void SetResourceRequirements(Aws::Vector<BatchResourceRequirement>&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); }
106 inline BatchContainerOverrides& AddResourceRequirements(const BatchResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; }
107 inline BatchContainerOverrides& AddResourceRequirements(BatchResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; }
109 private:
110
111 Aws::Vector<Aws::String> m_command;
112 bool m_commandHasBeenSet = false;
113
115 bool m_environmentHasBeenSet = false;
116
117 Aws::String m_instanceType;
118 bool m_instanceTypeHasBeenSet = false;
119
120 Aws::Vector<BatchResourceRequirement> m_resourceRequirements;
121 bool m_resourceRequirementsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Pipes
126} // namespace Aws
AWS_PIPES_API BatchContainerOverrides(Aws::Utils::Json::JsonView jsonValue)
BatchContainerOverrides & WithResourceRequirements(Aws::Vector< BatchResourceRequirement > &&value)
BatchContainerOverrides & AddResourceRequirements(const BatchResourceRequirement &value)
const Aws::Vector< BatchEnvironmentVariable > & GetEnvironment() const
BatchContainerOverrides & WithInstanceType(Aws::String &&value)
BatchContainerOverrides & AddCommand(const Aws::String &value)
BatchContainerOverrides & AddEnvironment(const BatchEnvironmentVariable &value)
void SetResourceRequirements(Aws::Vector< BatchResourceRequirement > &&value)
BatchContainerOverrides & WithEnvironment(const Aws::Vector< BatchEnvironmentVariable > &value)
AWS_PIPES_API BatchContainerOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
BatchContainerOverrides & AddResourceRequirements(BatchResourceRequirement &&value)
BatchContainerOverrides & WithResourceRequirements(const Aws::Vector< BatchResourceRequirement > &value)
void SetCommand(Aws::Vector< Aws::String > &&value)
void SetEnvironment(const Aws::Vector< BatchEnvironmentVariable > &value)
BatchContainerOverrides & WithInstanceType(const Aws::String &value)
BatchContainerOverrides & AddCommand(Aws::String &&value)
BatchContainerOverrides & WithCommand(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetCommand() const
void SetCommand(const Aws::Vector< Aws::String > &value)
void SetEnvironment(Aws::Vector< BatchEnvironmentVariable > &&value)
BatchContainerOverrides & WithEnvironment(Aws::Vector< BatchEnvironmentVariable > &&value)
const Aws::Vector< BatchResourceRequirement > & GetResourceRequirements() const
BatchContainerOverrides & AddCommand(const char *value)
void SetResourceRequirements(const Aws::Vector< BatchResourceRequirement > &value)
BatchContainerOverrides & WithCommand(const Aws::Vector< Aws::String > &value)
BatchContainerOverrides & AddEnvironment(BatchEnvironmentVariable &&value)
BatchContainerOverrides & WithInstanceType(const char *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