AWS SDK for C++  1.8.71
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 
45  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
UpdateDomainNameserversRequest & WithDomainName(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
UpdateDomainNameserversRequest & WithNameservers(const Aws::Vector< Nameserver > &value)
UpdateDomainNameserversRequest & WithDomainName(const char *value)
UpdateDomainNameserversRequest & WithNameservers(Aws::Vector< Nameserver > &&value)
#define AWS_ROUTE53DOMAINS_API
UpdateDomainNameserversRequest & AddNameservers(Nameserver &&value)
UpdateDomainNameserversRequest & AddNameservers(const Nameserver &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateDomainNameserversRequest & WithDomainName(const Aws::String &value)