AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PlacementConstraint.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/PlacementConstraintType.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 PlacementConstraint() = default;
34 AWS_EVENTBRIDGE_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue);
36 AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline PlacementConstraintType GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 inline void SetType(PlacementConstraintType value) {
47 m_typeHasBeenSet = true;
48 m_type = value;
49 }
51 SetType(value);
52 return *this;
53 }
55
57
64 inline const Aws::String& GetExpression() const { return m_expression; }
65 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
66 template <typename ExpressionT = Aws::String>
67 void SetExpression(ExpressionT&& value) {
68 m_expressionHasBeenSet = true;
69 m_expression = std::forward<ExpressionT>(value);
70 }
71 template <typename ExpressionT = Aws::String>
72 PlacementConstraint& WithExpression(ExpressionT&& value) {
73 SetExpression(std::forward<ExpressionT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::String m_expression;
81 bool m_typeHasBeenSet = false;
82 bool m_expressionHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace EventBridge
87} // namespace Aws
PlacementConstraint & WithType(PlacementConstraintType value)
AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EVENTBRIDGE_API PlacementConstraint()=default
void SetType(PlacementConstraintType value)
PlacementConstraint & WithExpression(ExpressionT &&value)
AWS_EVENTBRIDGE_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_EVENTBRIDGE_API PlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue