AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
NetworkHeader.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/NetworkPathComponentDetails.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
30 public:
31 AWS_SECURITYHUB_API NetworkHeader() = default;
32 AWS_SECURITYHUB_API NetworkHeader(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API NetworkHeader& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetProtocol() const { return m_protocol; }
42 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
43 template <typename ProtocolT = Aws::String>
44 void SetProtocol(ProtocolT&& value) {
45 m_protocolHasBeenSet = true;
46 m_protocol = std::forward<ProtocolT>(value);
47 }
48 template <typename ProtocolT = Aws::String>
49 NetworkHeader& WithProtocol(ProtocolT&& value) {
50 SetProtocol(std::forward<ProtocolT>(value));
51 return *this;
52 }
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) {
63 m_destinationHasBeenSet = true;
64 m_destination = std::forward<DestinationT>(value);
65 }
66 template <typename DestinationT = NetworkPathComponentDetails>
67 NetworkHeader& WithDestination(DestinationT&& value) {
68 SetDestination(std::forward<DestinationT>(value));
69 return *this;
70 }
72
74
77 inline const NetworkPathComponentDetails& GetSource() const { return m_source; }
78 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
79 template <typename SourceT = NetworkPathComponentDetails>
80 void SetSource(SourceT&& value) {
81 m_sourceHasBeenSet = true;
82 m_source = std::forward<SourceT>(value);
83 }
84 template <typename SourceT = NetworkPathComponentDetails>
85 NetworkHeader& WithSource(SourceT&& value) {
86 SetSource(std::forward<SourceT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_protocol;
92
93 NetworkPathComponentDetails m_destination;
94
96 bool m_protocolHasBeenSet = false;
97 bool m_destinationHasBeenSet = false;
98 bool m_sourceHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SecurityHub
103} // 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