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/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/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 GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API PortProbeAction();
37 AWS_GUARDDUTY_API PortProbeAction(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetBlocked() const{ return m_blocked; }
48 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
49 inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
50 inline PortProbeAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
52
54
57 inline const Aws::Vector<PortProbeDetail>& GetPortProbeDetails() const{ return m_portProbeDetails; }
58 inline bool PortProbeDetailsHasBeenSet() const { return m_portProbeDetailsHasBeenSet; }
59 inline void SetPortProbeDetails(const Aws::Vector<PortProbeDetail>& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails = value; }
60 inline void SetPortProbeDetails(Aws::Vector<PortProbeDetail>&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails = std::move(value); }
62 inline PortProbeAction& WithPortProbeDetails(Aws::Vector<PortProbeDetail>&& value) { SetPortProbeDetails(std::move(value)); return *this;}
63 inline PortProbeAction& AddPortProbeDetails(const PortProbeDetail& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(value); return *this; }
64 inline PortProbeAction& AddPortProbeDetails(PortProbeDetail&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(std::move(value)); return *this; }
66 private:
67
68 bool m_blocked;
69 bool m_blockedHasBeenSet = false;
70
71 Aws::Vector<PortProbeDetail> m_portProbeDetails;
72 bool m_portProbeDetailsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace GuardDuty
77} // namespace Aws
const Aws::Vector< PortProbeDetail > & GetPortProbeDetails() const
void SetPortProbeDetails(const Aws::Vector< PortProbeDetail > &value)
PortProbeAction & WithPortProbeDetails(const Aws::Vector< PortProbeDetail > &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
PortProbeAction & AddPortProbeDetails(const PortProbeDetail &value)
AWS_GUARDDUTY_API PortProbeAction(Aws::Utils::Json::JsonView jsonValue)
PortProbeAction & WithPortProbeDetails(Aws::Vector< PortProbeDetail > &&value)
PortProbeAction & WithBlocked(bool value)
void SetPortProbeDetails(Aws::Vector< PortProbeDetail > &&value)
PortProbeAction & AddPortProbeDetails(PortProbeDetail &&value)
AWS_GUARDDUTY_API PortProbeAction & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue