AWS SDK for C++  0.14.3
AWS SDK for C++
Nameserver.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 Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace Route53Domains
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Nameserver();
41  Nameserver(const Aws::Utils::Json::JsonValue& jsonValue);
42  Nameserver& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
50  inline const Aws::String& GetName() const{ return m_name; }
51 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
64  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
65 
71  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
72 
78  inline Nameserver& WithName(const Aws::String& value) { SetName(value); return *this;}
79 
85  inline Nameserver& WithName(Aws::String&& value) { SetName(value); return *this;}
86 
92  inline Nameserver& WithName(const char* value) { SetName(value); return *this;}
93 
102  inline const Aws::Vector<Aws::String>& GetGlueIps() const{ return m_glueIps; }
103 
112  inline void SetGlueIps(const Aws::Vector<Aws::String>& value) { m_glueIpsHasBeenSet = true; m_glueIps = value; }
113 
122  inline void SetGlueIps(Aws::Vector<Aws::String>&& value) { m_glueIpsHasBeenSet = true; m_glueIps = value; }
123 
132  inline Nameserver& WithGlueIps(const Aws::Vector<Aws::String>& value) { SetGlueIps(value); return *this;}
133 
142  inline Nameserver& WithGlueIps(Aws::Vector<Aws::String>&& value) { SetGlueIps(value); return *this;}
143 
152  inline Nameserver& AddGlueIps(const Aws::String& value) { m_glueIpsHasBeenSet = true; m_glueIps.push_back(value); return *this; }
153 
162  inline Nameserver& AddGlueIps(Aws::String&& value) { m_glueIpsHasBeenSet = true; m_glueIps.push_back(value); return *this; }
163 
172  inline Nameserver& AddGlueIps(const char* value) { m_glueIpsHasBeenSet = true; m_glueIps.push_back(value); return *this; }
173 
174  private:
175  Aws::String m_name;
176  bool m_nameHasBeenSet;
177  Aws::Vector<Aws::String> m_glueIps;
178  bool m_glueIpsHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace Route53Domains
183 } // namespace Aws
Nameserver & WithName(const Aws::String &value)
Definition: Nameserver.h:78
void SetName(Aws::String &&value)
Definition: Nameserver.h:64
void SetName(const Aws::String &value)
Definition: Nameserver.h:57
Nameserver & WithGlueIps(Aws::Vector< Aws::String > &&value)
Definition: Nameserver.h:142
Nameserver & AddGlueIps(Aws::String &&value)
Definition: Nameserver.h:162
void SetGlueIps(Aws::Vector< Aws::String > &&value)
Definition: Nameserver.h:122
void SetGlueIps(const Aws::Vector< Aws::String > &value)
Definition: Nameserver.h:112
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Nameserver & AddGlueIps(const char *value)
Definition: Nameserver.h:172
Nameserver & WithName(Aws::String &&value)
Definition: Nameserver.h:85
#define AWS_ROUTE53DOMAINS_API
const Aws::String & GetName() const
Definition: Nameserver.h:50
Nameserver & WithName(const char *value)
Definition: Nameserver.h:92
Nameserver & WithGlueIps(const Aws::Vector< Aws::String > &value)
Definition: Nameserver.h:132
const Aws::Vector< Aws::String > & GetGlueIps() const
Definition: Nameserver.h:102
void SetName(const char *value)
Definition: Nameserver.h:71
Nameserver & AddGlueIps(const Aws::String &value)
Definition: Nameserver.h:152
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).