AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
DnsRequestAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
29 public:
30 AWS_GUARDDUTY_API DnsRequestAction() = default;
31 AWS_GUARDDUTY_API DnsRequestAction(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDomain() const { return m_domain; }
40 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
41 template <typename DomainT = Aws::String>
42 void SetDomain(DomainT&& value) {
43 m_domainHasBeenSet = true;
44 m_domain = std::forward<DomainT>(value);
45 }
46 template <typename DomainT = Aws::String>
47 DnsRequestAction& WithDomain(DomainT&& value) {
48 SetDomain(std::forward<DomainT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetProtocol() const { return m_protocol; }
59 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
60 template <typename ProtocolT = Aws::String>
61 void SetProtocol(ProtocolT&& value) {
62 m_protocolHasBeenSet = true;
63 m_protocol = std::forward<ProtocolT>(value);
64 }
65 template <typename ProtocolT = Aws::String>
66 DnsRequestAction& WithProtocol(ProtocolT&& value) {
67 SetProtocol(std::forward<ProtocolT>(value));
68 return *this;
69 }
71
73
76 inline bool GetBlocked() const { return m_blocked; }
77 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
78 inline void SetBlocked(bool value) {
79 m_blockedHasBeenSet = true;
80 m_blocked = value;
81 }
82 inline DnsRequestAction& WithBlocked(bool value) {
83 SetBlocked(value);
84 return *this;
85 }
87
89
95 inline const Aws::String& GetDomainWithSuffix() const { return m_domainWithSuffix; }
96 inline bool DomainWithSuffixHasBeenSet() const { return m_domainWithSuffixHasBeenSet; }
97 template <typename DomainWithSuffixT = Aws::String>
98 void SetDomainWithSuffix(DomainWithSuffixT&& value) {
99 m_domainWithSuffixHasBeenSet = true;
100 m_domainWithSuffix = std::forward<DomainWithSuffixT>(value);
101 }
102 template <typename DomainWithSuffixT = Aws::String>
103 DnsRequestAction& WithDomainWithSuffix(DomainWithSuffixT&& value) {
104 SetDomainWithSuffix(std::forward<DomainWithSuffixT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetVpcOwnerAccountId() const { return m_vpcOwnerAccountId; }
115 inline bool VpcOwnerAccountIdHasBeenSet() const { return m_vpcOwnerAccountIdHasBeenSet; }
116 template <typename VpcOwnerAccountIdT = Aws::String>
117 void SetVpcOwnerAccountId(VpcOwnerAccountIdT&& value) {
118 m_vpcOwnerAccountIdHasBeenSet = true;
119 m_vpcOwnerAccountId = std::forward<VpcOwnerAccountIdT>(value);
120 }
121 template <typename VpcOwnerAccountIdT = Aws::String>
122 DnsRequestAction& WithVpcOwnerAccountId(VpcOwnerAccountIdT&& value) {
123 SetVpcOwnerAccountId(std::forward<VpcOwnerAccountIdT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_domain;
129
130 Aws::String m_protocol;
131
132 bool m_blocked{false};
133
134 Aws::String m_domainWithSuffix;
135
136 Aws::String m_vpcOwnerAccountId;
137 bool m_domainHasBeenSet = false;
138 bool m_protocolHasBeenSet = false;
139 bool m_blockedHasBeenSet = false;
140 bool m_domainWithSuffixHasBeenSet = false;
141 bool m_vpcOwnerAccountIdHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace GuardDuty
146} // namespace Aws
const Aws::String & GetDomain() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDomainWithSuffix() const
AWS_GUARDDUTY_API DnsRequestAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVpcOwnerAccountId(VpcOwnerAccountIdT &&value)
DnsRequestAction & WithDomainWithSuffix(DomainWithSuffixT &&value)
void SetDomainWithSuffix(DomainWithSuffixT &&value)
const Aws::String & GetProtocol() const
DnsRequestAction & WithVpcOwnerAccountId(VpcOwnerAccountIdT &&value)
const Aws::String & GetVpcOwnerAccountId() const
DnsRequestAction & WithDomain(DomainT &&value)
DnsRequestAction & WithProtocol(ProtocolT &&value)
AWS_GUARDDUTY_API DnsRequestAction()=default
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