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/eventbridge/EventBridge_EXPORTS.h>
8#include <aws/eventbridge/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 EventBridge
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_EVENTBRIDGE_API PlacementStrategy() = default;
39 AWS_EVENTBRIDGE_API PlacementStrategy(Aws::Utils::Json::JsonView jsonValue);
41 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
54 inline PlacementStrategyType GetType() const { return m_type; }
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 inline void SetType(PlacementStrategyType value) { m_typeHasBeenSet = true; m_type = value; }
57 inline PlacementStrategy& WithType(PlacementStrategyType value) { SetType(value); return *this;}
59
61
69 inline const Aws::String& GetField() const { return m_field; }
70 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
71 template<typename FieldT = Aws::String>
72 void SetField(FieldT&& value) { m_fieldHasBeenSet = true; m_field = std::forward<FieldT>(value); }
73 template<typename FieldT = Aws::String>
74 PlacementStrategy& WithField(FieldT&& value) { SetField(std::forward<FieldT>(value)); return *this;}
76 private:
77
79 bool m_typeHasBeenSet = false;
80
81 Aws::String m_field;
82 bool m_fieldHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace EventBridge
87} // namespace Aws
AWS_EVENTBRIDGE_API PlacementStrategy(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API PlacementStrategy()=default
void SetType(PlacementStrategyType value)
PlacementStrategy & WithField(FieldT &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API PlacementStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
PlacementStrategy & WithType(PlacementStrategyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue