AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
PlacementStrategy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/model/PlacementStrategyType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECS {
21namespace Model {
22
33 public:
34 AWS_ECS_API PlacementStrategy() = default;
38
40
50 inline PlacementStrategyType GetType() const { return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(PlacementStrategyType value) {
53 m_typeHasBeenSet = true;
54 m_type = value;
55 }
57 SetType(value);
58 return *this;
59 }
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) {
76 m_fieldHasBeenSet = true;
77 m_field = std::forward<FieldT>(value);
78 }
79 template <typename FieldT = Aws::String>
80 PlacementStrategy& WithField(FieldT&& value) {
81 SetField(std::forward<FieldT>(value));
82 return *this;
83 }
85 private:
87
88 Aws::String m_field;
89 bool m_typeHasBeenSet = false;
90 bool m_fieldHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace ECS
95} // 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