AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 ContainerOverrides& WithCommand(const Aws::Vector<Aws::String>& value) { SetCommand(value); return *this;}
57 inline ContainerOverrides& WithCommand(Aws::Vector<Aws::String>&& value) { SetCommand(std::move(value)); return *this;}
58 inline ContainerOverrides& AddCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
59 inline ContainerOverrides& AddCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command.push_back(std::move(value)); return *this; }
60 inline ContainerOverrides& AddCommand(const char* value) { m_commandHasBeenSet = true; m_command.push_back(value); return *this; }
62
64
69 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
70 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
71 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
72 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
73 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
74 inline ContainerOverrides& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
75 inline ContainerOverrides& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
76 inline ContainerOverrides& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
78
80
88 inline const Aws::Vector<KeyValuePair>& GetEnvironment() const{ return m_environment; }
89 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
90 inline void SetEnvironment(const Aws::Vector<KeyValuePair>& value) { m_environmentHasBeenSet = true; m_environment = value; }
91 inline void SetEnvironment(Aws::Vector<KeyValuePair>&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); }
92 inline ContainerOverrides& WithEnvironment(const Aws::Vector<KeyValuePair>& value) { SetEnvironment(value); return *this;}
93 inline ContainerOverrides& WithEnvironment(Aws::Vector<KeyValuePair>&& value) { SetEnvironment(std::move(value)); return *this;}
94 inline ContainerOverrides& AddEnvironment(const KeyValuePair& value) { m_environmentHasBeenSet = true; m_environment.push_back(value); return *this; }
95 inline ContainerOverrides& AddEnvironment(KeyValuePair&& value) { m_environmentHasBeenSet = true; m_environment.push_back(std::move(value)); return *this; }
97
99
104 inline const Aws::Vector<ResourceRequirement>& GetResourceRequirements() const{ return m_resourceRequirements; }
105 inline bool ResourceRequirementsHasBeenSet() const { return m_resourceRequirementsHasBeenSet; }
106 inline void SetResourceRequirements(const Aws::Vector<ResourceRequirement>& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = value; }
107 inline void SetResourceRequirements(Aws::Vector<ResourceRequirement>&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements = std::move(value); }
110 inline ContainerOverrides& AddResourceRequirements(const ResourceRequirement& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(value); return *this; }
111 inline ContainerOverrides& AddResourceRequirements(ResourceRequirement&& value) { m_resourceRequirementsHasBeenSet = true; m_resourceRequirements.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::Vector<Aws::String> m_command;
116 bool m_commandHasBeenSet = false;
117
118 Aws::String m_instanceType;
119 bool m_instanceTypeHasBeenSet = false;
120
121 Aws::Vector<KeyValuePair> m_environment;
122 bool m_environmentHasBeenSet = false;
123
124 Aws::Vector<ResourceRequirement> m_resourceRequirements;
125 bool m_resourceRequirementsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Batch
130} // namespace Aws
ContainerOverrides & AddCommand(Aws::String &&value)
ContainerOverrides & WithInstanceType(const Aws::String &value)
const Aws::Vector< KeyValuePair > & GetEnvironment() const
ContainerOverrides & AddCommand(const char *value)
ContainerOverrides & WithEnvironment(Aws::Vector< KeyValuePair > &&value)
AWS_BATCH_API ContainerOverrides & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetInstanceType() const
void SetInstanceType(Aws::String &&value)
ContainerOverrides & WithInstanceType(Aws::String &&value)
AWS_BATCH_API ContainerOverrides(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerOverrides & AddResourceRequirements(const ResourceRequirement &value)
ContainerOverrides & AddCommand(const Aws::String &value)
const Aws::Vector< Aws::String > & GetCommand() const
ContainerOverrides & WithCommand(const Aws::Vector< Aws::String > &value)
void SetCommand(Aws::Vector< Aws::String > &&value)
ContainerOverrides & WithEnvironment(const Aws::Vector< KeyValuePair > &value)
void SetEnvironment(Aws::Vector< KeyValuePair > &&value)
const Aws::Vector< ResourceRequirement > & GetResourceRequirements() const
ContainerOverrides & WithResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
ContainerOverrides & WithCommand(Aws::Vector< Aws::String > &&value)
ContainerOverrides & WithResourceRequirements(Aws::Vector< ResourceRequirement > &&value)
ContainerOverrides & AddEnvironment(const KeyValuePair &value)
void SetCommand(const Aws::Vector< Aws::String > &value)
ContainerOverrides & AddEnvironment(KeyValuePair &&value)
ContainerOverrides & AddResourceRequirements(ResourceRequirement &&value)
void SetResourceRequirements(const Aws::Vector< ResourceRequirement > &value)
ContainerOverrides & WithInstanceType(const char *value)
void SetInstanceType(const Aws::String &value)
void SetEnvironment(const Aws::Vector< KeyValuePair > &value)
void SetResourceRequirements(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