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 Scheduler
23{
24namespace Model
25{
26
34 {
35 public:
40
41
51 inline const Aws::String& GetField() const{ return m_field; }
52
62 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
63
73 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
74
84 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
85
95 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
96
106 inline PlacementStrategy& WithField(const Aws::String& value) { SetField(value); return *this;}
107
117 inline PlacementStrategy& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
118
128 inline PlacementStrategy& WithField(const char* value) { SetField(value); return *this;}
129
130
140 inline const PlacementStrategyType& GetType() const{ return m_type; }
141
151 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
152
162 inline void SetType(const PlacementStrategyType& value) { m_typeHasBeenSet = true; m_type = value; }
163
173 inline void SetType(PlacementStrategyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
174
184 inline PlacementStrategy& WithType(const PlacementStrategyType& value) { SetType(value); return *this;}
185
195 inline PlacementStrategy& WithType(PlacementStrategyType&& value) { SetType(std::move(value)); return *this;}
196
197 private:
198
199 Aws::String m_field;
200 bool m_fieldHasBeenSet = false;
201
203 bool m_typeHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace Scheduler
208} // namespace Aws
#define AWS_SCHEDULER_API
PlacementStrategy & WithField(const char *value)
PlacementStrategy & WithField(Aws::String &&value)
AWS_SCHEDULER_API PlacementStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
PlacementStrategy & WithField(const Aws::String &value)
void SetType(const PlacementStrategyType &value)
PlacementStrategy & WithType(PlacementStrategyType &&value)
void SetType(PlacementStrategyType &&value)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetField() const
const PlacementStrategyType & GetType() const
void SetField(const Aws::String &value)
PlacementStrategy & WithType(const PlacementStrategyType &value)
AWS_SCHEDULER_API PlacementStrategy(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String