AWS SDK for C++

AWS SDK for C++ Version 1.11.639

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() = default;
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 template<typename DomainT = Aws::String>
48 void SetDomain(DomainT&& value) { m_domainHasBeenSet = true; m_domain = std::forward<DomainT>(value); }
49 template<typename DomainT = Aws::String>
50 DnsRequestAction& WithDomain(DomainT&& value) { SetDomain(std::forward<DomainT>(value)); return *this;}
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) { m_protocolHasBeenSet = true; m_protocol = std::forward<ProtocolT>(value); }
62 template<typename ProtocolT = Aws::String>
63 DnsRequestAction& WithProtocol(ProtocolT&& value) { SetProtocol(std::forward<ProtocolT>(value)); return *this;}
65
67
70 inline bool GetBlocked() const { return m_blocked; }
71 inline bool BlockedHasBeenSet() const { return m_blockedHasBeenSet; }
72 inline void SetBlocked(bool value) { m_blockedHasBeenSet = true; m_blocked = value; }
73 inline DnsRequestAction& WithBlocked(bool value) { SetBlocked(value); return *this;}
75
77
83 inline const Aws::String& GetDomainWithSuffix() const { return m_domainWithSuffix; }
84 inline bool DomainWithSuffixHasBeenSet() const { return m_domainWithSuffixHasBeenSet; }
85 template<typename DomainWithSuffixT = Aws::String>
86 void SetDomainWithSuffix(DomainWithSuffixT&& value) { m_domainWithSuffixHasBeenSet = true; m_domainWithSuffix = std::forward<DomainWithSuffixT>(value); }
87 template<typename DomainWithSuffixT = Aws::String>
88 DnsRequestAction& WithDomainWithSuffix(DomainWithSuffixT&& value) { SetDomainWithSuffix(std::forward<DomainWithSuffixT>(value)); return *this;}
90
92
96 inline const Aws::String& GetVpcOwnerAccountId() const { return m_vpcOwnerAccountId; }
97 inline bool VpcOwnerAccountIdHasBeenSet() const { return m_vpcOwnerAccountIdHasBeenSet; }
98 template<typename VpcOwnerAccountIdT = Aws::String>
99 void SetVpcOwnerAccountId(VpcOwnerAccountIdT&& value) { m_vpcOwnerAccountIdHasBeenSet = true; m_vpcOwnerAccountId = std::forward<VpcOwnerAccountIdT>(value); }
100 template<typename VpcOwnerAccountIdT = Aws::String>
101 DnsRequestAction& WithVpcOwnerAccountId(VpcOwnerAccountIdT&& value) { SetVpcOwnerAccountId(std::forward<VpcOwnerAccountIdT>(value)); return *this;}
103 private:
104
105 Aws::String m_domain;
106 bool m_domainHasBeenSet = false;
107
108 Aws::String m_protocol;
109 bool m_protocolHasBeenSet = false;
110
111 bool m_blocked{false};
112 bool m_blockedHasBeenSet = false;
113
114 Aws::String m_domainWithSuffix;
115 bool m_domainWithSuffixHasBeenSet = false;
116
117 Aws::String m_vpcOwnerAccountId;
118 bool m_vpcOwnerAccountIdHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace GuardDuty
123} // 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