AWS SDK for C++

AWS SDK for C++ Version 1.11.912

Loading...
Searching...
No Matches
RenewDomainRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53domains/Route53DomainsRequest.h>
9#include <aws/route53domains/Route53Domains_EXPORTS.h>
10#include <aws/route53domains/model/Consent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Route53Domains {
16namespace Model {
17
25 public:
26 AWS_ROUTE53DOMAINS_API RenewDomainRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RenewDomain"; }
33
34 AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override;
35
36 AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
42 inline const Aws::String& GetDomainName() const { return m_domainName; }
43 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
44 template <typename DomainNameT = Aws::String>
45 void SetDomainName(DomainNameT&& value) {
46 m_domainNameHasBeenSet = true;
47 m_domainName = std::forward<DomainNameT>(value);
48 }
49 template <typename DomainNameT = Aws::String>
50 RenewDomainRequest& WithDomainName(DomainNameT&& value) {
51 SetDomainName(std::forward<DomainNameT>(value));
52 return *this;
53 }
55
57
65 inline int GetDurationInYears() const { return m_durationInYears; }
66 inline bool DurationInYearsHasBeenSet() const { return m_durationInYearsHasBeenSet; }
67 inline void SetDurationInYears(int value) {
68 m_durationInYearsHasBeenSet = true;
69 m_durationInYears = value;
70 }
72 SetDurationInYears(value);
73 return *this;
74 }
76
78
82 inline int GetCurrentExpiryYear() const { return m_currentExpiryYear; }
83 inline bool CurrentExpiryYearHasBeenSet() const { return m_currentExpiryYearHasBeenSet; }
84 inline void SetCurrentExpiryYear(int value) {
85 m_currentExpiryYearHasBeenSet = true;
86 m_currentExpiryYear = value;
87 }
90 return *this;
91 }
93
95
102 inline const Consent& GetConsent() const { return m_consent; }
103 inline bool ConsentHasBeenSet() const { return m_consentHasBeenSet; }
104 template <typename ConsentT = Consent>
105 void SetConsent(ConsentT&& value) {
106 m_consentHasBeenSet = true;
107 m_consent = std::forward<ConsentT>(value);
108 }
109 template <typename ConsentT = Consent>
110 RenewDomainRequest& WithConsent(ConsentT&& value) {
111 SetConsent(std::forward<ConsentT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_domainName;
117
118 int m_durationInYears{0};
119
120 int m_currentExpiryYear{0};
121
122 Consent m_consent;
123 bool m_domainNameHasBeenSet = false;
124 bool m_durationInYearsHasBeenSet = false;
125 bool m_currentExpiryYearHasBeenSet = false;
126 bool m_consentHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Route53Domains
131} // namespace Aws
RenewDomainRequest & WithDomainName(DomainNameT &&value)
RenewDomainRequest & WithConsent(ConsentT &&value)
RenewDomainRequest & WithDurationInYears(int value)
AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override
AWS_ROUTE53DOMAINS_API RenewDomainRequest()=default
RenewDomainRequest & WithCurrentExpiryYear(int value)
virtual const char * GetServiceRequestName() const override
AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String