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/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();
41 AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const PlacementConstraintType& GetType() const{ return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(const PlacementConstraintType& value) { m_typeHasBeenSet = true; m_type = value; }
53 inline void SetType(PlacementConstraintType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
54 inline PlacementConstraint& WithType(const PlacementConstraintType& value) { SetType(value); return *this;}
55 inline PlacementConstraint& WithType(PlacementConstraintType&& value) { SetType(std::move(value)); return *this;}
57
59
66 inline const Aws::String& GetExpression() const{ return m_expression; }
67 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
68 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
69 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
70 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
71 inline PlacementConstraint& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
72 inline PlacementConstraint& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
73 inline PlacementConstraint& WithExpression(const char* value) { SetExpression(value); return *this;}
75 private:
76
78 bool m_typeHasBeenSet = false;
79
80 Aws::String m_expression;
81 bool m_expressionHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Pipes
86} // namespace Aws
const Aws::String & GetExpression() const
void SetExpression(const Aws::String &value)
const PlacementConstraintType & GetType() const
void SetType(const PlacementConstraintType &value)
PlacementConstraint & WithExpression(const char *value)
PlacementConstraint & WithExpression(const Aws::String &value)
void SetType(PlacementConstraintType &&value)
AWS_PIPES_API Aws::Utils::Json::JsonValue Jsonize() const
PlacementConstraint & WithExpression(Aws::String &&value)
PlacementConstraint & WithType(PlacementConstraintType &&value)
PlacementConstraint & WithType(const PlacementConstraintType &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