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

The authorization method used to send messages.

See Also:

AWS * API Reference

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

Use Sig V4 authorization. For more information, see Signature * Version 4 Signing Process.

*/ inline const SigV4Authorization& GetSigv4() const{ return m_sigv4; } /** *

Use Sig V4 authorization. For more information, see Signature * Version 4 Signing Process.

*/ inline bool Sigv4HasBeenSet() const { return m_sigv4HasBeenSet; } /** *

Use Sig V4 authorization. For more information, see Signature * Version 4 Signing Process.

*/ inline void SetSigv4(const SigV4Authorization& value) { m_sigv4HasBeenSet = true; m_sigv4 = value; } /** *

Use Sig V4 authorization. For more information, see Signature * Version 4 Signing Process.

*/ inline void SetSigv4(SigV4Authorization&& value) { m_sigv4HasBeenSet = true; m_sigv4 = std::move(value); } /** *

Use Sig V4 authorization. For more information, see Signature * Version 4 Signing Process.

*/ inline HttpAuthorization& WithSigv4(const SigV4Authorization& value) { SetSigv4(value); return *this;} /** *

Use Sig V4 authorization. For more information, see Signature * Version 4 Signing Process.

*/ inline HttpAuthorization& WithSigv4(SigV4Authorization&& value) { SetSigv4(std::move(value)); return *this;} private: SigV4Authorization m_sigv4; bool m_sigv4HasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws