AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
TaskDefinitionPlacementConstraint.h
Go to the documentation of this file.
1
6#pragma once
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:
44
45
50 inline const TaskDefinitionPlacementConstraintType& GetType() const{ return m_type; }
51
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57
62 inline void SetType(const TaskDefinitionPlacementConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
63
68 inline void SetType(TaskDefinitionPlacementConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
69
75
81
82
90 inline const Aws::String& GetExpression() const{ return m_expression; }
91
99 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
100
108 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
109
117 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
118
126 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
127
135 inline TaskDefinitionPlacementConstraint& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
136
144 inline TaskDefinitionPlacementConstraint& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
145
153 inline TaskDefinitionPlacementConstraint& WithExpression(const char* value) { SetExpression(value); return *this;}
154
155 private:
156
158 bool m_typeHasBeenSet = false;
159
160 Aws::String m_expression;
161 bool m_expressionHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace ECS
166} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
TaskDefinitionPlacementConstraint & WithType(TaskDefinitionPlacementConstraintType &&value)
TaskDefinitionPlacementConstraint & WithType(const TaskDefinitionPlacementConstraintType &value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
const TaskDefinitionPlacementConstraintType & GetType() const
TaskDefinitionPlacementConstraint & WithExpression(Aws::String &&value)
void SetType(TaskDefinitionPlacementConstraintType &&value)
void SetType(const TaskDefinitionPlacementConstraintType &value)
AWS_ECS_API TaskDefinitionPlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API TaskDefinitionPlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskDefinitionPlacementConstraint & WithExpression(const Aws::String &value)
TaskDefinitionPlacementConstraint & WithExpression(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String