AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PortProbeAction.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/model/PortProbeDetail.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
35 {
36 public:
37 AWS_SECURITYHUB_API PortProbeAction();
38 AWS_SECURITYHUB_API PortProbeAction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API PortProbeAction& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<PortProbeDetail>& GetPortProbeDetails() const{ return m_portProbeDetails; }
48 inline bool PortProbeDetailsHasBeenSet() const { return m_portProbeDetailsHasBeenSet; }
49 inline void SetPortProbeDetails(const Aws::Vector<PortProbeDetail>& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails = value; }
50 inline void SetPortProbeDetails(Aws::Vector<PortProbeDetail>&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails = std::move(value); }
52 inline PortProbeAction& WithPortProbeDetails(Aws::Vector<PortProbeDetail>&& value) { SetPortProbeDetails(std::move(value)); return *this;}
53 inline PortProbeAction& AddPortProbeDetails(const PortProbeDetail& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(value); return *this; }
54 inline PortProbeAction& AddPortProbeDetails(PortProbeDetail&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(std::move(value)); return *this; }
56
58
61 inline bool GetBlocked() const{ return m_blocked; }
62 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
63 inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
64 inline PortProbeAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
66 private:
67
68 Aws::Vector<PortProbeDetail> m_portProbeDetails;
69 bool m_portProbeDetailsHasBeenSet = false;
70
71 bool m_blocked;
72 bool m_blockedHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace SecurityHub
77} // namespace Aws
PortProbeAction & WithPortProbeDetails(Aws::Vector< PortProbeDetail > &&value)
void SetPortProbeDetails(Aws::Vector< PortProbeDetail > &&value)
AWS_SECURITYHUB_API PortProbeAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< PortProbeDetail > & GetPortProbeDetails() const
void SetPortProbeDetails(const Aws::Vector< PortProbeDetail > &value)
PortProbeAction & WithBlocked(bool value)
PortProbeAction & AddPortProbeDetails(const PortProbeDetail &value)
AWS_SECURITYHUB_API PortProbeAction(Aws::Utils::Json::JsonView jsonValue)
PortProbeAction & AddPortProbeDetails(PortProbeDetail &&value)
PortProbeAction & WithPortProbeDetails(const Aws::Vector< PortProbeDetail > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue