AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
PlacementConstraint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/scheduler/Scheduler_EXPORTS.h>
9#include <aws/scheduler/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 Scheduler {
21namespace Model {
22
30 public:
31 AWS_SCHEDULER_API PlacementConstraint() = default;
32 AWS_SCHEDULER_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetExpression() const { return m_expression; }
45 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
46 template <typename ExpressionT = Aws::String>
47 void SetExpression(ExpressionT&& value) {
48 m_expressionHasBeenSet = true;
49 m_expression = std::forward<ExpressionT>(value);
50 }
51 template <typename ExpressionT = Aws::String>
52 PlacementConstraint& WithExpression(ExpressionT&& value) {
53 SetExpression(std::forward<ExpressionT>(value));
54 return *this;
55 }
57
59
65 inline PlacementConstraintType GetType() const { return m_type; }
66 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
67 inline void SetType(PlacementConstraintType value) {
68 m_typeHasBeenSet = true;
69 m_type = value;
70 }
72 SetType(value);
73 return *this;
74 }
76 private:
77 Aws::String m_expression;
78
80 bool m_expressionHasBeenSet = false;
81 bool m_typeHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Scheduler
86} // 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