/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Firehose { namespace Model { /** *

The configuration of the HTTP endpoint request.

See Also:

AWS * API Reference

*/ class AWS_FIREHOSE_API HttpEndpointRequestConfiguration { public: HttpEndpointRequestConfiguration(); HttpEndpointRequestConfiguration(Aws::Utils::Json::JsonView jsonValue); HttpEndpointRequestConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

Kinesis Data Firehose uses the content encoding to compress the body of a * request before sending the request to the destination. For more information, see * Content-Encoding * in MDN Web Docs, the official Mozilla documentation.

*/ inline const ContentEncoding& GetContentEncoding() const{ return m_contentEncoding; } /** *

Kinesis Data Firehose uses the content encoding to compress the body of a * request before sending the request to the destination. For more information, see * Content-Encoding * in MDN Web Docs, the official Mozilla documentation.

*/ inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; } /** *

Kinesis Data Firehose uses the content encoding to compress the body of a * request before sending the request to the destination. For more information, see * Content-Encoding * in MDN Web Docs, the official Mozilla documentation.

*/ inline void SetContentEncoding(const ContentEncoding& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; } /** *

Kinesis Data Firehose uses the content encoding to compress the body of a * request before sending the request to the destination. For more information, see * Content-Encoding * in MDN Web Docs, the official Mozilla documentation.

*/ inline void SetContentEncoding(ContentEncoding&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::move(value); } /** *

Kinesis Data Firehose uses the content encoding to compress the body of a * request before sending the request to the destination. For more information, see * Content-Encoding * in MDN Web Docs, the official Mozilla documentation.

*/ inline HttpEndpointRequestConfiguration& WithContentEncoding(const ContentEncoding& value) { SetContentEncoding(value); return *this;} /** *

Kinesis Data Firehose uses the content encoding to compress the body of a * request before sending the request to the destination. For more information, see * Content-Encoding * in MDN Web Docs, the official Mozilla documentation.

*/ inline HttpEndpointRequestConfiguration& WithContentEncoding(ContentEncoding&& value) { SetContentEncoding(std::move(value)); return *this;} /** *

Describes the metadata sent to the HTTP endpoint destination.

*/ inline const Aws::Vector& GetCommonAttributes() const{ return m_commonAttributes; } /** *

Describes the metadata sent to the HTTP endpoint destination.

*/ inline bool CommonAttributesHasBeenSet() const { return m_commonAttributesHasBeenSet; } /** *

Describes the metadata sent to the HTTP endpoint destination.

*/ inline void SetCommonAttributes(const Aws::Vector& value) { m_commonAttributesHasBeenSet = true; m_commonAttributes = value; } /** *

Describes the metadata sent to the HTTP endpoint destination.

*/ inline void SetCommonAttributes(Aws::Vector&& value) { m_commonAttributesHasBeenSet = true; m_commonAttributes = std::move(value); } /** *

Describes the metadata sent to the HTTP endpoint destination.

*/ inline HttpEndpointRequestConfiguration& WithCommonAttributes(const Aws::Vector& value) { SetCommonAttributes(value); return *this;} /** *

Describes the metadata sent to the HTTP endpoint destination.

*/ inline HttpEndpointRequestConfiguration& WithCommonAttributes(Aws::Vector&& value) { SetCommonAttributes(std::move(value)); return *this;} /** *

Describes the metadata sent to the HTTP endpoint destination.

*/ inline HttpEndpointRequestConfiguration& AddCommonAttributes(const HttpEndpointCommonAttribute& value) { m_commonAttributesHasBeenSet = true; m_commonAttributes.push_back(value); return *this; } /** *

Describes the metadata sent to the HTTP endpoint destination.

*/ inline HttpEndpointRequestConfiguration& AddCommonAttributes(HttpEndpointCommonAttribute&& value) { m_commonAttributesHasBeenSet = true; m_commonAttributes.push_back(std::move(value)); return *this; } private: ContentEncoding m_contentEncoding; bool m_contentEncodingHasBeenSet; Aws::Vector m_commonAttributes; bool m_commonAttributesHasBeenSet; }; } // namespace Model } // namespace Firehose } // namespace Aws