/** * 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 MQTT context to use for the test authorizer * request

See Also:

AWS API * Reference

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

The value of the username key in an MQTT authorization * request.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

The value of the username key in an MQTT authorization * request.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

The value of the username key in an MQTT authorization * request.

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

The value of the username key in an MQTT authorization * request.

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

The value of the username key in an MQTT authorization * request.

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

The value of the username key in an MQTT authorization * request.

*/ inline MqttContext& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

The value of the username key in an MQTT authorization * request.

*/ inline MqttContext& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

The value of the username key in an MQTT authorization * request.

*/ inline MqttContext& WithUsername(const char* value) { SetUsername(value); return *this;} /** *

The value of the password key in an MQTT authorization * request.

*/ inline const Aws::Utils::ByteBuffer& GetPassword() const{ return m_password; } /** *

The value of the password key in an MQTT authorization * request.

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

The value of the password key in an MQTT authorization * request.

*/ inline void SetPassword(const Aws::Utils::ByteBuffer& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

The value of the password key in an MQTT authorization * request.

*/ inline void SetPassword(Aws::Utils::ByteBuffer&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

The value of the password key in an MQTT authorization * request.

*/ inline MqttContext& WithPassword(const Aws::Utils::ByteBuffer& value) { SetPassword(value); return *this;} /** *

The value of the password key in an MQTT authorization * request.

*/ inline MqttContext& WithPassword(Aws::Utils::ByteBuffer&& value) { SetPassword(std::move(value)); return *this;} /** *

The value of the clientId key in an MQTT authorization * request.

*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *

The value of the clientId key in an MQTT authorization * request.

*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *

The value of the clientId key in an MQTT authorization * request.

*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *

The value of the clientId key in an MQTT authorization * request.

*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *

The value of the clientId key in an MQTT authorization * request.

*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *

The value of the clientId key in an MQTT authorization * request.

*/ inline MqttContext& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *

The value of the clientId key in an MQTT authorization * request.

*/ inline MqttContext& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *

The value of the clientId key in an MQTT authorization * request.

*/ inline MqttContext& WithClientId(const char* value) { SetClientId(value); return *this;} private: Aws::String m_username; bool m_usernameHasBeenSet = false; Aws::Utils::ByteBuffer m_password; bool m_passwordHasBeenSet = false; Aws::String m_clientId; bool m_clientIdHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws