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/guardduty/GuardDuty_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 GuardDuty
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_GUARDDUTY_API DnsRequestAction();
36 AWS_GUARDDUTY_API DnsRequestAction(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDomain() const{ return m_domain; }
46 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
47 inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; }
48 inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); }
49 inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); }
50 inline DnsRequestAction& WithDomain(const Aws::String& value) { SetDomain(value); return *this;}
51 inline DnsRequestAction& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;}
52 inline DnsRequestAction& WithDomain(const char* value) { SetDomain(value); return *this;}
54
56
60 inline const Aws::String& GetProtocol() const{ return m_protocol; }
61 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
62 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
63 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
64 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
65 inline DnsRequestAction& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
66 inline DnsRequestAction& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
67 inline DnsRequestAction& WithProtocol(const char* value) { SetProtocol(value); return *this;}
69
71
74 inline bool GetBlocked() const{ return m_blocked; }
75 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
76 inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
77 inline DnsRequestAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
79
81
87 inline const Aws::String& GetDomainWithSuffix() const{ return m_domainWithSuffix; }
88 inline bool DomainWithSuffixHasBeenSet() const { return m_domainWithSuffixHasBeenSet; }
89 inline void SetDomainWithSuffix(const Aws::String& value) { m_domainWithSuffixHasBeenSet = true; m_domainWithSuffix = value; }
90 inline void SetDomainWithSuffix(Aws::String&& value) { m_domainWithSuffixHasBeenSet = true; m_domainWithSuffix = std::move(value); }
91 inline void SetDomainWithSuffix(const char* value) { m_domainWithSuffixHasBeenSet = true; m_domainWithSuffix.assign(value); }
92 inline DnsRequestAction& WithDomainWithSuffix(const Aws::String& value) { SetDomainWithSuffix(value); return *this;}
93 inline DnsRequestAction& WithDomainWithSuffix(Aws::String&& value) { SetDomainWithSuffix(std::move(value)); return *this;}
94 inline DnsRequestAction& WithDomainWithSuffix(const char* value) { SetDomainWithSuffix(value); return *this;}
96 private:
97
98 Aws::String m_domain;
99 bool m_domainHasBeenSet = false;
100
101 Aws::String m_protocol;
102 bool m_protocolHasBeenSet = false;
103
104 bool m_blocked;
105 bool m_blockedHasBeenSet = false;
106
107 Aws::String m_domainWithSuffix;
108 bool m_domainWithSuffixHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace GuardDuty
113} // namespace Aws
DnsRequestAction & WithProtocol(const char *value)
const Aws::String & GetDomain() const
void SetDomainWithSuffix(const Aws::String &value)
DnsRequestAction & WithDomainWithSuffix(Aws::String &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDomainWithSuffix() const
AWS_GUARDDUTY_API DnsRequestAction & operator=(Aws::Utils::Json::JsonView jsonValue)
DnsRequestAction & WithProtocol(const Aws::String &value)
const Aws::String & GetProtocol() const
DnsRequestAction & WithDomainWithSuffix(const char *value)
void SetDomain(const Aws::String &value)
DnsRequestAction & WithProtocol(Aws::String &&value)
DnsRequestAction & WithDomain(const Aws::String &value)
DnsRequestAction & WithDomain(Aws::String &&value)
void SetDomainWithSuffix(Aws::String &&value)
DnsRequestAction & WithDomain(const char *value)
void SetProtocol(const Aws::String &value)
void SetDomainWithSuffix(const char *value)
DnsRequestAction & WithDomainWithSuffix(const Aws::String &value)
AWS_GUARDDUTY_API DnsRequestAction(Aws::Utils::Json::JsonView jsonValue)
DnsRequestAction & WithBlocked(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue