/*
* 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 cloudfront-2020-05-31.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.CloudFront.Model
{
///
/// Amazon Web Services services in China customers must file for an Internet Content
/// Provider (ICP) recordal if they want to serve content publicly on an alternate domain
/// name, also known as a CNAME, that they've added to CloudFront. AliasICPRecordal provides
/// the ICP recordal status for CNAMEs associated with distributions. The status is returned
/// in the CloudFront response; you can't configure it yourself.
///
///
///
/// For more information about ICP recordals, see
/// Signup, Accounts, and Credentials in Getting Started with Amazon Web Services
/// services in China.
///
///
public partial class AliasICPRecordal
{
private string _cname;
private ICPRecordalStatus _icpRecordalStatus;
///
/// Gets and sets the property CNAME.
///
/// A domain name associated with a distribution.
///
///
public string CNAME
{
get { return this._cname; }
set { this._cname = value; }
}
// Check to see if CNAME property is set
internal bool IsSetCNAME()
{
return this._cname != null;
}
///
/// Gets and sets the property ICPRecordalStatus.
///
/// The Internet Content Provider (ICP) recordal status for a CNAME. The ICPRecordalStatus
/// is set to APPROVED for all CNAMEs (aliases) in regions outside of China.
///
///
///
/// The status values returned are the following:
///
/// -
///
/// APPROVED indicates that the associated CNAME has a valid ICP recordal number.
/// Multiple CNAMEs can be associated with a distribution, and CNAMEs can correspond to
/// different ICP recordals. To be marked as APPROVED, that is, valid to use with China
/// region, a CNAME must have one ICP recordal number associated with it.
///
///
-
///
/// SUSPENDED indicates that the associated CNAME does not have a valid ICP recordal
/// number.
///
///
-
///
/// PENDING indicates that CloudFront can't determine the ICP recordal status
/// of the CNAME associated with the distribution because there was an error in trying
/// to determine the status. You can try again to see if the error is resolved in which
/// case CloudFront returns an APPROVED or SUSPENDED status.
///
///
///
public ICPRecordalStatus ICPRecordalStatus
{
get { return this._icpRecordalStatus; }
set { this._icpRecordalStatus = value; }
}
// Check to see if ICPRecordalStatus property is set
internal bool IsSetICPRecordalStatus()
{
return this._icpRecordalStatus != null;
}
}
}