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/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();
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 const PlacementStrategyType& GetType() const{ return m_type; }
55 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
56 inline void SetType(const PlacementStrategyType& value) { m_typeHasBeenSet = true; m_type = value; }
57 inline void SetType(PlacementStrategyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
58 inline PlacementStrategy& WithType(const PlacementStrategyType& value) { SetType(value); return *this;}
59 inline PlacementStrategy& WithType(PlacementStrategyType&& value) { SetType(std::move(value)); return *this;}
61
63
71 inline const Aws::String& GetField() const{ return m_field; }
72 inline bool FieldHasBeenSet() const { return m_fieldHasBeenSet; }
73 inline void SetField(const Aws::String& value) { m_fieldHasBeenSet = true; m_field = value; }
74 inline void SetField(Aws::String&& value) { m_fieldHasBeenSet = true; m_field = std::move(value); }
75 inline void SetField(const char* value) { m_fieldHasBeenSet = true; m_field.assign(value); }
76 inline PlacementStrategy& WithField(const Aws::String& value) { SetField(value); return *this;}
77 inline PlacementStrategy& WithField(Aws::String&& value) { SetField(std::move(value)); return *this;}
78 inline PlacementStrategy& WithField(const char* value) { SetField(value); return *this;}
80 private:
81
83 bool m_typeHasBeenSet = false;
84
85 Aws::String m_field;
86 bool m_fieldHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace EventBridge
91} // namespace Aws
AWS_EVENTBRIDGE_API PlacementStrategy(Aws::Utils::Json::JsonView jsonValue)
void SetField(const Aws::String &value)
const PlacementStrategyType & GetType() const
PlacementStrategy & WithType(const PlacementStrategyType &value)
PlacementStrategy & WithField(const char *value)
PlacementStrategy & WithType(PlacementStrategyType &&value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
PlacementStrategy & WithField(Aws::String &&value)
AWS_EVENTBRIDGE_API PlacementStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const PlacementStrategyType &value)
PlacementStrategy & WithField(const Aws::String &value)
void SetType(PlacementStrategyType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue