AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const SegmentActionServiceInsertion& GetAction() const{ return m_action; }
52 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
53 inline void SetAction(const SegmentActionServiceInsertion& value) { m_actionHasBeenSet = true; m_action = value; }
54 inline void SetAction(SegmentActionServiceInsertion&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
55 inline ServiceInsertionAction& WithAction(const SegmentActionServiceInsertion& value) { SetAction(value); return *this;}
56 inline ServiceInsertionAction& WithAction(SegmentActionServiceInsertion&& value) { SetAction(std::move(value)); return *this;}
58
60
69 inline const SendViaMode& GetMode() const{ return m_mode; }
70 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
71 inline void SetMode(const SendViaMode& value) { m_modeHasBeenSet = true; m_mode = value; }
72 inline void SetMode(SendViaMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
73 inline ServiceInsertionAction& WithMode(const SendViaMode& value) { SetMode(value); return *this;}
74 inline ServiceInsertionAction& WithMode(SendViaMode&& value) { SetMode(std::move(value)); return *this;}
76
78
82 inline const WhenSentTo& GetWhenSentTo() const{ return m_whenSentTo; }
83 inline bool WhenSentToHasBeenSet() const { return m_whenSentToHasBeenSet; }
84 inline void SetWhenSentTo(const WhenSentTo& value) { m_whenSentToHasBeenSet = true; m_whenSentTo = value; }
85 inline void SetWhenSentTo(WhenSentTo&& value) { m_whenSentToHasBeenSet = true; m_whenSentTo = std::move(value); }
86 inline ServiceInsertionAction& WithWhenSentTo(const WhenSentTo& value) { SetWhenSentTo(value); return *this;}
87 inline ServiceInsertionAction& WithWhenSentTo(WhenSentTo&& value) { SetWhenSentTo(std::move(value)); return *this;}
89
91
96 inline const Via& GetVia() const{ return m_via; }
97 inline bool ViaHasBeenSet() const { return m_viaHasBeenSet; }
98 inline void SetVia(const Via& value) { m_viaHasBeenSet = true; m_via = value; }
99 inline void SetVia(Via&& value) { m_viaHasBeenSet = true; m_via = std::move(value); }
100 inline ServiceInsertionAction& WithVia(const Via& value) { SetVia(value); return *this;}
101 inline ServiceInsertionAction& WithVia(Via&& value) { SetVia(std::move(value)); return *this;}
103 private:
104
106 bool m_actionHasBeenSet = false;
107
108 SendViaMode m_mode;
109 bool m_modeHasBeenSet = false;
110
111 WhenSentTo m_whenSentTo;
112 bool m_whenSentToHasBeenSet = false;
113
114 Via m_via;
115 bool m_viaHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace NetworkManager
120} // namespace Aws
ServiceInsertionAction & WithWhenSentTo(WhenSentTo &&value)
AWS_NETWORKMANAGER_API ServiceInsertionAction(Aws::Utils::Json::JsonView jsonValue)
void SetAction(SegmentActionServiceInsertion &&value)
void SetAction(const SegmentActionServiceInsertion &value)
ServiceInsertionAction & WithMode(SendViaMode &&value)
ServiceInsertionAction & WithWhenSentTo(const WhenSentTo &value)
const SegmentActionServiceInsertion & GetAction() const
ServiceInsertionAction & WithAction(SegmentActionServiceInsertion &&value)
ServiceInsertionAction & WithVia(const Via &value)
ServiceInsertionAction & WithAction(const SegmentActionServiceInsertion &value)
ServiceInsertionAction & WithMode(const SendViaMode &value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API ServiceInsertionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue