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/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/PlacementStrategyType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ECS
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_ECS_API PlacementStrategy();
43
44
46
56 inline const PlacementStrategyType& GetType() const{ return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(const PlacementStrategyType& value) { m_typeHasBeenSet = true; m_type = value; }
59 inline void SetType(PlacementStrategyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 inline PlacementStrategy& WithType(const PlacementStrategyType& value) { SetType(value); return *this;}
61 inline PlacementStrategy& WithType(PlacementStrategyType&& value) { SetType(std::move(value)); return *this;}
63
65
74 inline const Aws::String& GetField() const{ return m_field; }
75 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
76 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
77 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
78 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
79 inline PlacementStrategy& WithField(const Aws::String& value) { SetField(value); return *this;}
80 inline PlacementStrategy& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
81 inline PlacementStrategy& WithField(const char* value) { SetField(value); return *this;}
83 private:
84
86 bool m_typeHasBeenSet = false;
87
88 Aws::String m_field;
89 bool m_fieldHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ECS
94} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue