AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PlacementConstraint.h
1
6#pragma once
7#include <aws/pipes/Pipes_EXPORTS.h>
8#include <aws/pipes/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 Pipes
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_PIPES_API PlacementConstraint() = default;
41 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline PlacementConstraintType GetType() const { return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(PlacementConstraintType value) { m_typeHasBeenSet = true; m_type = value; }
53 inline PlacementConstraint& WithType(PlacementConstraintType value) { SetType(value); return *this;}
55
57
64 inline const Aws::String& GetExpression() const { return m_expression; }
65 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
66 template<typename ExpressionT = Aws::String>
67 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
68 template<typename ExpressionT = Aws::String>
69 PlacementConstraint& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
71 private:
72
74 bool m_typeHasBeenSet = false;
75
76 Aws::String m_expression;
77 bool m_expressionHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Pipes
82} // namespace Aws
const Aws::String & GetExpression() const
PlacementConstraintType GetType() const
AWS_PIPES_API PlacementConstraint()=default
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
PlacementConstraint & WithType(PlacementConstraintType value)
void SetType(PlacementConstraintType value)
PlacementConstraint & WithExpression(ExpressionT &&value)
AWS_PIPES_API PlacementConstraint(Aws::Utils::Json::JsonView jsonValue)
AWS_PIPES_API PlacementConstraint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue