/* * 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 { /// /// Container for the parameters to the CreateRealtimeLogConfig operation. /// Creates a real-time log configuration. /// /// /// /// After you create a real-time log configuration, you can attach it to one or more cache /// behaviors to send real-time log data to the specified Amazon Kinesis data stream. /// /// /// /// For more information about real-time log configurations, see Real-time /// logs in the Amazon CloudFront Developer Guide. /// /// public partial class CreateRealtimeLogConfigRequest : AmazonCloudFrontRequest { private List _endPoints = new List(); private List _fields = new List(); private string _name; private long? _samplingRate; /// /// Gets and sets the property EndPoints. /// /// Contains information about the Amazon Kinesis data stream where you are sending real-time /// log data. /// /// [AWSProperty(Required=true)] public List EndPoints { get { return this._endPoints; } set { this._endPoints = value; } } // Check to see if EndPoints property is set internal bool IsSetEndPoints() { return this._endPoints != null && this._endPoints.Count > 0; } /// /// Gets and sets the property Fields. /// /// A list of fields to include in each real-time log record. /// /// /// /// For more information about fields, see Real-time /// log configuration fields in the Amazon CloudFront Developer Guide. /// /// [AWSProperty(Required=true)] public List Fields { get { return this._fields; } set { this._fields = value; } } // Check to see if Fields property is set internal bool IsSetFields() { return this._fields != null && this._fields.Count > 0; } /// /// Gets and sets the property Name. /// /// A unique name to identify this real-time log configuration. /// /// [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property SamplingRate. /// /// The sampling rate for this real-time log configuration. The sampling rate determines /// the percentage of viewer requests that are represented in the real-time log data. /// You must provide an integer between 1 and 100, inclusive. /// /// [AWSProperty(Required=true)] public long SamplingRate { get { return this._samplingRate.GetValueOrDefault(); } set { this._samplingRate = value; } } // Check to see if SamplingRate property is set internal bool IsSetSamplingRate() { return this._samplingRate.HasValue; } } }