AWS SDK for C++  0.14.3
AWS SDK for C++
RenewDomainRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Route53Domains
23 {
24 namespace Model
25 {
26 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
40  inline const Aws::String& GetDomainName() const{ return m_domainName; }
41 
42 
43  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
44 
45 
46  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
47 
48 
49  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
50 
51 
52  inline RenewDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
53 
54 
55  inline RenewDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(value); return *this;}
56 
57 
58  inline RenewDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
59 
69  inline int GetDurationInYears() const{ return m_durationInYears; }
70 
80  inline void SetDurationInYears(int value) { m_durationInYearsHasBeenSet = true; m_durationInYears = value; }
81 
91  inline RenewDomainRequest& WithDurationInYears(int value) { SetDurationInYears(value); return *this;}
92 
98  inline int GetCurrentExpiryYear() const{ return m_currentExpiryYear; }
99 
105  inline void SetCurrentExpiryYear(int value) { m_currentExpiryYearHasBeenSet = true; m_currentExpiryYear = value; }
106 
112  inline RenewDomainRequest& WithCurrentExpiryYear(int value) { SetCurrentExpiryYear(value); return *this;}
113 
114  private:
115  Aws::String m_domainName;
116  bool m_domainNameHasBeenSet;
117  int m_durationInYears;
118  bool m_durationInYearsHasBeenSet;
119  int m_currentExpiryYear;
120  bool m_currentExpiryYearHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace Route53Domains
125 } // namespace Aws
RenewDomainRequest & WithDomainName(Aws::String &&value)
RenewDomainRequest & WithDomainName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
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)
JSON (JavaScript Object Notation).