AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
44
45
47
51 inline const TaskDefinitionPlacementConstraintType& GetType() const{ return m_type; }
52 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
53 inline void SetType(const TaskDefinitionPlacementConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
54 inline void SetType(TaskDefinitionPlacementConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
58
60
67 inline const Aws::String& GetExpression() const{ return m_expression; }
68 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
69 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
70 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
71 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
72 inline TaskDefinitionPlacementConstraint& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
73 inline TaskDefinitionPlacementConstraint& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
74 inline TaskDefinitionPlacementConstraint& WithExpression(const char* value) { SetExpression(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
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
Aws::Utils::Json::JsonValue JsonValue