AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
48 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
49 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
50 inline DnsRecord& WithType(const Aws::String& value) { SetType(value); return *this;}
51 inline DnsRecord& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
52 inline DnsRecord& WithType(const char* value) { SetType(value); return *this;}
54
56
59 inline const Aws::String& GetHostname() const{ return m_hostname; }
60 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
61 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
62 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
63 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
64 inline DnsRecord& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
65 inline DnsRecord& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
66 inline DnsRecord& WithHostname(const char* value) { SetHostname(value); return *this;}
68
70
74 inline const Aws::String& GetValue() const{ return m_value; }
75 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
76 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
77 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
78 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
79 inline DnsRecord& WithValue(const Aws::String& value) { SetValue(value); return *this;}
80 inline DnsRecord& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
81 inline DnsRecord& WithValue(const char* value) { SetValue(value); return *this;}
83 private:
84
85 Aws::String m_type;
86 bool m_typeHasBeenSet = false;
87
88 Aws::String m_hostname;
89 bool m_hostnameHasBeenSet = false;
90
91 Aws::String m_value;
92 bool m_valueHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace WorkMail
97} // namespace Aws
AWS_WORKMAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHostname(const Aws::String &value)
Definition DnsRecord.h:61
DnsRecord & WithValue(const char *value)
Definition DnsRecord.h:81
DnsRecord & WithValue(Aws::String &&value)
Definition DnsRecord.h:80
DnsRecord & WithType(const Aws::String &value)
Definition DnsRecord.h:50
const Aws::String & GetValue() const
Definition DnsRecord.h:74
void SetHostname(Aws::String &&value)
Definition DnsRecord.h:62
DnsRecord & WithHostname(const char *value)
Definition DnsRecord.h:66
void SetHostname(const char *value)
Definition DnsRecord.h:63
const Aws::String & GetHostname() const
Definition DnsRecord.h:59
void SetValue(Aws::String &&value)
Definition DnsRecord.h:77
void SetValue(const Aws::String &value)
Definition DnsRecord.h:76
AWS_WORKMAIL_API DnsRecord()
AWS_WORKMAIL_API DnsRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const char *value)
Definition DnsRecord.h:78
DnsRecord & WithType(const char *value)
Definition DnsRecord.h:52
void SetType(const Aws::String &value)
Definition DnsRecord.h:47
DnsRecord & WithType(Aws::String &&value)
Definition DnsRecord.h:51
AWS_WORKMAIL_API DnsRecord(Aws::Utils::Json::JsonView jsonValue)
DnsRecord & WithHostname(const Aws::String &value)
Definition DnsRecord.h:64
void SetType(Aws::String &&value)
Definition DnsRecord.h:48
void SetType(const char *value)
Definition DnsRecord.h:49
DnsRecord & WithHostname(Aws::String &&value)
Definition DnsRecord.h:65
const Aws::String & GetType() const
Definition DnsRecord.h:45
DnsRecord & WithValue(const Aws::String &value)
Definition DnsRecord.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue