AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
ServiceInsertionAction.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/model/SegmentActionServiceInsertion.h>
9#include <aws/networkmanager/model/SendViaMode.h>
10#include <aws/networkmanager/model/Via.h>
11#include <aws/networkmanager/model/WhenSentTo.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace NetworkManager {
23namespace Model {
24
32 public:
33 AWS_NETWORKMANAGER_API ServiceInsertionAction() = default;
34 AWS_NETWORKMANAGER_API ServiceInsertionAction(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline SegmentActionServiceInsertion GetAction() const { return m_action; }
46 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 m_actionHasBeenSet = true;
49 m_action = value;
50 }
52 SetAction(value);
53 return *this;
54 }
56
58
67 inline SendViaMode GetMode() const { return m_mode; }
68 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
69 inline void SetMode(SendViaMode value) {
70 m_modeHasBeenSet = true;
71 m_mode = value;
72 }
74 SetMode(value);
75 return *this;
76 }
78
80
84 inline const WhenSentTo& GetWhenSentTo() const { return m_whenSentTo; }
85 inline bool WhenSentToHasBeenSet() const { return m_whenSentToHasBeenSet; }
86 template <typename WhenSentToT = WhenSentTo>
87 void SetWhenSentTo(WhenSentToT&& value) {
88 m_whenSentToHasBeenSet = true;
89 m_whenSentTo = std::forward<WhenSentToT>(value);
90 }
91 template <typename WhenSentToT = WhenSentTo>
92 ServiceInsertionAction& WithWhenSentTo(WhenSentToT&& value) {
93 SetWhenSentTo(std::forward<WhenSentToT>(value));
94 return *this;
95 }
97
99
104 inline const Via& GetVia() const { return m_via; }
105 inline bool ViaHasBeenSet() const { return m_viaHasBeenSet; }
106 template <typename ViaT = Via>
107 void SetVia(ViaT&& value) {
108 m_viaHasBeenSet = true;
109 m_via = std::forward<ViaT>(value);
110 }
111 template <typename ViaT = Via>
113 SetVia(std::forward<ViaT>(value));
114 return *this;
115 }
117 private:
119
121
122 WhenSentTo m_whenSentTo;
123
124 Via m_via;
125 bool m_actionHasBeenSet = false;
126 bool m_modeHasBeenSet = false;
127 bool m_whenSentToHasBeenSet = false;
128 bool m_viaHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace NetworkManager
133} // namespace Aws
void SetAction(SegmentActionServiceInsertion value)
AWS_NETWORKMANAGER_API ServiceInsertionAction(Aws::Utils::Json::JsonView jsonValue)
ServiceInsertionAction & WithWhenSentTo(WhenSentToT &&value)
ServiceInsertionAction & WithAction(SegmentActionServiceInsertion value)
AWS_NETWORKMANAGER_API ServiceInsertionAction()=default
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API ServiceInsertionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceInsertionAction & WithMode(SendViaMode value)
Aws::Utils::Json::JsonValue JsonValue