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

Specifies the HTTP context to use for the test authorizer * request.

See Also:

AWS API * Reference

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

The header keys and values in an HTTP authorization request.

*/ inline const Aws::Map& GetHeaders() const{ return m_headers; } /** *

The header keys and values in an HTTP authorization request.

*/ inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; } /** *

The header keys and values in an HTTP authorization request.

*/ inline void SetHeaders(const Aws::Map& value) { m_headersHasBeenSet = true; m_headers = value; } /** *

The header keys and values in an HTTP authorization request.

*/ inline void SetHeaders(Aws::Map&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); } /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& WithHeaders(const Aws::Map& value) { SetHeaders(value); return *this;} /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& WithHeaders(Aws::Map&& value) { SetHeaders(std::move(value)); return *this;} /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& AddHeaders(const Aws::String& key, const Aws::String& value) { m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this; } /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& AddHeaders(Aws::String&& key, const Aws::String& value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), value); return *this; } /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& AddHeaders(const Aws::String& key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(key, std::move(value)); return *this; } /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& AddHeaders(Aws::String&& key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), std::move(value)); return *this; } /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& AddHeaders(const char* key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(key, std::move(value)); return *this; } /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& AddHeaders(Aws::String&& key, const char* value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), value); return *this; } /** *

The header keys and values in an HTTP authorization request.

*/ inline HttpContext& AddHeaders(const char* key, const char* value) { m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this; } /** *

The query string keys and values in an HTTP authorization request.

*/ inline const Aws::String& GetQueryString() const{ return m_queryString; } /** *

The query string keys and values in an HTTP authorization request.

*/ inline bool QueryStringHasBeenSet() const { return m_queryStringHasBeenSet; } /** *

The query string keys and values in an HTTP authorization request.

*/ inline void SetQueryString(const Aws::String& value) { m_queryStringHasBeenSet = true; m_queryString = value; } /** *

The query string keys and values in an HTTP authorization request.

*/ inline void SetQueryString(Aws::String&& value) { m_queryStringHasBeenSet = true; m_queryString = std::move(value); } /** *

The query string keys and values in an HTTP authorization request.

*/ inline void SetQueryString(const char* value) { m_queryStringHasBeenSet = true; m_queryString.assign(value); } /** *

The query string keys and values in an HTTP authorization request.

*/ inline HttpContext& WithQueryString(const Aws::String& value) { SetQueryString(value); return *this;} /** *

The query string keys and values in an HTTP authorization request.

*/ inline HttpContext& WithQueryString(Aws::String&& value) { SetQueryString(std::move(value)); return *this;} /** *

The query string keys and values in an HTTP authorization request.

*/ inline HttpContext& WithQueryString(const char* value) { SetQueryString(value); return *this;} private: Aws::Map m_headers; bool m_headersHasBeenSet = false; Aws::String m_queryString; bool m_queryStringHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws