/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace CloudFront { namespace Model { /** */ class UpdateRealtimeLogConfig2020_05_31Request : public CloudFrontRequest { public: AWS_CLOUDFRONT_API UpdateRealtimeLogConfig2020_05_31Request(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateRealtimeLogConfig"; } AWS_CLOUDFRONT_API Aws::String SerializePayload() const override; /** *

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

*/ 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.

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

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

*/ 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.

*/ 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.

*/ inline UpdateRealtimeLogConfig2020_05_31Request& 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.

*/ inline UpdateRealtimeLogConfig2020_05_31Request& 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.

*/ inline UpdateRealtimeLogConfig2020_05_31Request& 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.

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

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.

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

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

*/ inline UpdateRealtimeLogConfig2020_05_31Request& AddFields(const char* value) { m_fieldsHasBeenSet = true; m_fields.push_back(value); return *this; } /** *

The name for this real-time log configuration.

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

The name for this real-time log configuration.

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

The name for this real-time log configuration.

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

The name for this real-time log configuration.

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

The name for this real-time log configuration.

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

The name for this real-time log configuration.

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

The name for this real-time log configuration.

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

The name for this real-time log configuration.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline UpdateRealtimeLogConfig2020_05_31Request& WithARN(const char* value) { SetARN(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. You must provide 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. You must provide 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. You must provide 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. You must provide an integer between 1 and 100, * inclusive.

*/ inline UpdateRealtimeLogConfig2020_05_31Request& WithSamplingRate(long long value) { SetSamplingRate(value); return *this;} private: Aws::Vector m_endPoints; bool m_endPointsHasBeenSet = false; Aws::Vector m_fields; bool m_fieldsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_aRN; bool m_aRNHasBeenSet = false; long long m_samplingRate; bool m_samplingRateHasBeenSet = false; }; } // namespace Model } // namespace CloudFront } // namespace Aws