/* * 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 custom origin. A custom origin is any origin that is not an Amazon S3 bucket, with /// one exception. An Amazon S3 bucket that is configured /// with static website hosting is a custom origin. /// public partial class AwsCloudFrontDistributionOriginCustomOriginConfig { private int? _httpPort; private int? _httpsPort; private int? _originKeepaliveTimeout; private string _originProtocolPolicy; private int? _originReadTimeout; private AwsCloudFrontDistributionOriginSslProtocols _originSslProtocols; /// /// Gets and sets the property HttpPort. /// /// The HTTP port that CloudFront uses to connect to the origin. /// /// public int HttpPort { get { return this._httpPort.GetValueOrDefault(); } set { this._httpPort = value; } } // Check to see if HttpPort property is set internal bool IsSetHttpPort() { return this._httpPort.HasValue; } /// /// Gets and sets the property HttpsPort. /// /// The HTTPS port that CloudFront uses to connect to the origin. /// /// public int HttpsPort { get { return this._httpsPort.GetValueOrDefault(); } set { this._httpsPort = value; } } // Check to see if HttpsPort property is set internal bool IsSetHttpsPort() { return this._httpsPort.HasValue; } /// /// Gets and sets the property OriginKeepaliveTimeout. /// /// Specifies how long, in seconds, CloudFront persists its connection to the origin. /// /// /// public int OriginKeepaliveTimeout { get { return this._originKeepaliveTimeout.GetValueOrDefault(); } set { this._originKeepaliveTimeout = value; } } // Check to see if OriginKeepaliveTimeout property is set internal bool IsSetOriginKeepaliveTimeout() { return this._originKeepaliveTimeout.HasValue; } /// /// Gets and sets the property OriginProtocolPolicy. /// /// Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. /// /// /// public string OriginProtocolPolicy { get { return this._originProtocolPolicy; } set { this._originProtocolPolicy = value; } } // Check to see if OriginProtocolPolicy property is set internal bool IsSetOriginProtocolPolicy() { return this._originProtocolPolicy != null; } /// /// Gets and sets the property OriginReadTimeout. /// /// Specifies how long, in seconds, CloudFront waits for a response from the origin. /// /// public int OriginReadTimeout { get { return this._originReadTimeout.GetValueOrDefault(); } set { this._originReadTimeout = value; } } // Check to see if OriginReadTimeout property is set internal bool IsSetOriginReadTimeout() { return this._originReadTimeout.HasValue; } /// /// Gets and sets the property OriginSslProtocols. /// /// Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your /// origin over HTTPS. /// /// public AwsCloudFrontDistributionOriginSslProtocols OriginSslProtocols { get { return this._originSslProtocols; } set { this._originSslProtocols = value; } } // Check to see if OriginSslProtocols property is set internal bool IsSetOriginSslProtocols() { return this._originSslProtocols != null; } } }