/*
* 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
{
///
/// A real-time log configuration.
///
public partial class RealtimeLogConfig
{
private string _arn;
private List _endPoints = new List();
private List _fields = new List();
private string _name;
private long? _samplingRate;
///
/// Gets and sets the property ARN.
///
/// The Amazon Resource Name (ARN) of this real-time log configuration.
///
///
[AWSProperty(Required=true)]
public string ARN
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if ARN property is set
internal bool IsSetARN()
{
return this._arn != null;
}
///
/// Gets and sets the property EndPoints.
///
/// Contains information about the Amazon Kinesis data stream where you are sending real-time
/// log data for this real-time log configuration.
///
///
[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 that are included in each real-time log record. In an API response,
/// the fields are provided in the same order in which they are sent to the Amazon Kinesis
/// data stream.
///
///
///
/// 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.
///
/// The unique name of 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.
/// The sampling rate is 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;
}
}
}