AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAddress(const Aws::Vector<Aws::String>& value) { m_addressHasBeenSet = true; m_address = value; }
50 inline void SetAddress(Aws::Vector<Aws::String>&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
51 inline NetworkPathComponentDetails& WithAddress(const Aws::Vector<Aws::String>& value) { SetAddress(value); return *this;}
52 inline NetworkPathComponentDetails& WithAddress(Aws::Vector<Aws::String>&& value) { SetAddress(std::move(value)); return *this;}
53 inline NetworkPathComponentDetails& AddAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address.push_back(value); return *this; }
54 inline NetworkPathComponentDetails& AddAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address.push_back(std::move(value)); return *this; }
55 inline NetworkPathComponentDetails& AddAddress(const char* value) { m_addressHasBeenSet = true; m_address.push_back(value); return *this; }
57
59
62 inline const Aws::Vector<PortRange>& GetPortRanges() const{ return m_portRanges; }
63 inline bool PortRangesHasBeenSet() const { return m_portRangesHasBeenSet; }
64 inline void SetPortRanges(const Aws::Vector<PortRange>& value) { m_portRangesHasBeenSet = true; m_portRanges = value; }
65 inline void SetPortRanges(Aws::Vector<PortRange>&& value) { m_portRangesHasBeenSet = true; m_portRanges = std::move(value); }
67 inline NetworkPathComponentDetails& WithPortRanges(Aws::Vector<PortRange>&& value) { SetPortRanges(std::move(value)); return *this;}
68 inline NetworkPathComponentDetails& AddPortRanges(const PortRange& value) { m_portRangesHasBeenSet = true; m_portRanges.push_back(value); return *this; }
69 inline NetworkPathComponentDetails& AddPortRanges(PortRange&& value) { m_portRangesHasBeenSet = true; m_portRanges.push_back(std::move(value)); return *this; }
71 private:
72
74 bool m_addressHasBeenSet = false;
75
76 Aws::Vector<PortRange> m_portRanges;
77 bool m_portRangesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace SecurityHub
82} // namespace Aws
NetworkPathComponentDetails & AddAddress(const char *value)
NetworkPathComponentDetails & AddAddress(const Aws::String &value)
NetworkPathComponentDetails & WithAddress(Aws::Vector< Aws::String > &&value)
NetworkPathComponentDetails & AddPortRanges(const PortRange &value)
AWS_SECURITYHUB_API NetworkPathComponentDetails(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(const Aws::Vector< Aws::String > &value)
NetworkPathComponentDetails & WithAddress(const Aws::Vector< Aws::String > &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAddress() const
NetworkPathComponentDetails & WithPortRanges(Aws::Vector< PortRange > &&value)
void SetPortRanges(const Aws::Vector< PortRange > &value)
AWS_SECURITYHUB_API NetworkPathComponentDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkPathComponentDetails & AddAddress(Aws::String &&value)
NetworkPathComponentDetails & AddPortRanges(PortRange &&value)
NetworkPathComponentDetails & WithPortRanges(const Aws::Vector< PortRange > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue