AWS SDK for C++  0.12.9
AWS SDK for C++
HostedZoneConfig.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace Route53
29 {
30 namespace Model
31 {
32 
40  {
41  public:
44  HostedZoneConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
53  inline const Aws::String& GetComment() const{ return m_comment; }
54 
60  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
61 
67  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
68 
74  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
75 
81  inline HostedZoneConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
82 
88  inline HostedZoneConfig& WithComment(Aws::String&& value) { SetComment(value); return *this;}
89 
95  inline HostedZoneConfig& WithComment(const char* value) { SetComment(value); return *this;}
96 
97 
98  inline bool GetPrivateZone() const{ return m_privateZone; }
99 
100 
101  inline void SetPrivateZone(bool value) { m_privateZoneHasBeenSet = true; m_privateZone = value; }
102 
103 
104  inline HostedZoneConfig& WithPrivateZone(bool value) { SetPrivateZone(value); return *this;}
105 
106  private:
107  Aws::String m_comment;
108  bool m_commentHasBeenSet;
109  bool m_privateZone;
110  bool m_privateZoneHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace Route53
115 } // namespace Aws
HostedZoneConfig & WithPrivateZone(bool value)
void SetComment(const Aws::String &value)
const Aws::String & GetComment() const
HostedZoneConfig & WithComment(const char *value)
HostedZoneConfig & WithComment(Aws::String &&value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetComment(Aws::String &&value)
HostedZoneConfig & WithComment(const Aws::String &value)
JSON (JavaScript Object Notation).