AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PlacementStrategy.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/scheduler/model/PlacementStrategyType.h>
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:
36 AWS_SCHEDULER_API PlacementStrategy();
37 AWS_SCHEDULER_API PlacementStrategy(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
52 inline const Aws::String& GetField() const{ return m_field; }
53 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
54 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
55 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
56 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
57 inline PlacementStrategy& WithField(const Aws::String& value) { SetField(value); return *this;}
58 inline PlacementStrategy& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
59 inline PlacementStrategy& WithField(const char* value) { SetField(value); return *this;}
61
63
72 inline const PlacementStrategyType& GetType() const{ return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(const PlacementStrategyType& value) { m_typeHasBeenSet = true; m_type = value; }
75 inline void SetType(PlacementStrategyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
76 inline PlacementStrategy& WithType(const PlacementStrategyType& value) { SetType(value); return *this;}
77 inline PlacementStrategy& WithType(PlacementStrategyType&& value) { SetType(std::move(value)); return *this;}
79 private:
80
81 Aws::String m_field;
82 bool m_fieldHasBeenSet = false;
83
85 bool m_typeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace Scheduler
90} // namespace Aws
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 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
Aws::Utils::Json::JsonValue JsonValue