/** * 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 Pipes { namespace Model { /** *

These are custom parameter to be used when the target is an API Gateway REST * APIs or EventBridge ApiDestinations.

See Also:

AWS * API Reference

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

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline const Aws::Map& GetHeaderParameters() const{ return m_headerParameters; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline bool HeaderParametersHasBeenSet() const { return m_headerParametersHasBeenSet; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline void SetHeaderParameters(const Aws::Map& value) { m_headerParametersHasBeenSet = true; m_headerParameters = value; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline void SetHeaderParameters(Aws::Map&& value) { m_headerParametersHasBeenSet = true; m_headerParameters = std::move(value); } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& WithHeaderParameters(const Aws::Map& value) { SetHeaderParameters(value); return *this;} /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& WithHeaderParameters(Aws::Map&& value) { SetHeaderParameters(std::move(value)); return *this;} /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddHeaderParameters(const Aws::String& key, const Aws::String& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, value); return *this; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddHeaderParameters(Aws::String&& key, const Aws::String& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), value); return *this; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddHeaderParameters(const Aws::String& key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, std::move(value)); return *this; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddHeaderParameters(Aws::String&& key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddHeaderParameters(const char* key, Aws::String&& value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, std::move(value)); return *this; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddHeaderParameters(Aws::String&& key, const char* value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(std::move(key), value); return *this; } /** *

The headers that need to be sent as part of request invoking the API Gateway * REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddHeaderParameters(const char* key, const char* value) { m_headerParametersHasBeenSet = true; m_headerParameters.emplace(key, value); return *this; } /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline const Aws::Vector& GetPathParameterValues() const{ return m_pathParameterValues; } /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline bool PathParameterValuesHasBeenSet() const { return m_pathParameterValuesHasBeenSet; } /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline void SetPathParameterValues(const Aws::Vector& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues = value; } /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline void SetPathParameterValues(Aws::Vector&& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues = std::move(value); } /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline PipeTargetHttpParameters& WithPathParameterValues(const Aws::Vector& value) { SetPathParameterValues(value); return *this;} /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline PipeTargetHttpParameters& WithPathParameterValues(Aws::Vector&& value) { SetPathParameterValues(std::move(value)); return *this;} /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline PipeTargetHttpParameters& AddPathParameterValues(const Aws::String& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(value); return *this; } /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline PipeTargetHttpParameters& AddPathParameterValues(Aws::String&& value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(std::move(value)); return *this; } /** *

The path parameter values to be used to populate API Gateway REST API or * EventBridge ApiDestination path wildcards ("*").

*/ inline PipeTargetHttpParameters& AddPathParameterValues(const char* value) { m_pathParameterValuesHasBeenSet = true; m_pathParameterValues.push_back(value); return *this; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline const Aws::Map& GetQueryStringParameters() const{ return m_queryStringParameters; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline bool QueryStringParametersHasBeenSet() const { return m_queryStringParametersHasBeenSet; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline void SetQueryStringParameters(const Aws::Map& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = value; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline void SetQueryStringParameters(Aws::Map&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters = std::move(value); } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& WithQueryStringParameters(const Aws::Map& value) { SetQueryStringParameters(value); return *this;} /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& WithQueryStringParameters(Aws::Map&& value) { SetQueryStringParameters(std::move(value)); return *this;} /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddQueryStringParameters(const Aws::String& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddQueryStringParameters(Aws::String&& key, const Aws::String& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddQueryStringParameters(const Aws::String& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddQueryStringParameters(Aws::String&& key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddQueryStringParameters(const char* key, Aws::String&& value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, std::move(value)); return *this; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddQueryStringParameters(Aws::String&& key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(std::move(key), value); return *this; } /** *

The query string keys/values that need to be sent as part of request invoking * the API Gateway REST API or EventBridge ApiDestination.

*/ inline PipeTargetHttpParameters& AddQueryStringParameters(const char* key, const char* value) { m_queryStringParametersHasBeenSet = true; m_queryStringParameters.emplace(key, value); return *this; } private: Aws::Map m_headerParameters; bool m_headerParametersHasBeenSet = false; Aws::Vector m_pathParameterValues; bool m_pathParameterValuesHasBeenSet = false; Aws::Map m_queryStringParameters; bool m_queryStringParametersHasBeenSet = false; }; } // namespace Model } // namespace Pipes } // namespace Aws