AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ProbeInput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmonitor/NetworkMonitor_EXPORTS.h>
10#include <aws/networkmonitor/model/Protocol.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkMonitor {
22namespace Model {
23
31 public:
32 AWS_NETWORKMONITOR_API ProbeInput() = default;
33 AWS_NETWORKMONITOR_API ProbeInput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NETWORKMONITOR_API ProbeInput& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
42 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
43 template <typename SourceArnT = Aws::String>
44 void SetSourceArn(SourceArnT&& value) {
45 m_sourceArnHasBeenSet = true;
46 m_sourceArn = std::forward<SourceArnT>(value);
47 }
48 template <typename SourceArnT = Aws::String>
49 ProbeInput& WithSourceArn(SourceArnT&& value) {
50 SetSourceArn(std::forward<SourceArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetDestination() const { return m_destination; }
61 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
62 template <typename DestinationT = Aws::String>
63 void SetDestination(DestinationT&& value) {
64 m_destinationHasBeenSet = true;
65 m_destination = std::forward<DestinationT>(value);
66 }
67 template <typename DestinationT = Aws::String>
68 ProbeInput& WithDestination(DestinationT&& value) {
69 SetDestination(std::forward<DestinationT>(value));
70 return *this;
71 }
73
75
80 inline int GetDestinationPort() const { return m_destinationPort; }
81 inline bool DestinationPortHasBeenSet() const { return m_destinationPortHasBeenSet; }
82 inline void SetDestinationPort(int value) {
83 m_destinationPortHasBeenSet = true;
84 m_destinationPort = value;
85 }
86 inline ProbeInput& WithDestinationPort(int value) {
87 SetDestinationPort(value);
88 return *this;
89 }
91
93
98 inline Protocol GetProtocol() const { return m_protocol; }
99 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
100 inline void SetProtocol(Protocol value) {
101 m_protocolHasBeenSet = true;
102 m_protocol = value;
103 }
105 SetProtocol(value);
106 return *this;
107 }
109
111
115 inline int GetPacketSize() const { return m_packetSize; }
116 inline bool PacketSizeHasBeenSet() const { return m_packetSizeHasBeenSet; }
117 inline void SetPacketSize(int value) {
118 m_packetSizeHasBeenSet = true;
119 m_packetSize = value;
120 }
121 inline ProbeInput& WithPacketSize(int value) {
122 SetPacketSize(value);
123 return *this;
124 }
126
128
131 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
132 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
133 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
134 void SetTags(TagsT&& value) {
135 m_tagsHasBeenSet = true;
136 m_tags = std::forward<TagsT>(value);
137 }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 ProbeInput& WithTags(TagsT&& value) {
140 SetTags(std::forward<TagsT>(value));
141 return *this;
142 }
143 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 ProbeInput& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_sourceArn;
152
153 Aws::String m_destination;
154
155 int m_destinationPort{0};
156
157 Protocol m_protocol{Protocol::NOT_SET};
158
159 int m_packetSize{0};
160
162 bool m_sourceArnHasBeenSet = false;
163 bool m_destinationHasBeenSet = false;
164 bool m_destinationPortHasBeenSet = false;
165 bool m_protocolHasBeenSet = false;
166 bool m_packetSizeHasBeenSet = false;
167 bool m_tagsHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace NetworkMonitor
172} // namespace Aws
AWS_NETWORKMONITOR_API ProbeInput()=default
ProbeInput & WithProtocol(Protocol value)
Definition ProbeInput.h:104
ProbeInput & WithTags(TagsT &&value)
Definition ProbeInput.h:139
void SetSourceArn(SourceArnT &&value)
Definition ProbeInput.h:44
ProbeInput & WithSourceArn(SourceArnT &&value)
Definition ProbeInput.h:49
ProbeInput & WithPacketSize(int value)
Definition ProbeInput.h:121
AWS_NETWORKMONITOR_API ProbeInput & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSourceArn() const
Definition ProbeInput.h:41
ProbeInput & WithDestination(DestinationT &&value)
Definition ProbeInput.h:68
void SetDestination(DestinationT &&value)
Definition ProbeInput.h:63
ProbeInput & WithDestinationPort(int value)
Definition ProbeInput.h:86
const Aws::String & GetDestination() const
Definition ProbeInput.h:60
AWS_NETWORKMONITOR_API ProbeInput(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition ProbeInput.h:131
ProbeInput & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition ProbeInput.h:144
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue