/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Route53Domains { namespace Model { /** *

A RenewDomain request includes the number of years that you want * to renew for and the current expiration year.

See Also:

AWS * API Reference

*/ class RenewDomainRequest : public Route53DomainsRequest { public: AWS_ROUTE53DOMAINS_API RenewDomainRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RenewDomain"; } AWS_ROUTE53DOMAINS_API Aws::String SerializePayload() const override; AWS_ROUTE53DOMAINS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the domain that you want to renew.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

The name of the domain that you want to renew.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

The name of the domain that you want to renew.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

The name of the domain that you want to renew.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

The name of the domain that you want to renew.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

The name of the domain that you want to renew.

*/ inline RenewDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

The name of the domain that you want to renew.

*/ inline RenewDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

The name of the domain that you want to renew.

*/ inline RenewDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

The number of years that you want to renew the domain for. The maximum number * of years depends on the top-level domain. For the range of valid values for your * domain, see Domains * that You Can Register with Amazon Route 53 in the Amazon Route 53 * Developer Guide.

Default: 1

*/ inline int GetDurationInYears() const{ return m_durationInYears; } /** *

The number of years that you want to renew the domain for. The maximum number * of years depends on the top-level domain. For the range of valid values for your * domain, see Domains * that You Can Register with Amazon Route 53 in the Amazon Route 53 * Developer Guide.

Default: 1

*/ inline bool DurationInYearsHasBeenSet() const { return m_durationInYearsHasBeenSet; } /** *

The number of years that you want to renew the domain for. The maximum number * of years depends on the top-level domain. For the range of valid values for your * domain, see Domains * that You Can Register with Amazon Route 53 in the Amazon Route 53 * Developer Guide.

Default: 1

*/ inline void SetDurationInYears(int value) { m_durationInYearsHasBeenSet = true; m_durationInYears = value; } /** *

The number of years that you want to renew the domain for. The maximum number * of years depends on the top-level domain. For the range of valid values for your * domain, see Domains * that You Can Register with Amazon Route 53 in the Amazon Route 53 * Developer Guide.

Default: 1

*/ inline RenewDomainRequest& WithDurationInYears(int value) { SetDurationInYears(value); return *this;} /** *

The year when the registration for the domain is set to expire. This value * must match the current expiration date for the domain.

*/ inline int GetCurrentExpiryYear() const{ return m_currentExpiryYear; } /** *

The year when the registration for the domain is set to expire. This value * must match the current expiration date for the domain.

*/ inline bool CurrentExpiryYearHasBeenSet() const { return m_currentExpiryYearHasBeenSet; } /** *

The year when the registration for the domain is set to expire. This value * must match the current expiration date for the domain.

*/ inline void SetCurrentExpiryYear(int value) { m_currentExpiryYearHasBeenSet = true; m_currentExpiryYear = value; } /** *

The year when the registration for the domain is set to expire. This value * must match the current expiration date for the domain.

*/ inline RenewDomainRequest& WithCurrentExpiryYear(int value) { SetCurrentExpiryYear(value); return *this;} private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; int m_durationInYears; bool m_durationInYearsHasBeenSet = false; int m_currentExpiryYear; bool m_currentExpiryYearHasBeenSet = false; }; } // namespace Model } // namespace Route53Domains } // namespace Aws