AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PlacementStrategy.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS
23{
24namespace Model
25{
26
37 {
38 public:
43
44
55 inline const PlacementStrategyType& GetType() const{ return m_type; }
56
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68
79 inline void SetType(const PlacementStrategyType& value) { m_typeHasBeenSet = true; m_type = value; }
80
91 inline void SetType(PlacementStrategyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
92
103 inline PlacementStrategy& WithType(const PlacementStrategyType& value) { SetType(value); return *this;}
104
115 inline PlacementStrategy& WithType(PlacementStrategyType&& value) { SetType(std::move(value)); return *this;}
116
117
127 inline const Aws::String& GetField() const{ return m_field; }
128
138 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
139
149 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
150
160 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
161
171 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
172
182 inline PlacementStrategy& WithField(const Aws::String& value) { SetField(value); return *this;}
183
193 inline PlacementStrategy& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
194
204 inline PlacementStrategy& WithField(const char* value) { SetField(value); return *this;}
205
206 private:
207
209 bool m_typeHasBeenSet = false;
210
211 Aws::String m_field;
212 bool m_fieldHasBeenSet = false;
213 };
214
215} // namespace Model
216} // namespace ECS
217} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
void SetType(PlacementStrategyType &&value)
PlacementStrategy & WithType(PlacementStrategyType &&value)
PlacementStrategy & WithField(const char *value)
const Aws::String & GetField() const
void SetField(const Aws::String &value)
AWS_ECS_API PlacementStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API PlacementStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
PlacementStrategy & WithType(const PlacementStrategyType &value)
const PlacementStrategyType & GetType() const
PlacementStrategy & WithField(Aws::String &&value)
void SetField(Aws::String &&value)
PlacementStrategy & WithField(const Aws::String &value)
void SetType(const PlacementStrategyType &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String