AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DnsRequestAction.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API DnsRequestAction();
36 AWS_SECURITYHUB_API DnsRequestAction(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API DnsRequestAction& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetDomain() const{ return m_domain; }
47 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
48 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
49 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
50 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
51 inline DnsRequestAction& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
52 inline DnsRequestAction& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
53 inline DnsRequestAction& WithDomain(const char* value) { SetDomain(value); return *this;}
55
57
61 inline const Aws::String& GetProtocol() const{ return m_protocol; }
62 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
63 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
64 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
65 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
66 inline DnsRequestAction& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
67 inline DnsRequestAction& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
68 inline DnsRequestAction& WithProtocol(const char* value) { SetProtocol(value); return *this;}
70
72
75 inline bool GetBlocked() const{ return m_blocked; }
76 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
77 inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
78 inline DnsRequestAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
80 private:
81
82 Aws::String m_domain;
83 bool m_domainHasBeenSet = false;
84
85 Aws::String m_protocol;
86 bool m_protocolHasBeenSet = false;
87
88 bool m_blocked;
89 bool m_blockedHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace SecurityHub
94} // namespace Aws
DnsRequestAction & WithProtocol(Aws::String &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
DnsRequestAction & WithDomain(const char *value)
AWS_SECURITYHUB_API DnsRequestAction(Aws::Utils::Json::JsonView jsonValue)
void SetProtocol(const Aws::String &value)
AWS_SECURITYHUB_API DnsRequestAction & operator=(Aws::Utils::Json::JsonView jsonValue)
DnsRequestAction & WithProtocol(const Aws::String &value)
DnsRequestAction & WithBlocked(bool value)
void SetDomain(const Aws::String &value)
DnsRequestAction & WithProtocol(const char *value)
DnsRequestAction & WithDomain(const Aws::String &value)
const Aws::String & GetProtocol() const
DnsRequestAction & WithDomain(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue