AWS SDK for C++  1.9.107
AWS SDK for C++
PortProbeAction.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GuardDuty
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline bool GetBlocked() const{ return m_blocked; }
47 
52  inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
53 
58  inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
59 
64  inline PortProbeAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
65 
66 
70  inline const Aws::Vector<PortProbeDetail>& GetPortProbeDetails() const{ return m_portProbeDetails; }
71 
75  inline bool PortProbeDetailsHasBeenSet() const { return m_portProbeDetailsHasBeenSet; }
76 
80  inline void SetPortProbeDetails(const Aws::Vector<PortProbeDetail>& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails = value; }
81 
85  inline void SetPortProbeDetails(Aws::Vector<PortProbeDetail>&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails = std::move(value); }
86 
90  inline PortProbeAction& WithPortProbeDetails(const Aws::Vector<PortProbeDetail>& value) { SetPortProbeDetails(value); return *this;}
91 
95  inline PortProbeAction& WithPortProbeDetails(Aws::Vector<PortProbeDetail>&& value) { SetPortProbeDetails(std::move(value)); return *this;}
96 
100  inline PortProbeAction& AddPortProbeDetails(const PortProbeDetail& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(value); return *this; }
101 
105  inline PortProbeAction& AddPortProbeDetails(PortProbeDetail&& value) { m_portProbeDetailsHasBeenSet = true; m_portProbeDetails.push_back(std::move(value)); return *this; }
106 
107  private:
108 
109  bool m_blocked;
110  bool m_blockedHasBeenSet;
111 
112  Aws::Vector<PortProbeDetail> m_portProbeDetails;
113  bool m_portProbeDetailsHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace GuardDuty
118 } // namespace Aws
Aws::GuardDuty::Model::PortProbeAction
Definition: PortProbeAction.h:34
Aws::GuardDuty::Model::PortProbeAction::AddPortProbeDetails
PortProbeAction & AddPortProbeDetails(const PortProbeDetail &value)
Definition: PortProbeAction.h:100
Aws::GuardDuty::Model::PortProbeAction::GetPortProbeDetails
const Aws::Vector< PortProbeDetail > & GetPortProbeDetails() const
Definition: PortProbeAction.h:70
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::PortProbeAction::BlockedHasBeenSet
bool BlockedHasBeenSet() const
Definition: PortProbeAction.h:52
AWSVector.h
Aws::GuardDuty::Model::PortProbeAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::PortProbeAction::PortProbeAction
PortProbeAction(Aws::Utils::Json::JsonView jsonValue)
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::PortProbeAction::WithPortProbeDetails
PortProbeAction & WithPortProbeDetails(Aws::Vector< PortProbeDetail > &&value)
Definition: PortProbeAction.h:95
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::PortProbeAction::WithPortProbeDetails
PortProbeAction & WithPortProbeDetails(const Aws::Vector< PortProbeDetail > &value)
Definition: PortProbeAction.h:90
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GuardDuty::Model::PortProbeAction::WithBlocked
PortProbeAction & WithBlocked(bool value)
Definition: PortProbeAction.h:64
Aws::GuardDuty::Model::PortProbeAction::operator=
PortProbeAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::PortProbeAction::PortProbeAction
PortProbeAction()
Aws::GuardDuty::Model::PortProbeDetail
Definition: PortProbeDetail.h:35
Aws
Definition: AccessManagementClient.h:15
PortProbeDetail.h
Aws::GuardDuty::Model::PortProbeAction::PortProbeDetailsHasBeenSet
bool PortProbeDetailsHasBeenSet() const
Definition: PortProbeAction.h:75
Aws::GuardDuty::Model::PortProbeAction::AddPortProbeDetails
PortProbeAction & AddPortProbeDetails(PortProbeDetail &&value)
Definition: PortProbeAction.h:105
Aws::GuardDuty::Model::PortProbeAction::GetBlocked
bool GetBlocked() const
Definition: PortProbeAction.h:46
Aws::GuardDuty::Model::PortProbeAction::SetPortProbeDetails
void SetPortProbeDetails(const Aws::Vector< PortProbeDetail > &value)
Definition: PortProbeAction.h:80
Aws::GuardDuty::Model::PortProbeAction::SetPortProbeDetails
void SetPortProbeDetails(Aws::Vector< PortProbeDetail > &&value)
Definition: PortProbeAction.h:85
Aws::GuardDuty::Model::PortProbeAction::SetBlocked
void SetBlocked(bool value)
Definition: PortProbeAction.h:58