AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
TargetIdentifier.h
1
6#pragma once
7#include <aws/networkflowmonitor/NetworkFlowMonitor_EXPORTS.h>
8#include <aws/networkflowmonitor/model/TargetId.h>
9#include <aws/networkflowmonitor/model/TargetType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace NetworkFlowMonitor {
21namespace Model {
22
32 public:
33 AWS_NETWORKFLOWMONITOR_API TargetIdentifier() = default;
34 AWS_NETWORKFLOWMONITOR_API TargetIdentifier(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKFLOWMONITOR_API TargetIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const TargetId& GetTargetId() const { return m_targetId; }
43 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
44 template <typename TargetIdT = TargetId>
45 void SetTargetId(TargetIdT&& value) {
46 m_targetIdHasBeenSet = true;
47 m_targetId = std::forward<TargetIdT>(value);
48 }
49 template <typename TargetIdT = TargetId>
50 TargetIdentifier& WithTargetId(TargetIdT&& value) {
51 SetTargetId(std::forward<TargetIdT>(value));
52 return *this;
53 }
55
57
61 inline TargetType GetTargetType() const { return m_targetType; }
62 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
63 inline void SetTargetType(TargetType value) {
64 m_targetTypeHasBeenSet = true;
65 m_targetType = value;
66 }
68 SetTargetType(value);
69 return *this;
70 }
72 private:
73 TargetId m_targetId;
74
75 TargetType m_targetType{TargetType::NOT_SET};
76 bool m_targetIdHasBeenSet = false;
77 bool m_targetTypeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace NetworkFlowMonitor
82} // namespace Aws
TargetIdentifier & WithTargetId(TargetIdT &&value)
AWS_NETWORKFLOWMONITOR_API TargetIdentifier(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFLOWMONITOR_API TargetIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKFLOWMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKFLOWMONITOR_API TargetIdentifier()=default
TargetIdentifier & WithTargetType(TargetType value)
Aws::Utils::Json::JsonValue JsonValue