AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
DnsRecord.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/DnsRecordPurpose.h>
9#include <aws/amplifygen3/model/DnsRecordType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyGen3 {
22namespace Model {
23
30class DnsRecord {
31 public:
32 AWS_AMPLIFYGEN3_API DnsRecord() = default;
33 AWS_AMPLIFYGEN3_API DnsRecord(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYGEN3_API DnsRecord& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline DnsRecordType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(DnsRecordType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 DnsRecord& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetValue() const { return m_value; }
76 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
77 template <typename ValueT = Aws::String>
78 void SetValue(ValueT&& value) {
79 m_valueHasBeenSet = true;
80 m_value = std::forward<ValueT>(value);
81 }
82 template <typename ValueT = Aws::String>
83 DnsRecord& WithValue(ValueT&& value) {
84 SetValue(std::forward<ValueT>(value));
85 return *this;
86 }
88
90
93 inline DnsRecordPurpose GetPurpose() const { return m_purpose; }
94 inline bool PurposeHasBeenSet() const { return m_purposeHasBeenSet; }
95 inline void SetPurpose(DnsRecordPurpose value) {
96 m_purposeHasBeenSet = true;
97 m_purpose = value;
98 }
100 SetPurpose(value);
101 return *this;
102 }
104 private:
106
107 Aws::String m_name;
108
109 Aws::String m_value;
110
112 bool m_typeHasBeenSet = false;
113 bool m_nameHasBeenSet = false;
114 bool m_valueHasBeenSet = false;
115 bool m_purposeHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace AmplifyGen3
120} // namespace Aws
DnsRecord & WithType(DnsRecordType value)
Definition DnsRecord.h:47
void SetValue(ValueT &&value)
Definition DnsRecord.h:78
const Aws::String & GetName() const
Definition DnsRecord.h:57
DnsRecord & WithName(NameT &&value)
Definition DnsRecord.h:65
DnsRecord & WithPurpose(DnsRecordPurpose value)
Definition DnsRecord.h:99
AWS_AMPLIFYGEN3_API DnsRecord()=default
void SetName(NameT &&value)
Definition DnsRecord.h:60
const Aws::String & GetValue() const
Definition DnsRecord.h:75
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPurpose(DnsRecordPurpose value)
Definition DnsRecord.h:95
AWS_AMPLIFYGEN3_API DnsRecord(Aws::Utils::Json::JsonView jsonValue)
DnsRecordType GetType() const
Definition DnsRecord.h:41
void SetType(DnsRecordType value)
Definition DnsRecord.h:43
DnsRecord & WithValue(ValueT &&value)
Definition DnsRecord.h:83
DnsRecordPurpose GetPurpose() const
Definition DnsRecord.h:93
AWS_AMPLIFYGEN3_API DnsRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue