AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DnsRecord.h
1
6#pragma once
7#include <aws/workmail/WorkMail_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 WorkMail
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_WORKMAIL_API DnsRecord() = default;
35 AWS_WORKMAIL_API DnsRecord(Aws::Utils::Json::JsonView jsonValue);
36 AWS_WORKMAIL_API DnsRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::String& GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 template<typename TypeT = Aws::String>
48 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
49 template<typename TypeT = Aws::String>
50 DnsRecord& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
52
54
57 inline const Aws::String& GetHostname() const { return m_hostname; }
58 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
59 template<typename HostnameT = Aws::String>
60 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet = true; m_hostname = std::forward<HostnameT>(value); }
61 template<typename HostnameT = Aws::String>
62 DnsRecord& WithHostname(HostnameT&& value) { SetHostname(std::forward<HostnameT>(value)); return *this;}
64
66
70 inline const Aws::String& GetValue() const { return m_value; }
71 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
72 template<typename ValueT = Aws::String>
73 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
74 template<typename ValueT = Aws::String>
75 DnsRecord& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
77 private:
78
79 Aws::String m_type;
80 bool m_typeHasBeenSet = false;
81
82 Aws::String m_hostname;
83 bool m_hostnameHasBeenSet = false;
84
85 Aws::String m_value;
86 bool m_valueHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace WorkMail
91} // namespace Aws
AWS_WORKMAIL_API DnsRecord()=default
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetValue() const
Definition DnsRecord.h:70
DnsRecord & WithType(TypeT &&value)
Definition DnsRecord.h:50
const Aws::String & GetHostname() const
Definition DnsRecord.h:57
AWS_WORKMAIL_API DnsRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
DnsRecord & WithHostname(HostnameT &&value)
Definition DnsRecord.h:62
void SetHostname(HostnameT &&value)
Definition DnsRecord.h:60
void SetType(TypeT &&value)
Definition DnsRecord.h:48
DnsRecord & WithValue(ValueT &&value)
Definition DnsRecord.h:75
AWS_WORKMAIL_API DnsRecord(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetType() const
Definition DnsRecord.h:45
void SetValue(ValueT &&value)
Definition DnsRecord.h:73
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue