/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the route53domains-2014-05-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Route53Domains.Model
{
///
/// Container for the parameters to the RenewDomain operation.
/// This operation renews a domain for the specified number of years. The cost of renewing
/// your domain is billed to your Amazon Web Services account.
///
///
///
/// We recommend that you renew your domain several weeks before the expiration date.
/// Some TLD registries delete domains before the expiration date if you haven't renewed
/// far enough in advance. For more information about renewing domain registration, see
/// Renewing
/// Registration for a Domain in the Amazon Route 53 Developer Guide.
///
///
public partial class RenewDomainRequest : AmazonRoute53DomainsRequest
{
private int? _currentExpiryYear;
private string _domainName;
private int? _durationInYears;
///
/// Gets and sets the property CurrentExpiryYear.
///
/// The year when the registration for the domain is set to expire. This value must match
/// the current expiration date for the domain.
///
///
[AWSProperty(Required=true)]
public int CurrentExpiryYear
{
get { return this._currentExpiryYear.GetValueOrDefault(); }
set { this._currentExpiryYear = value; }
}
// Check to see if CurrentExpiryYear property is set
internal bool IsSetCurrentExpiryYear()
{
return this._currentExpiryYear.HasValue;
}
///
/// Gets and sets the property DomainName.
///
/// The name of the domain that you want to renew.
///
///
[AWSProperty(Required=true, Max=255)]
public string DomainName
{
get { return this._domainName; }
set { this._domainName = value; }
}
// Check to see if DomainName property is set
internal bool IsSetDomainName()
{
return this._domainName != null;
}
///
/// Gets and sets the property 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
///
///
[AWSProperty(Min=1, Max=10)]
public int DurationInYears
{
get { return this._durationInYears.GetValueOrDefault(); }
set { this._durationInYears = value; }
}
// Check to see if DurationInYears property is set
internal bool IsSetDurationInYears()
{
return this._durationInYears.HasValue;
}
}
}