AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NodeRangeProperty.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/ContainerProperties.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/batch/model/EcsProperties.h>
12#include <aws/batch/model/EksProperties.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
37 {
38 public:
39 AWS_BATCH_API NodeRangeProperty();
42 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
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 NodeRangeProperty& WithTargetNodes(const Aws::String& value) { SetTargetNodes(value); return *this;}
62 inline NodeRangeProperty& WithTargetNodes(Aws::String&& value) { SetTargetNodes(std::move(value)); return *this;}
63 inline NodeRangeProperty& WithTargetNodes(const char* value) { SetTargetNodes(value); return *this;}
65
67
70 inline const ContainerProperties& GetContainer() const{ return m_container; }
71 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
72 inline void SetContainer(const ContainerProperties& value) { m_containerHasBeenSet = true; m_container = value; }
73 inline void SetContainer(ContainerProperties&& value) { m_containerHasBeenSet = true; m_container = std::move(value); }
74 inline NodeRangeProperty& WithContainer(const ContainerProperties& value) { SetContainer(value); return *this;}
75 inline NodeRangeProperty& WithContainer(ContainerProperties&& value) { SetContainer(std::move(value)); return *this;}
77
79
85 inline const Aws::Vector<Aws::String>& GetInstanceTypes() const{ return m_instanceTypes; }
86 inline bool InstanceTypesHasBeenSet() const { return m_instanceTypesHasBeenSet; }
87 inline void SetInstanceTypes(const Aws::Vector<Aws::String>& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = value; }
88 inline void SetInstanceTypes(Aws::Vector<Aws::String>&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes = std::move(value); }
90 inline NodeRangeProperty& WithInstanceTypes(Aws::Vector<Aws::String>&& value) { SetInstanceTypes(std::move(value)); return *this;}
91 inline NodeRangeProperty& AddInstanceTypes(const Aws::String& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
92 inline NodeRangeProperty& AddInstanceTypes(Aws::String&& value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(std::move(value)); return *this; }
93 inline NodeRangeProperty& AddInstanceTypes(const char* value) { m_instanceTypesHasBeenSet = true; m_instanceTypes.push_back(value); return *this; }
95
97
101 inline const EcsProperties& GetEcsProperties() const{ return m_ecsProperties; }
102 inline bool EcsPropertiesHasBeenSet() const { return m_ecsPropertiesHasBeenSet; }
103 inline void SetEcsProperties(const EcsProperties& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = value; }
104 inline void SetEcsProperties(EcsProperties&& value) { m_ecsPropertiesHasBeenSet = true; m_ecsProperties = std::move(value); }
105 inline NodeRangeProperty& WithEcsProperties(const EcsProperties& value) { SetEcsProperties(value); return *this;}
106 inline NodeRangeProperty& WithEcsProperties(EcsProperties&& value) { SetEcsProperties(std::move(value)); return *this;}
108
110
114 inline const EksProperties& GetEksProperties() const{ return m_eksProperties; }
115 inline bool EksPropertiesHasBeenSet() const { return m_eksPropertiesHasBeenSet; }
116 inline void SetEksProperties(const EksProperties& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = value; }
117 inline void SetEksProperties(EksProperties&& value) { m_eksPropertiesHasBeenSet = true; m_eksProperties = std::move(value); }
118 inline NodeRangeProperty& WithEksProperties(const EksProperties& value) { SetEksProperties(value); return *this;}
119 inline NodeRangeProperty& WithEksProperties(EksProperties&& value) { SetEksProperties(std::move(value)); return *this;}
121 private:
122
123 Aws::String m_targetNodes;
124 bool m_targetNodesHasBeenSet = false;
125
126 ContainerProperties m_container;
127 bool m_containerHasBeenSet = false;
128
129 Aws::Vector<Aws::String> m_instanceTypes;
130 bool m_instanceTypesHasBeenSet = false;
131
132 EcsProperties m_ecsProperties;
133 bool m_ecsPropertiesHasBeenSet = false;
134
135 EksProperties m_eksProperties;
136 bool m_eksPropertiesHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace Batch
141} // namespace Aws
NodeRangeProperty & AddInstanceTypes(Aws::String &&value)
void SetEksProperties(EksProperties &&value)
NodeRangeProperty & WithContainer(const ContainerProperties &value)
NodeRangeProperty & WithTargetNodes(const char *value)
const EksProperties & GetEksProperties() const
void SetEcsProperties(const EcsProperties &value)
NodeRangeProperty & WithEksProperties(const EksProperties &value)
const Aws::Vector< Aws::String > & GetInstanceTypes() const
void SetTargetNodes(const Aws::String &value)
void SetEksProperties(const EksProperties &value)
void SetInstanceTypes(Aws::Vector< Aws::String > &&value)
NodeRangeProperty & WithEcsProperties(const EcsProperties &value)
NodeRangeProperty & WithContainer(ContainerProperties &&value)
AWS_BATCH_API NodeRangeProperty & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetNodes(Aws::String &&value)
void SetEcsProperties(EcsProperties &&value)
void SetContainer(ContainerProperties &&value)
NodeRangeProperty & AddInstanceTypes(const Aws::String &value)
void SetContainer(const ContainerProperties &value)
NodeRangeProperty & WithTargetNodes(const Aws::String &value)
void SetInstanceTypes(const Aws::Vector< Aws::String > &value)
NodeRangeProperty & WithEcsProperties(EcsProperties &&value)
const ContainerProperties & GetContainer() const
NodeRangeProperty & WithInstanceTypes(const Aws::Vector< Aws::String > &value)
NodeRangeProperty & AddInstanceTypes(const char *value)
NodeRangeProperty & WithEksProperties(EksProperties &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API NodeRangeProperty(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTargetNodes() const
NodeRangeProperty & WithInstanceTypes(Aws::Vector< Aws::String > &&value)
const EcsProperties & GetEcsProperties() const
NodeRangeProperty & WithTargetNodes(Aws::String &&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