AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
Step.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/Expiry.h>
9#include <aws/connect/model/Expression.h>
10#include <aws/connect/model/RoutingCriteriaStepStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
30class Step {
31 public:
32 AWS_CONNECT_API Step() = default;
33 AWS_CONNECT_API Step(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_API Step& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Expiry& GetExpiry() const { return m_expiry; }
42 inline bool ExpiryHasBeenSet() const { return m_expiryHasBeenSet; }
43 template <typename ExpiryT = Expiry>
44 void SetExpiry(ExpiryT&& value) {
45 m_expiryHasBeenSet = true;
46 m_expiry = std::forward<ExpiryT>(value);
47 }
48 template <typename ExpiryT = Expiry>
49 Step& WithExpiry(ExpiryT&& value) {
50 SetExpiry(std::forward<ExpiryT>(value));
51 return *this;
52 }
54
56
59 inline const Expression& GetExpression() const { return m_expression; }
60 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
61 template <typename ExpressionT = Expression>
62 void SetExpression(ExpressionT&& value) {
63 m_expressionHasBeenSet = true;
64 m_expression = std::forward<ExpressionT>(value);
65 }
66 template <typename ExpressionT = Expression>
67 Step& WithExpression(ExpressionT&& value) {
68 SetExpression(std::forward<ExpressionT>(value));
69 return *this;
70 }
72
74
77 inline RoutingCriteriaStepStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88 private:
89 Expiry m_expiry;
90
91 Expression m_expression;
92
94 bool m_expiryHasBeenSet = false;
95 bool m_expressionHasBeenSet = false;
96 bool m_statusHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Connect
101} // namespace Aws
const Expiry & GetExpiry() const
Definition Step.h:41
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(RoutingCriteriaStepStatus value)
Definition Step.h:79
bool ExpressionHasBeenSet() const
Definition Step.h:60
Step & WithExpiry(ExpiryT &&value)
Definition Step.h:49
RoutingCriteriaStepStatus GetStatus() const
Definition Step.h:77
bool ExpiryHasBeenSet() const
Definition Step.h:42
void SetExpiry(ExpiryT &&value)
Definition Step.h:44
const Expression & GetExpression() const
Definition Step.h:59
AWS_CONNECT_API Step(Aws::Utils::Json::JsonView jsonValue)
Step & WithExpression(ExpressionT &&value)
Definition Step.h:67
AWS_CONNECT_API Step()=default
Step & WithStatus(RoutingCriteriaStepStatus value)
Definition Step.h:83
AWS_CONNECT_API Step & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExpression(ExpressionT &&value)
Definition Step.h:62
bool StatusHasBeenSet() const
Definition Step.h:78
Aws::Utils::Json::JsonValue JsonValue