AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NodePropertyOverride.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/batch/model/ContainerOverrides.h>
10#include <aws/batch/model/EcsPropertiesOverride.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/batch/model/EksPropertiesOverride.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Batch
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_BATCH_API NodePropertyOverride();
44 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
56 inline const Aws::String& GetTargetNodes() const{ return m_targetNodes; }
57 inline bool TargetNodesHasBeenSet() const { return m_targetNodesHasBeenSet; }
58 inline void SetTargetNodes(const Aws::String& value) { m_targetNodesHasBeenSet = true; m_targetNodes = value; }
59 inline void SetTargetNodes(Aws::String&& value) { m_targetNodesHasBeenSet = true; m_targetNodes = std::move(value); }
60 inline void SetTargetNodes(const char* value) { m_targetNodesHasBeenSet = true; m_targetNodes.assign(value); }
61 inline NodePropertyOverride& WithTargetNodes(const Aws::String& value) { SetTargetNodes(value); return *this;}
62 inline NodePropertyOverride& WithTargetNodes(Aws::String&& value) { SetTargetNodes(std::move(value)); return *this;}
63 inline NodePropertyOverride& WithTargetNodes(const char* value) { SetTargetNodes(value); return *this;}
65
67
70 inline const ContainerOverrides& GetContainerOverrides() const{ return m_containerOverrides; }
71 inline bool ContainerOverridesHasBeenSet() const { return m_containerOverridesHasBeenSet; }
72 inline void SetContainerOverrides(const ContainerOverrides& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = value; }
73 inline void SetContainerOverrides(ContainerOverrides&& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = std::move(value); }
75 inline NodePropertyOverride& WithContainerOverrides(ContainerOverrides&& value) { SetContainerOverrides(std::move(value)); return *this;}
77
79
83 inline const EcsPropertiesOverride& GetEcsPropertiesOverride() const{ return m_ecsPropertiesOverride; }
84 inline bool EcsPropertiesOverrideHasBeenSet() const { return m_ecsPropertiesOverrideHasBeenSet; }
85 inline void SetEcsPropertiesOverride(const EcsPropertiesOverride& value) { m_ecsPropertiesOverrideHasBeenSet = true; m_ecsPropertiesOverride = value; }
86 inline void SetEcsPropertiesOverride(EcsPropertiesOverride&& value) { m_ecsPropertiesOverrideHasBeenSet = true; m_ecsPropertiesOverride = std::move(value); }
90
92
96 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const{ return m_instanceTypes; }
97 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
98 inline void SetInstanceTypes(const Aws::Vector<Aws::String>& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = value; }
99 inline void SetInstanceTypes(Aws::Vector<Aws::String>&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::move(value); }
101 inline NodePropertyOverride& WithInstanceTypes(Aws::Vector<Aws::String>&& value) { SetInstanceTypes(std::move(value)); return *this;}
102 inline NodePropertyOverride& AddInstanceTypes(const Aws::String& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
103 inline NodePropertyOverride& AddInstanceTypes(Aws::String&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(std::move(value)); return *this; }
104 inline NodePropertyOverride& AddInstanceTypes(const char* value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
106
108
112 inline const EksPropertiesOverride& GetEksPropertiesOverride() const{ return m_eksPropertiesOverride; }
113 inline bool EksPropertiesOverrideHasBeenSet() const { return m_eksPropertiesOverrideHasBeenSet; }
114 inline void SetEksPropertiesOverride(const EksPropertiesOverride& value) { m_eksPropertiesOverrideHasBeenSet = true; m_eksPropertiesOverride = value; }
115 inline void SetEksPropertiesOverride(EksPropertiesOverride&& value) { m_eksPropertiesOverrideHasBeenSet = true; m_eksPropertiesOverride = std::move(value); }
119 private:
120
121 Aws::String m_targetNodes;
122 bool m_targetNodesHasBeenSet = false;
123
124 ContainerOverrides m_containerOverrides;
125 bool m_containerOverridesHasBeenSet = false;
126
127 EcsPropertiesOverride m_ecsPropertiesOverride;
128 bool m_ecsPropertiesOverrideHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_instanceTypes;
131 bool m_instanceTypesHasBeenSet = false;
132
133 EksPropertiesOverride m_eksPropertiesOverride;
134 bool m_eksPropertiesOverrideHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Batch
139} // namespace Aws
NodePropertyOverride & WithEksPropertiesOverride(const EksPropertiesOverride &value)
AWS_BATCH_API NodePropertyOverride & operator=(Aws::Utils::Json::JsonView jsonValue)
NodePropertyOverride & WithEcsPropertiesOverride(const EcsPropertiesOverride &value)
NodePropertyOverride & AddInstanceTypes(Aws::String &&value)
NodePropertyOverride & WithTargetNodes(Aws::String &&value)
const EcsPropertiesOverride & GetEcsPropertiesOverride() const
NodePropertyOverride & WithEksPropertiesOverride(EksPropertiesOverride &&value)
void SetEcsPropertiesOverride(EcsPropertiesOverride &&value)
const Aws::Vector< Aws::String > & GetInstanceTypes() const
NodePropertyOverride & WithTargetNodes(const Aws::String &value)
void SetInstanceTypes(const Aws::Vector< Aws::String > &value)
void SetEcsPropertiesOverride(const EcsPropertiesOverride &value)
NodePropertyOverride & AddInstanceTypes(const char *value)
void SetContainerOverrides(ContainerOverrides &&value)
const ContainerOverrides & GetContainerOverrides() const
void SetTargetNodes(const Aws::String &value)
NodePropertyOverride & WithContainerOverrides(const ContainerOverrides &value)
NodePropertyOverride & WithEcsPropertiesOverride(EcsPropertiesOverride &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetInstanceTypes(Aws::Vector< Aws::String > &&value)
NodePropertyOverride & WithInstanceTypes(Aws::Vector< Aws::String > &&value)
NodePropertyOverride & AddInstanceTypes(const Aws::String &value)
void SetEksPropertiesOverride(EksPropertiesOverride &&value)
NodePropertyOverride & WithInstanceTypes(const Aws::Vector< Aws::String > &value)
NodePropertyOverride & WithTargetNodes(const char *value)
void SetEksPropertiesOverride(const EksPropertiesOverride &value)
const EksPropertiesOverride & GetEksPropertiesOverride() const
void SetContainerOverrides(const ContainerOverrides &value)
NodePropertyOverride & WithContainerOverrides(ContainerOverrides &&value)
AWS_BATCH_API NodePropertyOverride(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue