AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
44
45
47
53 inline const PlacementConstraintType& GetType() const{ return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(const PlacementConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
56 inline void SetType(PlacementConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
57 inline PlacementConstraint& WithType(const PlacementConstraintType& value) { SetType(value); return *this;}
58 inline PlacementConstraint& WithType(PlacementConstraintType&& value) { SetType(std::move(value)); return *this;}
60
62
71 inline const Aws::String& GetExpression() const{ return m_expression; }
72 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
73 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
74 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
75 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
76 inline PlacementConstraint& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
77 inline PlacementConstraint& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
78 inline PlacementConstraint& WithExpression(const char* value) { SetExpression(value); return *this;}
80 private:
81
83 bool m_typeHasBeenSet = false;
84
85 Aws::String m_expression;
86 bool m_expressionHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ECS
91} // namespace Aws
const Aws::String & GetExpression() const
const PlacementConstraintType & GetType() const
PlacementConstraint & WithExpression(const char *value)
AWS_ECS_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
void SetExpression(const Aws::String &value)
PlacementConstraint & WithType(PlacementConstraintType &&value)
AWS_ECS_API PlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
PlacementConstraint & WithExpression(const Aws::String &value)
PlacementConstraint & WithExpression(Aws::String &&value)
void SetExpression(Aws::String &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const PlacementConstraintType &value)
PlacementConstraint & WithType(const PlacementConstraintType &value)
void SetType(PlacementConstraintType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue