AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
PlacementConstraint.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 Scheduler
23{
24namespace Model
25{
26
34 {
35 public:
40
41
49 inline const Aws::String& GetExpression() const{ return m_expression; }
50
58 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
59
67 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
68
76 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
77
85 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
86
94 inline PlacementConstraint& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
95
103 inline PlacementConstraint& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
104
112 inline PlacementConstraint& WithExpression(const char* value) { SetExpression(value); return *this;}
113
114
121 inline const PlacementConstraintType& GetType() const{ return m_type; }
122
129 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
130
137 inline void SetType(const PlacementConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
138
145 inline void SetType(PlacementConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
146
153 inline PlacementConstraint& WithType(const PlacementConstraintType& value) { SetType(value); return *this;}
154
161 inline PlacementConstraint& WithType(PlacementConstraintType&& value) { SetType(std::move(value)); return *this;}
162
163 private:
164
165 Aws::String m_expression;
166 bool m_expressionHasBeenSet = false;
167
169 bool m_typeHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace Scheduler
174} // namespace Aws
#define AWS_SCHEDULER_API
void SetType(PlacementConstraintType &&value)
PlacementConstraint & WithType(PlacementConstraintType &&value)
PlacementConstraint & WithType(const PlacementConstraintType &value)
const PlacementConstraintType & GetType() const
AWS_SCHEDULER_API PlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
PlacementConstraint & WithExpression(Aws::String &&value)
PlacementConstraint & WithExpression(const Aws::String &value)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SCHEDULER_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
void SetExpression(const Aws::String &value)
PlacementConstraint & WithExpression(const char *value)
void SetType(const PlacementConstraintType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String