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/scheduler/Scheduler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/scheduler/model/PlacementConstraintType.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 Scheduler
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SCHEDULER_API PlacementConstraint();
37 AWS_SCHEDULER_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetExpression() const{ return m_expression; }
51 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
52 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
53 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
54 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
55 inline PlacementConstraint& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
56 inline PlacementConstraint& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
57 inline PlacementConstraint& WithExpression(const char* value) { SetExpression(value); return *this;}
59
61
67 inline const PlacementConstraintType& GetType() const{ return m_type; }
68 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
69 inline void SetType(const PlacementConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
70 inline void SetType(PlacementConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
71 inline PlacementConstraint& WithType(const PlacementConstraintType& value) { SetType(value); return *this;}
72 inline PlacementConstraint& WithType(PlacementConstraintType&& value) { SetType(std::move(value)); return *this;}
74 private:
75
76 Aws::String m_expression;
77 bool m_expressionHasBeenSet = false;
78
80 bool m_typeHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Scheduler
85} // namespace Aws
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
Aws::Utils::Json::JsonValue JsonValue