AWS SDK for C++  1.8.71
AWS SDK for C++
RenewDomainRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Route53Domains
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "RenewDomain"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
40 
44  inline const Aws::String& GetDomainName() const{ return m_domainName; }
45 
49  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
50 
54  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
55 
59  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
60 
64  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
65 
69  inline RenewDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
70 
74  inline RenewDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
75 
79  inline RenewDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
80 
81 
90  inline int GetDurationInYears() const{ return m_durationInYears; }
91 
100  inline bool DurationInYearsHasBeenSet() const { return m_durationInYearsHasBeenSet; }
101 
110  inline void SetDurationInYears(int value) { m_durationInYearsHasBeenSet = true; m_durationInYears = value; }
111 
120  inline RenewDomainRequest& WithDurationInYears(int value) { SetDurationInYears(value); return *this;}
121 
122 
127  inline int GetCurrentExpiryYear() const{ return m_currentExpiryYear; }
128 
133  inline bool CurrentExpiryYearHasBeenSet() const { return m_currentExpiryYearHasBeenSet; }
134 
139  inline void SetCurrentExpiryYear(int value) { m_currentExpiryYearHasBeenSet = true; m_currentExpiryYear = value; }
140 
145  inline RenewDomainRequest& WithCurrentExpiryYear(int value) { SetCurrentExpiryYear(value); return *this;}
146 
147  private:
148 
149  Aws::String m_domainName;
150  bool m_domainNameHasBeenSet;
151 
152  int m_durationInYears;
153  bool m_durationInYearsHasBeenSet;
154 
155  int m_currentExpiryYear;
156  bool m_currentExpiryYearHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace Route53Domains
161 } // namespace Aws
RenewDomainRequest & WithDomainName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
RenewDomainRequest & WithDomainName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
RenewDomainRequest & WithCurrentExpiryYear(int value)
#define AWS_ROUTE53DOMAINS_API
void SetDomainName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RenewDomainRequest & WithDomainName(const char *value)
RenewDomainRequest & WithDurationInYears(int value)