AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
NetworkPathComponentDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/PortRange.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
31 public:
32 AWS_SECURITYHUB_API NetworkPathComponentDetails() = default;
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetAddress() const { return m_address; }
42 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
43 template <typename AddressT = Aws::Vector<Aws::String>>
44 void SetAddress(AddressT&& value) {
45 m_addressHasBeenSet = true;
46 m_address = std::forward<AddressT>(value);
47 }
48 template <typename AddressT = Aws::Vector<Aws::String>>
50 SetAddress(std::forward<AddressT>(value));
51 return *this;
52 }
53 template <typename AddressT = Aws::String>
55 m_addressHasBeenSet = true;
56 m_address.emplace_back(std::forward<AddressT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<PortRange>& GetPortRanges() const { return m_portRanges; }
66 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
67 template <typename PortRangesT = Aws::Vector<PortRange>>
68 void SetPortRanges(PortRangesT&& value) {
69 m_portRangesHasBeenSet = true;
70 m_portRanges = std::forward<PortRangesT>(value);
71 }
72 template <typename PortRangesT = Aws::Vector<PortRange>>
74 SetPortRanges(std::forward<PortRangesT>(value));
75 return *this;
76 }
77 template <typename PortRangesT = PortRange>
79 m_portRangesHasBeenSet = true;
80 m_portRanges.emplace_back(std::forward<PortRangesT>(value));
81 return *this;
82 }
84 private:
86
87 Aws::Vector<PortRange> m_portRanges;
88 bool m_addressHasBeenSet = false;
89 bool m_portRangesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace SecurityHub
94} // namespace Aws
NetworkPathComponentDetails & WithPortRanges(PortRangesT &&value)
NetworkPathComponentDetails & AddPortRanges(PortRangesT &&value)
AWS_SECURITYHUB_API NetworkPathComponentDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAddress() const
NetworkPathComponentDetails & AddAddress(AddressT &&value)
AWS_SECURITYHUB_API NetworkPathComponentDetails()=default
AWS_SECURITYHUB_API NetworkPathComponentDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkPathComponentDetails & WithAddress(AddressT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue