/** * 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 AmplifyBackend { namespace Model { /** */ class GetTokenRequest : public AmplifyBackendRequest { public: AWS_AMPLIFYBACKEND_API GetTokenRequest(); // 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 "GetToken"; } AWS_AMPLIFYBACKEND_API Aws::String SerializePayload() const override; /** *

The app ID.

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

The app ID.

*/ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** *

The app ID.

*/ inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } /** *

The app ID.

*/ inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } /** *

The app ID.

*/ inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } /** *

The app ID.

*/ inline GetTokenRequest& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The app ID.

*/ inline GetTokenRequest& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

The app ID.

*/ inline GetTokenRequest& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

The session ID.

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

The session ID.

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

The session ID.

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

The session ID.

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

The session ID.

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

The session ID.

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

The session ID.

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

The session ID.

*/ inline GetTokenRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} private: Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws