AWS SDK for C++  0.14.3
AWS SDK for C++
DelegationSet.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  DelegationSet();
42  DelegationSet& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
46 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
49 
50  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 
52 
53  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
54 
55 
56  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 
58 
59  inline DelegationSet& WithId(const Aws::String& value) { SetId(value); return *this;}
60 
61 
62  inline DelegationSet& WithId(Aws::String&& value) { SetId(value); return *this;}
63 
64 
65  inline DelegationSet& WithId(const char* value) { SetId(value); return *this;}
66 
67 
68  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
69 
70 
71  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
72 
73 
74  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
75 
76 
77  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
78 
79 
80  inline DelegationSet& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
81 
82 
83  inline DelegationSet& WithCallerReference(Aws::String&& value) { SetCallerReference(value); return *this;}
84 
85 
86  inline DelegationSet& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
87 
94  inline const Aws::Vector<Aws::String>& GetNameServers() const{ return m_nameServers; }
95 
102  inline void SetNameServers(const Aws::Vector<Aws::String>& value) { m_nameServersHasBeenSet = true; m_nameServers = value; }
103 
110  inline void SetNameServers(Aws::Vector<Aws::String>&& value) { m_nameServersHasBeenSet = true; m_nameServers = value; }
111 
118  inline DelegationSet& WithNameServers(const Aws::Vector<Aws::String>& value) { SetNameServers(value); return *this;}
119 
126  inline DelegationSet& WithNameServers(Aws::Vector<Aws::String>&& value) { SetNameServers(value); return *this;}
127 
134  inline DelegationSet& AddNameServers(const Aws::String& value) { m_nameServersHasBeenSet = true; m_nameServers.push_back(value); return *this; }
135 
142  inline DelegationSet& AddNameServers(Aws::String&& value) { m_nameServersHasBeenSet = true; m_nameServers.push_back(value); return *this; }
143 
150  inline DelegationSet& AddNameServers(const char* value) { m_nameServersHasBeenSet = true; m_nameServers.push_back(value); return *this; }
151 
152  private:
153  Aws::String m_id;
154  bool m_idHasBeenSet;
155  Aws::String m_callerReference;
156  bool m_callerReferenceHasBeenSet;
157  Aws::Vector<Aws::String> m_nameServers;
158  bool m_nameServersHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace Route53
163 } // namespace Aws
const Aws::String & GetCallerReference() const
Definition: DelegationSet.h:68
void SetNameServers(Aws::Vector< Aws::String > &&value)
const Aws::String & GetId() const
Definition: DelegationSet.h:47
DelegationSet & WithId(const Aws::String &value)
Definition: DelegationSet.h:59
DelegationSet & WithId(Aws::String &&value)
Definition: DelegationSet.h:62
void SetCallerReference(const char *value)
Definition: DelegationSet.h:77
DelegationSet & WithNameServers(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DelegationSet & WithCallerReference(Aws::String &&value)
Definition: DelegationSet.h:83
void SetCallerReference(Aws::String &&value)
Definition: DelegationSet.h:74
DelegationSet & AddNameServers(const Aws::String &value)
void SetId(const char *value)
Definition: DelegationSet.h:56
void SetNameServers(const Aws::Vector< Aws::String > &value)
DelegationSet & WithCallerReference(const Aws::String &value)
Definition: DelegationSet.h:80
DelegationSet & AddNameServers(const char *value)
void SetCallerReference(const Aws::String &value)
Definition: DelegationSet.h:71
void SetId(const Aws::String &value)
Definition: DelegationSet.h:50
void SetId(Aws::String &&value)
Definition: DelegationSet.h:53
const Aws::Vector< Aws::String > & GetNameServers() const
Definition: DelegationSet.h:94
DelegationSet & WithNameServers(const Aws::Vector< Aws::String > &value)
#define AWS_ROUTE53_API
DelegationSet & WithId(const char *value)
Definition: DelegationSet.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DelegationSet & WithCallerReference(const char *value)
Definition: DelegationSet.h:86
DelegationSet & AddNameServers(Aws::String &&value)
JSON (JavaScript Object Notation).