AWS SDK for C++  1.9.107
AWS SDK for C++
UpdateDomainNameserversRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Route53Domains
17 {
18 namespace Model
19 {
20 
33  {
34  public:
36 
37  // Service request name is the Operation name which will send this request out,
38  // each operation should has unique request name, so that we can get operation's name from this request.
39  // Note: this is not true for response, multiple operations may have the same response name,
40  // so we can not get operation's name from response.
41  inline virtual const char* GetServiceRequestName() const override { return "UpdateDomainNameservers"; }
42 
43  Aws::String SerializePayload() const override;
44 
46 
47 
51  inline const Aws::String& GetDomainName() const{ return m_domainName; }
52 
56  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
57 
61  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
62 
66  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
67 
71  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
72 
76  inline UpdateDomainNameserversRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
77 
81  inline UpdateDomainNameserversRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
82 
86  inline UpdateDomainNameserversRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
87 
88 
92  inline const Aws::Vector<Nameserver>& GetNameservers() const{ return m_nameservers; }
93 
97  inline bool NameserversHasBeenSet() const { return m_nameserversHasBeenSet; }
98 
102  inline void SetNameservers(const Aws::Vector<Nameserver>& value) { m_nameserversHasBeenSet = true; m_nameservers = value; }
103 
107  inline void SetNameservers(Aws::Vector<Nameserver>&& value) { m_nameserversHasBeenSet = true; m_nameservers = std::move(value); }
108 
112  inline UpdateDomainNameserversRequest& WithNameservers(const Aws::Vector<Nameserver>& value) { SetNameservers(value); return *this;}
113 
117  inline UpdateDomainNameserversRequest& WithNameservers(Aws::Vector<Nameserver>&& value) { SetNameservers(std::move(value)); return *this;}
118 
122  inline UpdateDomainNameserversRequest& AddNameservers(const Nameserver& value) { m_nameserversHasBeenSet = true; m_nameservers.push_back(value); return *this; }
123 
127  inline UpdateDomainNameserversRequest& AddNameservers(Nameserver&& value) { m_nameserversHasBeenSet = true; m_nameservers.push_back(std::move(value)); return *this; }
128 
129  private:
130 
131  Aws::String m_domainName;
132  bool m_domainNameHasBeenSet;
133 
134  Aws::Vector<Nameserver> m_nameservers;
135  bool m_nameserversHasBeenSet;
136  };
137 
138 } // namespace Model
139 } // namespace Route53Domains
140 } // namespace Aws
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::WithDomainName
UpdateDomainNameserversRequest & WithDomainName(const char *value)
Definition: UpdateDomainNameserversRequest.h:86
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::SetNameservers
void SetNameservers(Aws::Vector< Nameserver > &&value)
Definition: UpdateDomainNameserversRequest.h:107
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::NameserversHasBeenSet
bool NameserversHasBeenSet() const
Definition: UpdateDomainNameserversRequest.h:97
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWS_ROUTE53DOMAINS_API
#define AWS_ROUTE53DOMAINS_API
Definition: Route53Domains_EXPORTS.h:28
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::GetNameservers
const Aws::Vector< Nameserver > & GetNameservers() const
Definition: UpdateDomainNameserversRequest.h:92
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::WithNameservers
UpdateDomainNameserversRequest & WithNameservers(const Aws::Vector< Nameserver > &value)
Definition: UpdateDomainNameserversRequest.h:112
AWSVector.h
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::SetNameservers
void SetNameservers(const Aws::Vector< Nameserver > &value)
Definition: UpdateDomainNameserversRequest.h:102
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: UpdateDomainNameserversRequest.h:66
Aws::Route53Domains::Model::UpdateDomainNameserversRequest
Definition: UpdateDomainNameserversRequest.h:33
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDomainNameserversRequest.h:41
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::WithNameservers
UpdateDomainNameserversRequest & WithNameservers(Aws::Vector< Nameserver > &&value)
Definition: UpdateDomainNameserversRequest.h:117
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::AddNameservers
UpdateDomainNameserversRequest & AddNameservers(const Nameserver &value)
Definition: UpdateDomainNameserversRequest.h:122
AWSString.h
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: UpdateDomainNameserversRequest.h:61
Aws::Route53Domains::Model::Nameserver
Definition: Nameserver.h:33
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Route53Domains::Route53DomainsRequest
Definition: Route53DomainsRequest.h:17
Nameserver.h
Route53DomainsRequest.h
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: UpdateDomainNameserversRequest.h:51
Aws
Definition: AccessManagementClient.h:15
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::WithDomainName
UpdateDomainNameserversRequest & WithDomainName(Aws::String &&value)
Definition: UpdateDomainNameserversRequest.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Route53Domains_EXPORTS.h
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::UpdateDomainNameserversRequest
UpdateDomainNameserversRequest()
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::SetDomainName
void SetDomainName(const char *value)
Definition: UpdateDomainNameserversRequest.h:71
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::AddNameservers
UpdateDomainNameserversRequest & AddNameservers(Nameserver &&value)
Definition: UpdateDomainNameserversRequest.h:127
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::WithDomainName
UpdateDomainNameserversRequest & WithDomainName(const Aws::String &value)
Definition: UpdateDomainNameserversRequest.h:76
Aws::Route53Domains::Model::UpdateDomainNameserversRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: UpdateDomainNameserversRequest.h:56