AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
NetworkPathComponent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9#include <aws/securityhub/model/NetworkHeader.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
29 public:
30 AWS_SECURITYHUB_API NetworkPathComponent() = default;
31 AWS_SECURITYHUB_API NetworkPathComponent(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetComponentId() const { return m_componentId; }
41 inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
42 template <typename ComponentIdT = Aws::String>
43 void SetComponentId(ComponentIdT&& value) {
44 m_componentIdHasBeenSet = true;
45 m_componentId = std::forward<ComponentIdT>(value);
46 }
47 template <typename ComponentIdT = Aws::String>
48 NetworkPathComponent& WithComponentId(ComponentIdT&& value) {
49 SetComponentId(std::forward<ComponentIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetComponentType() const { return m_componentType; }
60 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
61 template <typename ComponentTypeT = Aws::String>
62 void SetComponentType(ComponentTypeT&& value) {
63 m_componentTypeHasBeenSet = true;
64 m_componentType = std::forward<ComponentTypeT>(value);
65 }
66 template <typename ComponentTypeT = Aws::String>
67 NetworkPathComponent& WithComponentType(ComponentTypeT&& value) {
68 SetComponentType(std::forward<ComponentTypeT>(value));
69 return *this;
70 }
72
74
78 inline const NetworkHeader& GetEgress() const { return m_egress; }
79 inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
80 template <typename EgressT = NetworkHeader>
81 void SetEgress(EgressT&& value) {
82 m_egressHasBeenSet = true;
83 m_egress = std::forward<EgressT>(value);
84 }
85 template <typename EgressT = NetworkHeader>
86 NetworkPathComponent& WithEgress(EgressT&& value) {
87 SetEgress(std::forward<EgressT>(value));
88 return *this;
89 }
91
93
97 inline const NetworkHeader& GetIngress() const { return m_ingress; }
98 inline bool IngressHasBeenSet() const { return m_ingressHasBeenSet; }
99 template <typename IngressT = NetworkHeader>
100 void SetIngress(IngressT&& value) {
101 m_ingressHasBeenSet = true;
102 m_ingress = std::forward<IngressT>(value);
103 }
104 template <typename IngressT = NetworkHeader>
106 SetIngress(std::forward<IngressT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_componentId;
112
113 Aws::String m_componentType;
114
115 NetworkHeader m_egress;
116
117 NetworkHeader m_ingress;
118 bool m_componentIdHasBeenSet = false;
119 bool m_componentTypeHasBeenSet = false;
120 bool m_egressHasBeenSet = false;
121 bool m_ingressHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace SecurityHub
126} // namespace Aws
AWS_SECURITYHUB_API NetworkPathComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkPathComponent & WithEgress(EgressT &&value)
NetworkPathComponent & WithComponentType(ComponentTypeT &&value)
AWS_SECURITYHUB_API NetworkPathComponent()=default
NetworkPathComponent & WithComponentId(ComponentIdT &&value)
NetworkPathComponent & WithIngress(IngressT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API NetworkPathComponent(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue