/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { /** *

A real-time log configuration.

See Also:

AWS * API Reference

*/ class RealtimeLogConfig { public: AWS_CLOUDFRONT_API RealtimeLogConfig(); AWS_CLOUDFRONT_API RealtimeLogConfig(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API RealtimeLogConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The Amazon Resource Name (ARN) of this real-time log configuration.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The Amazon Resource Name (ARN) of this real-time log configuration.

*/ inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of this real-time log configuration.

*/ inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; } /** *

The Amazon Resource Name (ARN) of this real-time log configuration.

*/ inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); } /** *

The Amazon Resource Name (ARN) of this real-time log configuration.

*/ inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); } /** *

The Amazon Resource Name (ARN) of this real-time log configuration.

*/ inline RealtimeLogConfig& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of this real-time log configuration.

*/ inline RealtimeLogConfig& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of this real-time log configuration.

*/ inline RealtimeLogConfig& WithARN(const char* value) { SetARN(value); return *this;} /** *

The unique name of this real-time log configuration.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The unique name of this real-time log configuration.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The unique name of this real-time log configuration.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The unique name of this real-time log configuration.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The unique name of this real-time log configuration.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The unique name of this real-time log configuration.

*/ inline RealtimeLogConfig& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The unique name of this real-time log configuration.

*/ inline RealtimeLogConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The unique name of this real-time log configuration.

*/ inline RealtimeLogConfig& WithName(const char* value) { SetName(value); return *this;} /** *

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.

*/ inline long long GetSamplingRate() const{ return m_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.

*/ inline bool SamplingRateHasBeenSet() const { return m_samplingRateHasBeenSet; } /** *

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.

*/ inline void SetSamplingRate(long long value) { m_samplingRateHasBeenSet = true; m_samplingRate = value; } /** *

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.

*/ inline RealtimeLogConfig& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;} /** *

Contains information about the Amazon Kinesis data stream where you are * sending real-time log data for this real-time log configuration.

*/ inline const Aws::Vector& GetEndPoints() const{ return m_endPoints; } /** *

Contains information about the Amazon Kinesis data stream where you are * sending real-time log data for this real-time log configuration.

*/ inline bool EndPointsHasBeenSet() const { return m_endPointsHasBeenSet; } /** *

Contains information about the Amazon Kinesis data stream where you are * sending real-time log data for this real-time log configuration.

*/ inline void SetEndPoints(const Aws::Vector& value) { m_endPointsHasBeenSet = true; m_endPoints = value; } /** *

Contains information about the Amazon Kinesis data stream where you are * sending real-time log data for this real-time log configuration.

*/ inline void SetEndPoints(Aws::Vector&& value) { m_endPointsHasBeenSet = true; m_endPoints = std::move(value); } /** *

Contains information about the Amazon Kinesis data stream where you are * sending real-time log data for this real-time log configuration.

*/ inline RealtimeLogConfig& WithEndPoints(const Aws::Vector& value) { SetEndPoints(value); return *this;} /** *

Contains information about the Amazon Kinesis data stream where you are * sending real-time log data for this real-time log configuration.

*/ inline RealtimeLogConfig& WithEndPoints(Aws::Vector&& value) { SetEndPoints(std::move(value)); return *this;} /** *

Contains information about the Amazon Kinesis data stream where you are * sending real-time log data for this real-time log configuration.

*/ inline RealtimeLogConfig& AddEndPoints(const EndPoint& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(value); return *this; } /** *

Contains information about the Amazon Kinesis data stream where you are * sending real-time log data for this real-time log configuration.

*/ inline RealtimeLogConfig& AddEndPoints(EndPoint&& value) { m_endPointsHasBeenSet = true; m_endPoints.push_back(std::move(value)); return *this; } /** *

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.

*/ inline const Aws::Vector& GetFields() const{ return m_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.

*/ inline bool FieldsHasBeenSet() const { return m_fieldsHasBeenSet; } /** *

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.

*/ inline void SetFields(const Aws::Vector& value) { m_fieldsHasBeenSet = true; m_fields = value; } /** *

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.

*/ inline void SetFields(Aws::Vector&& value) { m_fieldsHasBeenSet = true; m_fields = std::move(value); } /** *

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.

*/ inline RealtimeLogConfig& WithFields(const Aws::Vector& value) { SetFields(value); return *this;} /** *

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.

*/ inline RealtimeLogConfig& WithFields(Aws::Vector&& value) { SetFields(std::move(value)); return *this;} /** *

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.

*/ inline RealtimeLogConfig& AddFields(const Aws::String& value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *

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.

*/ inline RealtimeLogConfig& AddFields(Aws::String&& value) { m_fieldsHasBeenSet = true; m_fields.push_back(std::move(value)); return *this; } /** *

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.

*/ inline RealtimeLogConfig& AddFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } private: Aws::String m_aRN; bool m_aRNHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; long long m_samplingRate; bool m_samplingRateHasBeenSet = false; Aws::Vector m_endPoints; bool m_endPointsHasBeenSet = false; Aws::Vector m_fields; bool m_fieldsHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws