AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
DnsVerification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9#include <aws/securityagent/model/DNSRecordType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityAgent {
21namespace Model {
22
29 public:
30 AWS_SECURITYAGENT_API DnsVerification() = default;
31 AWS_SECURITYAGENT_API DnsVerification(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYAGENT_API DnsVerification& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetToken() const { return m_token; }
40 inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
41 template <typename TokenT = Aws::String>
42 void SetToken(TokenT&& value) {
43 m_tokenHasBeenSet = true;
44 m_token = std::forward<TokenT>(value);
45 }
46 template <typename TokenT = Aws::String>
47 DnsVerification& WithToken(TokenT&& value) {
48 SetToken(std::forward<TokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDnsRecordName() const { return m_dnsRecordName; }
58 inline bool DnsRecordNameHasBeenSet() const { return m_dnsRecordNameHasBeenSet; }
59 template <typename DnsRecordNameT = Aws::String>
60 void SetDnsRecordName(DnsRecordNameT&& value) {
61 m_dnsRecordNameHasBeenSet = true;
62 m_dnsRecordName = std::forward<DnsRecordNameT>(value);
63 }
64 template <typename DnsRecordNameT = Aws::String>
65 DnsVerification& WithDnsRecordName(DnsRecordNameT&& value) {
66 SetDnsRecordName(std::forward<DnsRecordNameT>(value));
67 return *this;
68 }
70
72
75 inline DNSRecordType GetDnsRecordType() const { return m_dnsRecordType; }
76 inline bool DnsRecordTypeHasBeenSet() const { return m_dnsRecordTypeHasBeenSet; }
77 inline void SetDnsRecordType(DNSRecordType value) {
78 m_dnsRecordTypeHasBeenSet = true;
79 m_dnsRecordType = value;
80 }
82 SetDnsRecordType(value);
83 return *this;
84 }
86 private:
87 Aws::String m_token;
88
89 Aws::String m_dnsRecordName;
90
92 bool m_tokenHasBeenSet = false;
93 bool m_dnsRecordNameHasBeenSet = false;
94 bool m_dnsRecordTypeHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace SecurityAgent
99} // namespace Aws
const Aws::String & GetDnsRecordName() const
DnsVerification & WithToken(TokenT &&value)
AWS_SECURITYAGENT_API DnsVerification()=default
DnsVerification & WithDnsRecordName(DnsRecordNameT &&value)
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
DnsVerification & WithDnsRecordType(DNSRecordType value)
AWS_SECURITYAGENT_API DnsVerification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDnsRecordName(DnsRecordNameT &&value)
AWS_SECURITYAGENT_API DnsVerification(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue