AWS SDK for C++  1.9.106
AWS SDK for C++
DnsRequestAction.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SecurityHub
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetDomain() const{ return m_domain; }
45 
49  inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
50 
54  inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
55 
59  inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
60 
64  inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
65 
69  inline DnsRequestAction& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
70 
74  inline DnsRequestAction& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
75 
79  inline DnsRequestAction& WithDomain(const char* value) { SetDomain(value); return *this;}
80 
81 
85  inline const Aws::String& GetProtocol() const{ return m_protocol; }
86 
90  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
91 
95  inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
96 
100  inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
101 
105  inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
106 
110  inline DnsRequestAction& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
111 
115  inline DnsRequestAction& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
116 
120  inline DnsRequestAction& WithProtocol(const char* value) { SetProtocol(value); return *this;}
121 
122 
126  inline bool GetBlocked() const{ return m_blocked; }
127 
131  inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
132 
136  inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
137 
141  inline DnsRequestAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
142 
143  private:
144 
145  Aws::String m_domain;
146  bool m_domainHasBeenSet;
147 
148  Aws::String m_protocol;
149  bool m_protocolHasBeenSet;
150 
151  bool m_blocked;
152  bool m_blockedHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace SecurityHub
157 } // namespace Aws
Aws::SecurityHub::Model::DnsRequestAction::GetProtocol
const Aws::String & GetProtocol() const
Definition: DnsRequestAction.h:85
Aws::SecurityHub::Model::DnsRequestAction::DomainHasBeenSet
bool DomainHasBeenSet() const
Definition: DnsRequestAction.h:49
Aws::SecurityHub::Model::DnsRequestAction::DnsRequestAction
DnsRequestAction()
Aws::SecurityHub::Model::DnsRequestAction::WithProtocol
DnsRequestAction & WithProtocol(Aws::String &&value)
Definition: DnsRequestAction.h:115
Aws::SecurityHub::Model::DnsRequestAction::GetDomain
const Aws::String & GetDomain() const
Definition: DnsRequestAction.h:44
Aws::SecurityHub::Model::DnsRequestAction::SetProtocol
void SetProtocol(const Aws::String &value)
Definition: DnsRequestAction.h:95
Aws::SecurityHub::Model::DnsRequestAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::DnsRequestAction::operator=
DnsRequestAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::DnsRequestAction::SetProtocol
void SetProtocol(const char *value)
Definition: DnsRequestAction.h:105
Aws::SecurityHub::Model::DnsRequestAction::GetBlocked
bool GetBlocked() const
Definition: DnsRequestAction.h:126
Aws::SecurityHub::Model::DnsRequestAction::SetBlocked
void SetBlocked(bool value)
Definition: DnsRequestAction.h:136
Aws::SecurityHub::Model::DnsRequestAction::WithProtocol
DnsRequestAction & WithProtocol(const char *value)
Definition: DnsRequestAction.h:120
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::DnsRequestAction::WithBlocked
DnsRequestAction & WithBlocked(bool value)
Definition: DnsRequestAction.h:141
Aws::SecurityHub::Model::DnsRequestAction::WithDomain
DnsRequestAction & WithDomain(const char *value)
Definition: DnsRequestAction.h:79
Aws::SecurityHub::Model::DnsRequestAction::BlockedHasBeenSet
bool BlockedHasBeenSet() const
Definition: DnsRequestAction.h:131
Aws::SecurityHub::Model::DnsRequestAction::DnsRequestAction
DnsRequestAction(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::DnsRequestAction::SetDomain
void SetDomain(const Aws::String &value)
Definition: DnsRequestAction.h:54
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::DnsRequestAction
Definition: DnsRequestAction.h:33
Aws::SecurityHub::Model::DnsRequestAction::SetDomain
void SetDomain(const char *value)
Definition: DnsRequestAction.h:64
Aws::SecurityHub::Model::DnsRequestAction::WithDomain
DnsRequestAction & WithDomain(const Aws::String &value)
Definition: DnsRequestAction.h:69
Aws::SecurityHub::Model::DnsRequestAction::WithDomain
DnsRequestAction & WithDomain(Aws::String &&value)
Definition: DnsRequestAction.h:74
Aws::SecurityHub::Model::DnsRequestAction::WithProtocol
DnsRequestAction & WithProtocol(const Aws::String &value)
Definition: DnsRequestAction.h:110
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::DnsRequestAction::SetProtocol
void SetProtocol(Aws::String &&value)
Definition: DnsRequestAction.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SecurityHub_EXPORTS.h
Aws::SecurityHub::Model::DnsRequestAction::SetDomain
void SetDomain(Aws::String &&value)
Definition: DnsRequestAction.h:59
Aws::SecurityHub::Model::DnsRequestAction::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: DnsRequestAction.h:90