AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PlacementConstraint.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/scheduler/model/PlacementConstraintType.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 Scheduler
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SCHEDULER_API PlacementConstraint() = default;
37 AWS_SCHEDULER_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetExpression() const { return m_expression; }
51 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
52 template<typename ExpressionT = Aws::String>
53 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
54 template<typename ExpressionT = Aws::String>
55 PlacementConstraint& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
57
59
65 inline PlacementConstraintType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(PlacementConstraintType value) { m_typeHasBeenSet = true; m_type = value; }
68 inline PlacementConstraint& WithType(PlacementConstraintType value) { SetType(value); return *this;}
70 private:
71
72 Aws::String m_expression;
73 bool m_expressionHasBeenSet = false;
74
76 bool m_typeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Scheduler
81} // namespace Aws
void SetType(PlacementConstraintType value)
PlacementConstraint & WithExpression(ExpressionT &&value)
PlacementConstraint & WithType(PlacementConstraintType value)
AWS_SCHEDULER_API PlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SCHEDULER_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
PlacementConstraintType GetType() const
AWS_SCHEDULER_API PlacementConstraint()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue