AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PlacementStrategy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/eventbridge/EventBridge_EXPORTS.h>
9#include <aws/eventbridge/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 EventBridge {
21namespace Model {
22
32 public:
33 AWS_EVENTBRIDGE_API PlacementStrategy() = default;
34 AWS_EVENTBRIDGE_API PlacementStrategy(Aws::Utils::Json::JsonView jsonValue);
36 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
48 inline PlacementStrategyType GetType() const { return m_type; }
49 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 inline void SetType(PlacementStrategyType value) {
51 m_typeHasBeenSet = true;
52 m_type = value;
53 }
55 SetType(value);
56 return *this;
57 }
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) {
73 m_fieldHasBeenSet = true;
74 m_field = std::forward<FieldT>(value);
75 }
76 template <typename FieldT = Aws::String>
77 PlacementStrategy& WithField(FieldT&& value) {
78 SetField(std::forward<FieldT>(value));
79 return *this;
80 }
82 private:
84
85 Aws::String m_field;
86 bool m_typeHasBeenSet = false;
87 bool m_fieldHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace EventBridge
92} // 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