AWS SDK for C++  0.12.9
AWS SDK for C++
HostedZone.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace Route53
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  HostedZone();
41  HostedZone(const Aws::Utils::Xml::XmlNode& xmlNode);
42  HostedZone& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
49  inline const Aws::String& GetId() const{ return m_id; }
50 
54  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 
59  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
60 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
69  inline HostedZone& WithId(const Aws::String& value) { SetId(value); return *this;}
70 
74  inline HostedZone& WithId(Aws::String&& value) { SetId(value); return *this;}
75 
79  inline HostedZone& WithId(const char* value) { SetId(value); return *this;}
80 
91  inline const Aws::String& GetName() const{ return m_name; }
92 
103  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 
115  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
116 
127  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
128 
139  inline HostedZone& WithName(const Aws::String& value) { SetName(value); return *this;}
140 
151  inline HostedZone& WithName(Aws::String&& value) { SetName(value); return *this;}
152 
163  inline HostedZone& WithName(const char* value) { SetName(value); return *this;}
164 
168  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
169 
173  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
174 
178  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
179 
183  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
184 
188  inline HostedZone& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
189 
193  inline HostedZone& WithCallerReference(Aws::String&& value) { SetCallerReference(value); return *this;}
194 
198  inline HostedZone& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
199 
203  inline const HostedZoneConfig& GetConfig() const{ return m_config; }
204 
208  inline void SetConfig(const HostedZoneConfig& value) { m_configHasBeenSet = true; m_config = value; }
209 
213  inline void SetConfig(HostedZoneConfig&& value) { m_configHasBeenSet = true; m_config = value; }
214 
218  inline HostedZone& WithConfig(const HostedZoneConfig& value) { SetConfig(value); return *this;}
219 
223  inline HostedZone& WithConfig(HostedZoneConfig&& value) { SetConfig(value); return *this;}
224 
228  inline long long GetResourceRecordSetCount() const{ return m_resourceRecordSetCount; }
229 
233  inline void SetResourceRecordSetCount(long long value) { m_resourceRecordSetCountHasBeenSet = true; m_resourceRecordSetCount = value; }
234 
238  inline HostedZone& WithResourceRecordSetCount(long long value) { SetResourceRecordSetCount(value); return *this;}
239 
240  private:
241  Aws::String m_id;
242  bool m_idHasBeenSet;
243  Aws::String m_name;
244  bool m_nameHasBeenSet;
245  Aws::String m_callerReference;
246  bool m_callerReferenceHasBeenSet;
247  HostedZoneConfig m_config;
248  bool m_configHasBeenSet;
249  long long m_resourceRecordSetCount;
250  bool m_resourceRecordSetCountHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace Route53
255 } // namespace Aws
void SetConfig(HostedZoneConfig &&value)
Definition: HostedZone.h:213
void SetId(const char *value)
Definition: HostedZone.h:64
void SetCallerReference(const Aws::String &value)
Definition: HostedZone.h:173
void SetName(const Aws::String &value)
Definition: HostedZone.h:103
const Aws::String & GetName() const
Definition: HostedZone.h:91
HostedZone & WithCallerReference(const Aws::String &value)
Definition: HostedZone.h:188
HostedZone & WithResourceRecordSetCount(long long value)
Definition: HostedZone.h:238
void SetId(const Aws::String &value)
Definition: HostedZone.h:54
const Aws::String & GetId() const
Definition: HostedZone.h:49
HostedZone & WithName(Aws::String &&value)
Definition: HostedZone.h:151
HostedZone & WithConfig(const HostedZoneConfig &value)
Definition: HostedZone.h:218
long long GetResourceRecordSetCount() const
Definition: HostedZone.h:228
void SetCallerReference(const char *value)
Definition: HostedZone.h:183
HostedZone & WithName(const Aws::String &value)
Definition: HostedZone.h:139
HostedZone & WithCallerReference(const char *value)
Definition: HostedZone.h:198
void SetResourceRecordSetCount(long long value)
Definition: HostedZone.h:233
HostedZone & WithId(const char *value)
Definition: HostedZone.h:79
HostedZone & WithConfig(HostedZoneConfig &&value)
Definition: HostedZone.h:223
HostedZone & WithId(const Aws::String &value)
Definition: HostedZone.h:69
HostedZone & WithName(const char *value)
Definition: HostedZone.h:163
HostedZone & WithCallerReference(Aws::String &&value)
Definition: HostedZone.h:193
void SetConfig(const HostedZoneConfig &value)
Definition: HostedZone.h:208
const HostedZoneConfig & GetConfig() const
Definition: HostedZone.h:203
HostedZone & WithId(Aws::String &&value)
Definition: HostedZone.h:74
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetId(Aws::String &&value)
Definition: HostedZone.h:59
void SetName(Aws::String &&value)
Definition: HostedZone.h:115
void SetCallerReference(Aws::String &&value)
Definition: HostedZone.h:178
void SetName(const char *value)
Definition: HostedZone.h:127
JSON (JavaScript Object Notation).
const Aws::String & GetCallerReference() const
Definition: HostedZone.h:168