AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkHeader.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityhub/model/NetworkPathComponentDetails.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API NetworkHeader() = default;
37 AWS_SECURITYHUB_API NetworkHeader(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API NetworkHeader& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetProtocol() const { return m_protocol; }
48 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
49 template<typename ProtocolT = Aws::String>
50 void SetProtocol(ProtocolT&& value) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
51 template<typename ProtocolT = Aws::String>
52 NetworkHeader& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
54
56
59 inline const NetworkPathComponentDetails& GetDestination() const { return m_destination; }
60 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
61 template<typename DestinationT = NetworkPathComponentDetails>
62 void SetDestination(DestinationT&& value) { m_destinationHasBeenSet = true; m_destination = std::forward<DestinationT>(value); }
63 template<typename DestinationT = NetworkPathComponentDetails>
64 NetworkHeader& WithDestination(DestinationT&& value) { SetDestination(std::forward<DestinationT>(value)); return *this;}
66
68
71 inline const NetworkPathComponentDetails& GetSource() const { return m_source; }
72 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
73 template<typename SourceT = NetworkPathComponentDetails>
74 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
75 template<typename SourceT = NetworkPathComponentDetails>
76 NetworkHeader& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
78 private:
79
80 Aws::String m_protocol;
81 bool m_protocolHasBeenSet = false;
82
83 NetworkPathComponentDetails m_destination;
84 bool m_destinationHasBeenSet = false;
85
87 bool m_sourceHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SecurityHub
92} // namespace Aws
const NetworkPathComponentDetails & GetDestination() const
AWS_SECURITYHUB_API NetworkHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetProtocol() const
void SetDestination(DestinationT &&value)
NetworkHeader & WithDestination(DestinationT &&value)
AWS_SECURITYHUB_API NetworkHeader()=default
NetworkHeader & WithProtocol(ProtocolT &&value)
NetworkHeader & WithSource(SourceT &&value)
void SetProtocol(ProtocolT &&value)
AWS_SECURITYHUB_API NetworkHeader(Aws::Utils::Json::JsonView jsonValue)
const NetworkPathComponentDetails & GetSource() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue