AWS SDK for C++  1.9.124
AWS SDK for C++
NetworkPathComponent.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SecurityHub
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetComponentId() const{ return m_componentId; }
45 
49  inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
50 
54  inline void SetComponentId(const Aws::String& value) { m_componentIdHasBeenSet = true; m_componentId = value; }
55 
59  inline void SetComponentId(Aws::String&& value) { m_componentIdHasBeenSet = true; m_componentId = std::move(value); }
60 
64  inline void SetComponentId(const char* value) { m_componentIdHasBeenSet = true; m_componentId.assign(value); }
65 
69  inline NetworkPathComponent& WithComponentId(const Aws::String& value) { SetComponentId(value); return *this;}
70 
74  inline NetworkPathComponent& WithComponentId(Aws::String&& value) { SetComponentId(std::move(value)); return *this;}
75 
79  inline NetworkPathComponent& WithComponentId(const char* value) { SetComponentId(value); return *this;}
80 
81 
85  inline const Aws::String& GetComponentType() const{ return m_componentType; }
86 
90  inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
91 
95  inline void SetComponentType(const Aws::String& value) { m_componentTypeHasBeenSet = true; m_componentType = value; }
96 
100  inline void SetComponentType(Aws::String&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::move(value); }
101 
105  inline void SetComponentType(const char* value) { m_componentTypeHasBeenSet = true; m_componentType.assign(value); }
106 
110  inline NetworkPathComponent& WithComponentType(const Aws::String& value) { SetComponentType(value); return *this;}
111 
115  inline NetworkPathComponent& WithComponentType(Aws::String&& value) { SetComponentType(std::move(value)); return *this;}
116 
120  inline NetworkPathComponent& WithComponentType(const char* value) { SetComponentType(value); return *this;}
121 
122 
127  inline const NetworkHeader& GetEgress() const{ return m_egress; }
128 
133  inline bool EgressHasBeenSet() const { return m_egressHasBeenSet; }
134 
139  inline void SetEgress(const NetworkHeader& value) { m_egressHasBeenSet = true; m_egress = value; }
140 
145  inline void SetEgress(NetworkHeader&& value) { m_egressHasBeenSet = true; m_egress = std::move(value); }
146 
151  inline NetworkPathComponent& WithEgress(const NetworkHeader& value) { SetEgress(value); return *this;}
152 
157  inline NetworkPathComponent& WithEgress(NetworkHeader&& value) { SetEgress(std::move(value)); return *this;}
158 
159 
164  inline const NetworkHeader& GetIngress() const{ return m_ingress; }
165 
170  inline bool IngressHasBeenSet() const { return m_ingressHasBeenSet; }
171 
176  inline void SetIngress(const NetworkHeader& value) { m_ingressHasBeenSet = true; m_ingress = value; }
177 
182  inline void SetIngress(NetworkHeader&& value) { m_ingressHasBeenSet = true; m_ingress = std::move(value); }
183 
188  inline NetworkPathComponent& WithIngress(const NetworkHeader& value) { SetIngress(value); return *this;}
189 
194  inline NetworkPathComponent& WithIngress(NetworkHeader&& value) { SetIngress(std::move(value)); return *this;}
195 
196  private:
197 
198  Aws::String m_componentId;
199  bool m_componentIdHasBeenSet;
200 
201  Aws::String m_componentType;
202  bool m_componentTypeHasBeenSet;
203 
204  NetworkHeader m_egress;
205  bool m_egressHasBeenSet;
206 
207  NetworkHeader m_ingress;
208  bool m_ingressHasBeenSet;
209  };
210 
211 } // namespace Model
212 } // namespace SecurityHub
213 } // namespace Aws
Aws::SecurityHub::Model::NetworkPathComponent::ComponentTypeHasBeenSet
bool ComponentTypeHasBeenSet() const
Definition: NetworkPathComponent.h:90
Aws::SecurityHub::Model::NetworkPathComponent::NetworkPathComponent
NetworkPathComponent()
Aws::SecurityHub::Model::NetworkPathComponent::ComponentIdHasBeenSet
bool ComponentIdHasBeenSet() const
Definition: NetworkPathComponent.h:49
Aws::SecurityHub::Model::NetworkPathComponent::SetComponentType
void SetComponentType(const Aws::String &value)
Definition: NetworkPathComponent.h:95
Aws::SecurityHub::Model::NetworkHeader
Definition: NetworkHeader.h:34
Aws::SecurityHub::Model::NetworkPathComponent::IngressHasBeenSet
bool IngressHasBeenSet() const
Definition: NetworkPathComponent.h:170
Aws::SecurityHub::Model::NetworkPathComponent::GetIngress
const NetworkHeader & GetIngress() const
Definition: NetworkPathComponent.h:164
Aws::SecurityHub::Model::NetworkPathComponent::SetComponentId
void SetComponentId(Aws::String &&value)
Definition: NetworkPathComponent.h:59
Aws::SecurityHub::Model::NetworkPathComponent::WithComponentType
NetworkPathComponent & WithComponentType(const Aws::String &value)
Definition: NetworkPathComponent.h:110
Aws::SecurityHub::Model::NetworkPathComponent::GetEgress
const NetworkHeader & GetEgress() const
Definition: NetworkPathComponent.h:127
Aws::SecurityHub::Model::NetworkPathComponent::SetComponentType
void SetComponentType(const char *value)
Definition: NetworkPathComponent.h:105
Aws::SecurityHub::Model::NetworkPathComponent::WithComponentId
NetworkPathComponent & WithComponentId(const char *value)
Definition: NetworkPathComponent.h:79
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::NetworkPathComponent::SetEgress
void SetEgress(NetworkHeader &&value)
Definition: NetworkPathComponent.h:145
Aws::SecurityHub::Model::NetworkPathComponent::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::NetworkPathComponent::NetworkPathComponent
NetworkPathComponent(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::NetworkPathComponent::SetEgress
void SetEgress(const NetworkHeader &value)
Definition: NetworkPathComponent.h:139
Aws::SecurityHub::Model::NetworkPathComponent::SetComponentId
void SetComponentId(const Aws::String &value)
Definition: NetworkPathComponent.h:54
Aws::SecurityHub::Model::NetworkPathComponent::GetComponentId
const Aws::String & GetComponentId() const
Definition: NetworkPathComponent.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SecurityHub::Model::NetworkPathComponent::WithComponentType
NetworkPathComponent & WithComponentType(const char *value)
Definition: NetworkPathComponent.h:120
AWSString.h
Aws::SecurityHub::Model::NetworkPathComponent
Definition: NetworkPathComponent.h:33
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::NetworkPathComponent::SetComponentId
void SetComponentId(const char *value)
Definition: NetworkPathComponent.h:64
Aws::SecurityHub::Model::NetworkPathComponent::EgressHasBeenSet
bool EgressHasBeenSet() const
Definition: NetworkPathComponent.h:133
Aws::SecurityHub::Model::NetworkPathComponent::WithIngress
NetworkPathComponent & WithIngress(NetworkHeader &&value)
Definition: NetworkPathComponent.h:194
Aws::SecurityHub::Model::NetworkPathComponent::SetComponentType
void SetComponentType(Aws::String &&value)
Definition: NetworkPathComponent.h:100
Aws::SecurityHub::Model::NetworkPathComponent::GetComponentType
const Aws::String & GetComponentType() const
Definition: NetworkPathComponent.h:85
Aws::SecurityHub::Model::NetworkPathComponent::WithEgress
NetworkPathComponent & WithEgress(NetworkHeader &&value)
Definition: NetworkPathComponent.h:157
Aws::SecurityHub::Model::NetworkPathComponent::WithEgress
NetworkPathComponent & WithEgress(const NetworkHeader &value)
Definition: NetworkPathComponent.h:151
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::NetworkPathComponent::SetIngress
void SetIngress(NetworkHeader &&value)
Definition: NetworkPathComponent.h:182
Aws::SecurityHub::Model::NetworkPathComponent::WithComponentId
NetworkPathComponent & WithComponentId(const Aws::String &value)
Definition: NetworkPathComponent.h:69
Aws::SecurityHub::Model::NetworkPathComponent::operator=
NetworkPathComponent & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::NetworkPathComponent::WithComponentType
NetworkPathComponent & WithComponentType(Aws::String &&value)
Definition: NetworkPathComponent.h:115
Aws::SecurityHub::Model::NetworkPathComponent::WithIngress
NetworkPathComponent & WithIngress(const NetworkHeader &value)
Definition: NetworkPathComponent.h:188
Aws::SecurityHub::Model::NetworkPathComponent::WithComponentId
NetworkPathComponent & WithComponentId(Aws::String &&value)
Definition: NetworkPathComponent.h:74
NetworkHeader.h
Aws::SecurityHub::Model::NetworkPathComponent::SetIngress
void SetIngress(const NetworkHeader &value)
Definition: NetworkPathComponent.h:176