AWS SDK for C++  1.9.157
AWS SDK for C++
DnsRecord.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace WorkMail
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
44  inline const Aws::String& GetType() const{ return m_type; }
45 
50  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 
56  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
57 
62  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 
68  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
69 
74  inline DnsRecord& WithType(const Aws::String& value) { SetType(value); return *this;}
75 
80  inline DnsRecord& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
81 
86  inline DnsRecord& WithType(const char* value) { SetType(value); return *this;}
87 
88 
92  inline const Aws::String& GetHostname() const{ return m_hostname; }
93 
97  inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
98 
102  inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
103 
107  inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
108 
112  inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
113 
117  inline DnsRecord& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
118 
122  inline DnsRecord& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
123 
127  inline DnsRecord& WithHostname(const char* value) { SetHostname(value); return *this;}
128 
129 
134  inline const Aws::String& GetValue() const{ return m_value; }
135 
140  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
141 
146  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
147 
152  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
153 
158  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
159 
164  inline DnsRecord& WithValue(const Aws::String& value) { SetValue(value); return *this;}
165 
170  inline DnsRecord& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
171 
176  inline DnsRecord& WithValue(const char* value) { SetValue(value); return *this;}
177 
178  private:
179 
180  Aws::String m_type;
181  bool m_typeHasBeenSet;
182 
183  Aws::String m_hostname;
184  bool m_hostnameHasBeenSet;
185 
186  Aws::String m_value;
187  bool m_valueHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace WorkMail
192 } // namespace Aws
Aws::WorkMail::Model::DnsRecord::SetValue
void SetValue(Aws::String &&value)
Definition: DnsRecord.h:152
Aws::WorkMail::Model::DnsRecord::WithType
DnsRecord & WithType(const char *value)
Definition: DnsRecord.h:86
Aws::WorkMail::Model::DnsRecord::SetValue
void SetValue(const char *value)
Definition: DnsRecord.h:158
Aws::WorkMail::Model::DnsRecord::WithHostname
DnsRecord & WithHostname(const Aws::String &value)
Definition: DnsRecord.h:117
Aws::WorkMail::Model::DnsRecord::WithType
DnsRecord & WithType(const Aws::String &value)
Definition: DnsRecord.h:74
WorkMail_EXPORTS.h
Aws::WorkMail::Model::DnsRecord::WithHostname
DnsRecord & WithHostname(const char *value)
Definition: DnsRecord.h:127
Aws::WorkMail::Model::DnsRecord::GetValue
const Aws::String & GetValue() const
Definition: DnsRecord.h:134
Aws::WorkMail::Model::DnsRecord::SetHostname
void SetHostname(Aws::String &&value)
Definition: DnsRecord.h:107
Aws::WorkMail::Model::DnsRecord::WithValue
DnsRecord & WithValue(const Aws::String &value)
Definition: DnsRecord.h:164
Aws::WorkMail::Model::DnsRecord::WithHostname
DnsRecord & WithHostname(Aws::String &&value)
Definition: DnsRecord.h:122
Aws::WorkMail::Model::DnsRecord::DnsRecord
DnsRecord()
Aws::WorkMail::Model::DnsRecord::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::WorkMail::Model::DnsRecord::operator=
DnsRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::DnsRecord::SetHostname
void SetHostname(const Aws::String &value)
Definition: DnsRecord.h:102
Aws::WorkMail::Model::DnsRecord::SetValue
void SetValue(const Aws::String &value)
Definition: DnsRecord.h:146
Aws::WorkMail::Model::DnsRecord::WithValue
DnsRecord & WithValue(const char *value)
Definition: DnsRecord.h:176
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::WorkMail::Model::DnsRecord::WithType
DnsRecord & WithType(Aws::String &&value)
Definition: DnsRecord.h:80
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::WorkMail::Model::DnsRecord::HostnameHasBeenSet
bool HostnameHasBeenSet() const
Definition: DnsRecord.h:97
Aws::WorkMail::Model::DnsRecord::GetType
const Aws::String & GetType() const
Definition: DnsRecord.h:44
Aws::WorkMail::Model::DnsRecord::WithValue
DnsRecord & WithValue(Aws::String &&value)
Definition: DnsRecord.h:170
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::DnsRecord::SetHostname
void SetHostname(const char *value)
Definition: DnsRecord.h:112
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::DnsRecord::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: DnsRecord.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::DnsRecord::SetType
void SetType(Aws::String &&value)
Definition: DnsRecord.h:62
Aws::WorkMail::Model::DnsRecord::GetHostname
const Aws::String & GetHostname() const
Definition: DnsRecord.h:92
Aws::WorkMail::Model::DnsRecord::DnsRecord
DnsRecord(Aws::Utils::Json::JsonView jsonValue)
Aws::WorkMail::Model::DnsRecord::SetType
void SetType(const char *value)
Definition: DnsRecord.h:68
Aws::WorkMail::Model::DnsRecord::SetType
void SetType(const Aws::String &value)
Definition: DnsRecord.h:56
Aws::WorkMail::Model::DnsRecord::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: DnsRecord.h:50
Aws::WorkMail::Model::DnsRecord
Definition: DnsRecord.h:32