AWS SDK for C++  1.9.20
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 
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
Aws::Route53Domains::Model::RenewDomainRequest::WithDomainName
RenewDomainRequest & WithDomainName(const Aws::String &value)
Definition: RenewDomainRequest.h:69
Aws::Route53Domains::Model::RenewDomainRequest::SetCurrentExpiryYear
void SetCurrentExpiryYear(int value)
Definition: RenewDomainRequest.h:139
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Route53Domains::Model::RenewDomainRequest::SetDurationInYears
void SetDurationInYears(int value)
Definition: RenewDomainRequest.h:110
Aws::Route53Domains::Model::RenewDomainRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Route53Domains::Model::RenewDomainRequest::DurationInYearsHasBeenSet
bool DurationInYearsHasBeenSet() const
Definition: RenewDomainRequest.h:100
Aws::Route53Domains::Model::RenewDomainRequest::WithDomainName
RenewDomainRequest & WithDomainName(const char *value)
Definition: RenewDomainRequest.h:79
Aws::Route53Domains::Model::RenewDomainRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: RenewDomainRequest.h:54
AWS_ROUTE53DOMAINS_API
#define AWS_ROUTE53DOMAINS_API
Definition: Route53Domains_EXPORTS.h:28
Aws::Route53Domains::Model::RenewDomainRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Route53Domains::Model::RenewDomainRequest::CurrentExpiryYearHasBeenSet
bool CurrentExpiryYearHasBeenSet() const
Definition: RenewDomainRequest.h:133
Aws::Route53Domains::Model::RenewDomainRequest::WithDurationInYears
RenewDomainRequest & WithDurationInYears(int value)
Definition: RenewDomainRequest.h:120
Aws::Route53Domains::Model::RenewDomainRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: RenewDomainRequest.h:59
Aws::Route53Domains::Model::RenewDomainRequest
Definition: RenewDomainRequest.h:26
AWSString.h
Aws::Route53Domains::Model::RenewDomainRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RenewDomainRequest.h:34
Aws::Route53Domains::Route53DomainsRequest
Definition: Route53DomainsRequest.h:17
Aws::Route53Domains::Model::RenewDomainRequest::GetCurrentExpiryYear
int GetCurrentExpiryYear() const
Definition: RenewDomainRequest.h:127
Aws::Route53Domains::Model::RenewDomainRequest::WithDomainName
RenewDomainRequest & WithDomainName(Aws::String &&value)
Definition: RenewDomainRequest.h:74
Route53DomainsRequest.h
Aws::Route53Domains::Model::RenewDomainRequest::GetDurationInYears
int GetDurationInYears() const
Definition: RenewDomainRequest.h:90
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::RenewDomainRequest::WithCurrentExpiryYear
RenewDomainRequest & WithCurrentExpiryYear(int value)
Definition: RenewDomainRequest.h:145
Aws::Route53Domains::Model::RenewDomainRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: RenewDomainRequest.h:44
Aws::Route53Domains::Model::RenewDomainRequest::SetDomainName
void SetDomainName(const char *value)
Definition: RenewDomainRequest.h:64
Aws::Route53Domains::Model::RenewDomainRequest::RenewDomainRequest
RenewDomainRequest()
Aws::Route53Domains::Model::RenewDomainRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: RenewDomainRequest.h:49