AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
43
44
46
56 inline PlacementStrategyType GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(PlacementStrategyType value) { m_typeHasBeenSet = true; m_type = value; }
59 inline PlacementStrategy& WithType(PlacementStrategyType value) { SetType(value); return *this;}
61
63
72 inline const Aws::String& GetField() const { return m_field; }
73 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
74 template<typename FieldT = Aws::String>
75 void SetField(FieldT&& value) { m_fieldHasBeenSet = true; m_field = std::forward<FieldT>(value); }
76 template<typename FieldT = Aws::String>
77 PlacementStrategy& WithField(FieldT&& value) { SetField(std::forward<FieldT>(value)); return *this;}
79 private:
80
82 bool m_typeHasBeenSet = false;
83
84 Aws::String m_field;
85 bool m_fieldHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace ECS
90} // namespace Aws
const Aws::String & GetField() const
void SetType(PlacementStrategyType value)
AWS_ECS_API PlacementStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API PlacementStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API PlacementStrategy()=default
PlacementStrategyType GetType() const
PlacementStrategy & WithType(PlacementStrategyType value)
PlacementStrategy & WithField(FieldT &&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