AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/WhenSentTo.h>
11#include <aws/networkmanager/model/Via.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkManager
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_NETWORKMANAGER_API ServiceInsertionAction() = default;
39 AWS_NETWORKMANAGER_API ServiceInsertionAction(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline SegmentActionServiceInsertion GetAction() const { return m_action; }
52 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
53 inline void SetAction(SegmentActionServiceInsertion value) { m_actionHasBeenSet = true; m_action = value; }
56
58
67 inline SendViaMode GetMode() const { return m_mode; }
68 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
69 inline void SetMode(SendViaMode value) { m_modeHasBeenSet = true; m_mode = value; }
70 inline ServiceInsertionAction& WithMode(SendViaMode value) { SetMode(value); return *this;}
72
74
78 inline const WhenSentTo& GetWhenSentTo() const { return m_whenSentTo; }
79 inline bool WhenSentToHasBeenSet() const { return m_whenSentToHasBeenSet; }
80 template<typename WhenSentToT = WhenSentTo>
81 void SetWhenSentTo(WhenSentToT&& value) { m_whenSentToHasBeenSet = true; m_whenSentTo = std::forward<WhenSentToT>(value); }
82 template<typename WhenSentToT = WhenSentTo>
83 ServiceInsertionAction& WithWhenSentTo(WhenSentToT&& value) { SetWhenSentTo(std::forward<WhenSentToT>(value)); return *this;}
85
87
92 inline const Via& GetVia() const { return m_via; }
93 inline bool ViaHasBeenSet() const { return m_viaHasBeenSet; }
94 template<typename ViaT = Via>
95 void SetVia(ViaT&& value) { m_viaHasBeenSet = true; m_via = std::forward<ViaT>(value); }
96 template<typename ViaT = Via>
97 ServiceInsertionAction& WithVia(ViaT&& value) { SetVia(std::forward<ViaT>(value)); return *this;}
99 private:
100
102 bool m_actionHasBeenSet = false;
103
105 bool m_modeHasBeenSet = false;
106
107 WhenSentTo m_whenSentTo;
108 bool m_whenSentToHasBeenSet = false;
109
110 Via m_via;
111 bool m_viaHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace NetworkManager
116} // 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