AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NetworkPathComponentDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/securityhub/model/PortRange.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SECURITYHUB_API NetworkPathComponentDetails() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetAddress() const { return m_address; }
48 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
49 template<typename AddressT = Aws::Vector<Aws::String>>
50 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
51 template<typename AddressT = Aws::Vector<Aws::String>>
52 NetworkPathComponentDetails& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
53 template<typename AddressT = Aws::String>
54 NetworkPathComponentDetails& AddAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address.emplace_back(std::forward<AddressT>(value)); return *this; }
56
58
61 inline const Aws::Vector<PortRange>& GetPortRanges() const { return m_portRanges; }
62 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
63 template<typename PortRangesT = Aws::Vector<PortRange>>
64 void SetPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges = std::forward<PortRangesT>(value); }
65 template<typename PortRangesT = Aws::Vector<PortRange>>
66 NetworkPathComponentDetails& WithPortRanges(PortRangesT&& value) { SetPortRanges(std::forward<PortRangesT>(value)); return *this;}
67 template<typename PortRangesT = PortRange>
68 NetworkPathComponentDetails& AddPortRanges(PortRangesT&& value) { m_portRangesHasBeenSet = true; m_portRanges.emplace_back(std::forward<PortRangesT>(value)); return *this; }
70 private:
71
73 bool m_addressHasBeenSet = false;
74
75 Aws::Vector<PortRange> m_portRanges;
76 bool m_portRangesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace SecurityHub
81} // 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