AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
TaskDefinitionPlacementConstraint.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/TaskDefinitionPlacementConstraintType.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 TaskDefinitionPlacementConstraint() = default;
39
41
45 inline TaskDefinitionPlacementConstraintType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 m_typeHasBeenSet = true;
49 m_type = value;
50 }
52 SetType(value);
53 return *this;
54 }
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) {
69 m_expressionHasBeenSet = true;
70 m_expression = std::forward<ExpressionT>(value);
71 }
72 template <typename ExpressionT = Aws::String>
74 SetExpression(std::forward<ExpressionT>(value));
75 return *this;
76 }
78 private:
80
81 Aws::String m_expression;
82 bool m_typeHasBeenSet = false;
83 bool m_expressionHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace ECS
88} // 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