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

The HTTP header.

See Also:

AWS * API Reference

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

The header name.

*/ inline const Aws::String& GetHeaderName() const{ return m_headerName; } /** *

The header name.

*/ inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; } /** *

The header name.

*/ inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; } /** *

The header name.

*/ inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); } /** *

The header name.

*/ inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); } /** *

The header name.

*/ inline HttpHeader& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;} /** *

The header name.

*/ inline HttpHeader& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;} /** *

The header name.

*/ inline HttpHeader& WithHeaderName(const char* value) { SetHeaderName(value); return *this;} /** *

The header value.

*/ inline const Aws::String& GetHeaderValue() const{ return m_headerValue; } /** *

The header value.

*/ inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; } /** *

The header value.

*/ inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; } /** *

The header value.

*/ inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); } /** *

The header value.

*/ inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); } /** *

The header value.

*/ inline HttpHeader& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;} /** *

The header value.

*/ inline HttpHeader& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;} /** *

The header value.

*/ inline HttpHeader& WithHeaderValue(const char* value) { SetHeaderValue(value); return *this;} private: Aws::String m_headerName; bool m_headerNameHasBeenSet = false; Aws::String m_headerValue; bool m_headerValueHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws