/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// A CloudFront distribution configuration.
///
public partial class AwsCloudFrontDistributionDetails
{
private AwsCloudFrontDistributionCacheBehaviors _cacheBehaviors;
private AwsCloudFrontDistributionDefaultCacheBehavior _defaultCacheBehavior;
private string _defaultRootObject;
private string _domainName;
private string _eTag;
private string _lastModifiedTime;
private AwsCloudFrontDistributionLogging _logging;
private AwsCloudFrontDistributionOriginGroups _originGroups;
private AwsCloudFrontDistributionOrigins _origins;
private string _status;
private AwsCloudFrontDistributionViewerCertificate _viewerCertificate;
private string _webAclId;
///
/// Gets and sets the property CacheBehaviors.
///
/// Provides information about the cache configuration for the distribution.
///
///
public AwsCloudFrontDistributionCacheBehaviors CacheBehaviors
{
get { return this._cacheBehaviors; }
set { this._cacheBehaviors = value; }
}
// Check to see if CacheBehaviors property is set
internal bool IsSetCacheBehaviors()
{
return this._cacheBehaviors != null;
}
///
/// Gets and sets the property DefaultCacheBehavior.
///
/// The default cache behavior for the configuration.
///
///
public AwsCloudFrontDistributionDefaultCacheBehavior DefaultCacheBehavior
{
get { return this._defaultCacheBehavior; }
set { this._defaultCacheBehavior = value; }
}
// Check to see if DefaultCacheBehavior property is set
internal bool IsSetDefaultCacheBehavior()
{
return this._defaultCacheBehavior != null;
}
///
/// Gets and sets the property DefaultRootObject.
///
/// The object that CloudFront sends in response to requests from the origin (for example,
/// index.html) when a viewer requests the root URL for the distribution (http://www.example.com)
/// instead of an object in your distribution (http://www.example.com/product-description.html).
///
///
///
public string DefaultRootObject
{
get { return this._defaultRootObject; }
set { this._defaultRootObject = value; }
}
// Check to see if DefaultRootObject property is set
internal bool IsSetDefaultRootObject()
{
return this._defaultRootObject != null;
}
///
/// Gets and sets the property DomainName.
///
/// The domain name corresponding to the distribution.
///
///
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 ETag.
///
/// The entity tag is a hash of the object.
///
///
public string ETag
{
get { return this._eTag; }
set { this._eTag = value; }
}
// Check to see if ETag property is set
internal bool IsSetETag()
{
return this._eTag != null;
}
///
/// Gets and sets the property LastModifiedTime.
///
/// Indicates when that the distribution was last modified.
///
///
///
/// Uses the date-time
format specified in RFC
/// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces,
/// and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
///
///
public string LastModifiedTime
{
get { return this._lastModifiedTime; }
set { this._lastModifiedTime = value; }
}
// Check to see if LastModifiedTime property is set
internal bool IsSetLastModifiedTime()
{
return this._lastModifiedTime != null;
}
///
/// Gets and sets the property Logging.
///
/// A complex type that controls whether access logs are written for the distribution.
///
///
public AwsCloudFrontDistributionLogging Logging
{
get { return this._logging; }
set { this._logging = value; }
}
// Check to see if Logging property is set
internal bool IsSetLogging()
{
return this._logging != null;
}
///
/// Gets and sets the property OriginGroups.
///
/// Provides information about the origin groups in the distribution.
///
///
public AwsCloudFrontDistributionOriginGroups OriginGroups
{
get { return this._originGroups; }
set { this._originGroups = value; }
}
// Check to see if OriginGroups property is set
internal bool IsSetOriginGroups()
{
return this._originGroups != null;
}
///
/// Gets and sets the property Origins.
///
/// A complex type that contains information about origins for this distribution.
///
///
public AwsCloudFrontDistributionOrigins Origins
{
get { return this._origins; }
set { this._origins = value; }
}
// Check to see if Origins property is set
internal bool IsSetOrigins()
{
return this._origins != null;
}
///
/// Gets and sets the property Status.
///
/// Indicates the current status of the distribution.
///
///
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property ViewerCertificate.
///
/// Provides information about the TLS/SSL configuration that the distribution uses to
/// communicate with viewers.
///
///
public AwsCloudFrontDistributionViewerCertificate ViewerCertificate
{
get { return this._viewerCertificate; }
set { this._viewerCertificate = value; }
}
// Check to see if ViewerCertificate property is set
internal bool IsSetViewerCertificate()
{
return this._viewerCertificate != null;
}
///
/// Gets and sets the property WebAclId.
///
/// A unique identifier that specifies the WAF web ACL, if any, to associate with this
/// distribution.
///
///
public string WebAclId
{
get { return this._webAclId; }
set { this._webAclId = value; }
}
// Check to see if WebAclId property is set
internal bool IsSetWebAclId()
{
return this._webAclId != null;
}
}
}