Files
DedicatedServerCourse/Plugins/GameLiftPlugin/Source/AWSSDK/Include/aws/cognito-idp/model/HttpHeader.h

79 lines
2.9 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CognitoIdentityProvider
{
namespace Model
{
/**
* <p>The HTTP header.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/cognito-idp-2016-04-18/HttpHeader">AWS
* API Reference</a></p>
*/
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;
///@{
/**
* <p>The header name.</p>
*/
inline const Aws::String& GetHeaderName() const{ return m_headerName; }
inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; }
inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); }
inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); }
inline HttpHeader& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
inline HttpHeader& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
inline HttpHeader& WithHeaderName(const char* value) { SetHeaderName(value); return *this;}
///@}
///@{
/**
* <p>The header value.</p>
*/
inline const Aws::String& GetHeaderValue() const{ return m_headerValue; }
inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; }
inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; }
inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); }
inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); }
inline HttpHeader& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;}
inline HttpHeader& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;}
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