AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
PlacementConstraint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9#include <aws/ecs/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 ECS {
21namespace Model {
22
34 public:
35 AWS_ECS_API PlacementConstraint() = default;
39
41
47 inline PlacementConstraintType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(PlacementConstraintType value) {
50 m_typeHasBeenSet = true;
51 m_type = value;
52 }
54 SetType(value);
55 return *this;
56 }
58
60
69 inline const Aws::String& GetExpression() const { return m_expression; }
70 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
71 template <typename ExpressionT = Aws::String>
72 void SetExpression(ExpressionT&& value) {
73 m_expressionHasBeenSet = true;
74 m_expression = std::forward<ExpressionT>(value);
75 }
76 template <typename ExpressionT = Aws::String>
77 PlacementConstraint& WithExpression(ExpressionT&& value) {
78 SetExpression(std::forward<ExpressionT>(value));
79 return *this;
80 }
82 private:
84
85 Aws::String m_expression;
86 bool m_typeHasBeenSet = false;
87 bool m_expressionHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace ECS
92} // namespace Aws
const Aws::String & GetExpression() const
void SetExpression(ExpressionT &&value)
AWS_ECS_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
PlacementConstraint & WithExpression(ExpressionT &&value)
AWS_ECS_API PlacementConstraint()=default
AWS_ECS_API PlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
PlacementConstraint & WithType(PlacementConstraintType value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
PlacementConstraintType GetType() const
void SetType(PlacementConstraintType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue