AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
DnsContext.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
28 public:
29 AWS_GUARDDUTY_API DnsContext() = default;
30 AWS_GUARDDUTY_API DnsContext(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GUARDDUTY_API DnsContext& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetDomainSuffix() const { return m_domainSuffix; }
39 inline bool DomainSuffixHasBeenSet() const { return m_domainSuffixHasBeenSet; }
40 template <typename DomainSuffixT = Aws::String>
41 void SetDomainSuffix(DomainSuffixT&& value) {
42 m_domainSuffixHasBeenSet = true;
43 m_domainSuffix = std::forward<DomainSuffixT>(value);
44 }
45 template <typename DomainSuffixT = Aws::String>
46 DnsContext& WithDomainSuffix(DomainSuffixT&& value) {
47 SetDomainSuffix(std::forward<DomainSuffixT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetOtherDomains() const { return m_otherDomains; }
57 inline bool OtherDomainsHasBeenSet() const { return m_otherDomainsHasBeenSet; }
58 template <typename OtherDomainsT = Aws::String>
59 void SetOtherDomains(OtherDomainsT&& value) {
60 m_otherDomainsHasBeenSet = true;
61 m_otherDomains = std::forward<OtherDomainsT>(value);
62 }
63 template <typename OtherDomainsT = Aws::String>
64 DnsContext& WithOtherDomains(OtherDomainsT&& value) {
65 SetOtherDomains(std::forward<OtherDomainsT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetResolverHistory() const { return m_resolverHistory; }
75 inline bool ResolverHistoryHasBeenSet() const { return m_resolverHistoryHasBeenSet; }
76 template <typename ResolverHistoryT = Aws::String>
77 void SetResolverHistory(ResolverHistoryT&& value) {
78 m_resolverHistoryHasBeenSet = true;
79 m_resolverHistory = std::forward<ResolverHistoryT>(value);
80 }
81 template <typename ResolverHistoryT = Aws::String>
82 DnsContext& WithResolverHistory(ResolverHistoryT&& value) {
83 SetResolverHistory(std::forward<ResolverHistoryT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_domainSuffix;
89
90 Aws::String m_otherDomains;
91
92 Aws::String m_resolverHistory;
93 bool m_domainSuffixHasBeenSet = false;
94 bool m_otherDomainsHasBeenSet = false;
95 bool m_resolverHistoryHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace GuardDuty
100} // namespace Aws
void SetResolverHistory(ResolverHistoryT &&value)
Definition DnsContext.h:77
AWS_GUARDDUTY_API DnsContext & operator=(Aws::Utils::Json::JsonView jsonValue)
DnsContext & WithResolverHistory(ResolverHistoryT &&value)
Definition DnsContext.h:82
const Aws::String & GetDomainSuffix() const
Definition DnsContext.h:38
AWS_GUARDDUTY_API DnsContext(Aws::Utils::Json::JsonView jsonValue)
void SetOtherDomains(OtherDomainsT &&value)
Definition DnsContext.h:59
void SetDomainSuffix(DomainSuffixT &&value)
Definition DnsContext.h:41
const Aws::String & GetResolverHistory() const
Definition DnsContext.h:74
DnsContext & WithOtherDomains(OtherDomainsT &&value)
Definition DnsContext.h:64
const Aws::String & GetOtherDomains() const
Definition DnsContext.h:56
AWS_GUARDDUTY_API DnsContext()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
DnsContext & WithDomainSuffix(DomainSuffixT &&value)
Definition DnsContext.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue