AWS SDK for C++  1.9.123
AWS SDK for C++
Nameserver.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Route53Domains
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetName() const{ return m_name; }
46 
51  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 
57  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
58 
63  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 
69  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
70 
75  inline Nameserver& WithName(const Aws::String& value) { SetName(value); return *this;}
76 
81  inline Nameserver& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 
87  inline Nameserver& WithName(const char* value) { SetName(value); return *this;}
88 
89 
97  inline const Aws::Vector<Aws::String>& GetGlueIps() const{ return m_glueIps; }
98 
106  inline bool GlueIpsHasBeenSet() const { return m_glueIpsHasBeenSet; }
107 
115  inline void SetGlueIps(const Aws::Vector<Aws::String>& value) { m_glueIpsHasBeenSet = true; m_glueIps = value; }
116 
124  inline void SetGlueIps(Aws::Vector<Aws::String>&& value) { m_glueIpsHasBeenSet = true; m_glueIps = std::move(value); }
125 
133  inline Nameserver& WithGlueIps(const Aws::Vector<Aws::String>& value) { SetGlueIps(value); return *this;}
134 
142  inline Nameserver& WithGlueIps(Aws::Vector<Aws::String>&& value) { SetGlueIps(std::move(value)); return *this;}
143 
151  inline Nameserver& AddGlueIps(const Aws::String& value) { m_glueIpsHasBeenSet = true; m_glueIps.push_back(value); return *this; }
152 
160  inline Nameserver& AddGlueIps(Aws::String&& value) { m_glueIpsHasBeenSet = true; m_glueIps.push_back(std::move(value)); return *this; }
161 
169  inline Nameserver& AddGlueIps(const char* value) { m_glueIpsHasBeenSet = true; m_glueIps.push_back(value); return *this; }
170 
171  private:
172 
173  Aws::String m_name;
174  bool m_nameHasBeenSet;
175 
176  Aws::Vector<Aws::String> m_glueIps;
177  bool m_glueIpsHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace Route53Domains
182 } // namespace Aws
Aws::Route53Domains::Model::Nameserver::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Route53Domains::Model::Nameserver::SetGlueIps
void SetGlueIps(Aws::Vector< Aws::String > &&value)
Definition: Nameserver.h:124
Aws::Route53Domains::Model::Nameserver::GetGlueIps
const Aws::Vector< Aws::String > & GetGlueIps() const
Definition: Nameserver.h:97
Aws::Route53Domains::Model::Nameserver::WithName
Nameserver & WithName(Aws::String &&value)
Definition: Nameserver.h:81
Aws::Route53Domains::Model::Nameserver::WithGlueIps
Nameserver & WithGlueIps(const Aws::Vector< Aws::String > &value)
Definition: Nameserver.h:133
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Route53Domains::Model::Nameserver::SetName
void SetName(const Aws::String &value)
Definition: Nameserver.h:57
AWS_ROUTE53DOMAINS_API
#define AWS_ROUTE53DOMAINS_API
Definition: Route53Domains_EXPORTS.h:28
Aws::Route53Domains::Model::Nameserver::SetName
void SetName(Aws::String &&value)
Definition: Nameserver.h:63
AWSVector.h
Aws::Route53Domains::Model::Nameserver::SetGlueIps
void SetGlueIps(const Aws::Vector< Aws::String > &value)
Definition: Nameserver.h:115
Aws::Route53Domains::Model::Nameserver::AddGlueIps
Nameserver & AddGlueIps(const Aws::String &value)
Definition: Nameserver.h:151
Aws::Route53Domains::Model::Nameserver::Nameserver
Nameserver()
Aws::Route53Domains::Model::Nameserver::WithGlueIps
Nameserver & WithGlueIps(Aws::Vector< Aws::String > &&value)
Definition: Nameserver.h:142
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Route53Domains::Model::Nameserver::AddGlueIps
Nameserver & AddGlueIps(const char *value)
Definition: Nameserver.h:169
Aws::Route53Domains::Model::Nameserver
Definition: Nameserver.h:33
Aws::Route53Domains::Model::Nameserver::SetName
void SetName(const char *value)
Definition: Nameserver.h:69
Aws::Route53Domains::Model::Nameserver::GlueIpsHasBeenSet
bool GlueIpsHasBeenSet() const
Definition: Nameserver.h:106
Aws::Route53Domains::Model::Nameserver::operator=
Nameserver & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Route53Domains_EXPORTS.h
Aws::Route53Domains::Model::Nameserver::Nameserver
Nameserver(Aws::Utils::Json::JsonView jsonValue)
Aws::Route53Domains::Model::Nameserver::AddGlueIps
Nameserver & AddGlueIps(Aws::String &&value)
Definition: Nameserver.h:160
Aws::Route53Domains::Model::Nameserver::GetName
const Aws::String & GetName() const
Definition: Nameserver.h:45
Aws::Route53Domains::Model::Nameserver::WithName
Nameserver & WithName(const char *value)
Definition: Nameserver.h:87
Aws::Route53Domains::Model::Nameserver::WithName
Nameserver & WithName(const Aws::String &value)
Definition: Nameserver.h:75
Aws::Route53Domains::Model::Nameserver::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Nameserver.h:51