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/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/PlacementConstraintType.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 ECS
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_ECS_API PlacementConstraint() = default;
44
45
47
53 inline PlacementConstraintType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(PlacementConstraintType value) { m_typeHasBeenSet = true; m_type = value; }
56 inline PlacementConstraint& WithType(PlacementConstraintType value) { SetType(value); return *this;}
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) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
73 template<typename ExpressionT = Aws::String>
74 PlacementConstraint& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
76 private:
77
79 bool m_typeHasBeenSet = false;
80
81 Aws::String m_expression;
82 bool m_expressionHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace ECS
87} // 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