AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TaskDefinitionPlacementConstraint.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/TaskDefinitionPlacementConstraintType.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 TaskDefinitionPlacementConstraint() = default;
44
45
47
51 inline TaskDefinitionPlacementConstraintType GetType() const { return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(TaskDefinitionPlacementConstraintType value) { m_typeHasBeenSet = true; m_type = value; }
56
58
65 inline const Aws::String& GetExpression() const { return m_expression; }
66 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
67 template<typename ExpressionT = Aws::String>
68 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
69 template<typename ExpressionT = Aws::String>
70 TaskDefinitionPlacementConstraint& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
72 private:
73
75 bool m_typeHasBeenSet = false;
76
77 Aws::String m_expression;
78 bool m_expressionHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace ECS
83} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
TaskDefinitionPlacementConstraint & WithExpression(ExpressionT &&value)
void SetType(TaskDefinitionPlacementConstraintType value)
TaskDefinitionPlacementConstraint & WithType(TaskDefinitionPlacementConstraintType value)
AWS_ECS_API TaskDefinitionPlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API TaskDefinitionPlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue