/** * 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 LexRuntimeV2 { namespace Model { /** */ class GetSessionRequest : public LexRuntimeV2Request { public: AWS_LEXRUNTIMEV2_API GetSessionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetSession"; } AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override; /** *

The identifier of the bot that contains the session data.

*/ inline const Aws::String& GetBotId() const{ return m_botId; } /** *

The identifier of the bot that contains the session data.

*/ inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } /** *

The identifier of the bot that contains the session data.

*/ inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } /** *

The identifier of the bot that contains the session data.

*/ inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } /** *

The identifier of the bot that contains the session data.

*/ inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } /** *

The identifier of the bot that contains the session data.

*/ inline GetSessionRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} /** *

The identifier of the bot that contains the session data.

*/ inline GetSessionRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} /** *

The identifier of the bot that contains the session data.

*/ inline GetSessionRequest& WithBotId(const char* value) { SetBotId(value); return *this;} /** *

The alias identifier in use for the bot that contains the session data.

*/ inline const Aws::String& GetBotAliasId() const{ return m_botAliasId; } /** *

The alias identifier in use for the bot that contains the session data.

*/ inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; } /** *

The alias identifier in use for the bot that contains the session data.

*/ inline void SetBotAliasId(const Aws::String& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = value; } /** *

The alias identifier in use for the bot that contains the session data.

*/ inline void SetBotAliasId(Aws::String&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::move(value); } /** *

The alias identifier in use for the bot that contains the session data.

*/ inline void SetBotAliasId(const char* value) { m_botAliasIdHasBeenSet = true; m_botAliasId.assign(value); } /** *

The alias identifier in use for the bot that contains the session data.

*/ inline GetSessionRequest& WithBotAliasId(const Aws::String& value) { SetBotAliasId(value); return *this;} /** *

The alias identifier in use for the bot that contains the session data.

*/ inline GetSessionRequest& WithBotAliasId(Aws::String&& value) { SetBotAliasId(std::move(value)); return *this;} /** *

The alias identifier in use for the bot that contains the session data.

*/ inline GetSessionRequest& WithBotAliasId(const char* value) { SetBotAliasId(value); return *this;} /** *

The locale where the session is in use.

*/ inline const Aws::String& GetLocaleId() const{ return m_localeId; } /** *

The locale where the session is in use.

*/ inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); } /** *

The locale where the session is in use.

*/ inline GetSessionRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;} /** *

The locale where the session is in use.

*/ inline GetSessionRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;} /** *

The locale where the session is in use.

*/ inline GetSessionRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;} /** *

The identifier of the session to return.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The identifier of the session to return.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

The identifier of the session to return.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } /** *

The identifier of the session to return.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } /** *

The identifier of the session to return.

*/ inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } /** *

The identifier of the session to return.

*/ inline GetSessionRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The identifier of the session to return.

*/ inline GetSessionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The identifier of the session to return.

*/ inline GetSessionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} private: Aws::String m_botId; bool m_botIdHasBeenSet = false; Aws::String m_botAliasId; bool m_botAliasIdHasBeenSet = false; Aws::String m_localeId; bool m_localeIdHasBeenSet = false; Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws