AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
50 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
51 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
52 inline NetworkHeader& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
53 inline NetworkHeader& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
54 inline NetworkHeader& WithProtocol(const char* value) { SetProtocol(value); return *this;}
56
58
61 inline const NetworkPathComponentDetails& GetDestination() const{ return m_destination; }
62 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
63 inline void SetDestination(const NetworkPathComponentDetails& value) { m_destinationHasBeenSet = true; m_destination = value; }
64 inline void SetDestination(NetworkPathComponentDetails&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
65 inline NetworkHeader& WithDestination(const NetworkPathComponentDetails& value) { SetDestination(value); return *this;}
66 inline NetworkHeader& WithDestination(NetworkPathComponentDetails&& value) { SetDestination(std::move(value)); return *this;}
68
70
73 inline const NetworkPathComponentDetails& GetSource() const{ return m_source; }
74 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
75 inline void SetSource(const NetworkPathComponentDetails& value) { m_sourceHasBeenSet = true; m_source = value; }
76 inline void SetSource(NetworkPathComponentDetails&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
77 inline NetworkHeader& WithSource(const NetworkPathComponentDetails& value) { SetSource(value); return *this;}
78 inline NetworkHeader& WithSource(NetworkPathComponentDetails&& value) { SetSource(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_protocol;
83 bool m_protocolHasBeenSet = false;
84
85 NetworkPathComponentDetails m_destination;
86 bool m_destinationHasBeenSet = false;
87
89 bool m_sourceHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SecurityHub
94} // namespace Aws
NetworkHeader & WithSource(const NetworkPathComponentDetails &value)
NetworkHeader & WithProtocol(Aws::String &&value)
const NetworkPathComponentDetails & GetDestination() const
AWS_SECURITYHUB_API NetworkHeader & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkHeader & WithDestination(NetworkPathComponentDetails &&value)
const Aws::String & GetProtocol() const
NetworkHeader & WithSource(NetworkPathComponentDetails &&value)
void SetDestination(NetworkPathComponentDetails &&value)
void SetProtocol(const char *value)
void SetDestination(const NetworkPathComponentDetails &value)
NetworkHeader & WithProtocol(const char *value)
void SetProtocol(Aws::String &&value)
NetworkHeader & WithDestination(const NetworkPathComponentDetails &value)
void SetProtocol(const Aws::String &value)
void SetSource(const NetworkPathComponentDetails &value)
void SetSource(NetworkPathComponentDetails &&value)
NetworkHeader & WithProtocol(const Aws::String &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