/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace AmplifyBackend { namespace Model { class GetTokenResult { public: AWS_AMPLIFYBACKEND_API GetTokenResult(); AWS_AMPLIFYBACKEND_API GetTokenResult(const Aws::AmazonWebServiceResult& result); AWS_AMPLIFYBACKEND_API GetTokenResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The app ID.

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

The app ID.

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

The app ID.

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

The app ID.

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

The app ID.

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

The app ID.

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

The app ID.

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

The one-time challenge code for authenticating into the Amplify Admin UI.

*/ inline const Aws::String& GetChallengeCode() const{ return m_challengeCode; } /** *

The one-time challenge code for authenticating into the Amplify Admin UI.

*/ inline void SetChallengeCode(const Aws::String& value) { m_challengeCode = value; } /** *

The one-time challenge code for authenticating into the Amplify Admin UI.

*/ inline void SetChallengeCode(Aws::String&& value) { m_challengeCode = std::move(value); } /** *

The one-time challenge code for authenticating into the Amplify Admin UI.

*/ inline void SetChallengeCode(const char* value) { m_challengeCode.assign(value); } /** *

The one-time challenge code for authenticating into the Amplify Admin UI.

*/ inline GetTokenResult& WithChallengeCode(const Aws::String& value) { SetChallengeCode(value); return *this;} /** *

The one-time challenge code for authenticating into the Amplify Admin UI.

*/ inline GetTokenResult& WithChallengeCode(Aws::String&& value) { SetChallengeCode(std::move(value)); return *this;} /** *

The one-time challenge code for authenticating into the Amplify Admin UI.

*/ inline GetTokenResult& WithChallengeCode(const char* value) { SetChallengeCode(value); return *this;} /** *

A unique ID provided when creating a new challenge token.

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

A unique ID provided when creating a new challenge token.

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

A unique ID provided when creating a new challenge token.

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

A unique ID provided when creating a new challenge token.

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

A unique ID provided when creating a new challenge token.

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

A unique ID provided when creating a new challenge token.

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

A unique ID provided when creating a new challenge token.

*/ inline GetTokenResult& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

The expiry time for the one-time generated token code.

*/ inline const Aws::String& GetTtl() const{ return m_ttl; } /** *

The expiry time for the one-time generated token code.

*/ inline void SetTtl(const Aws::String& value) { m_ttl = value; } /** *

The expiry time for the one-time generated token code.

*/ inline void SetTtl(Aws::String&& value) { m_ttl = std::move(value); } /** *

The expiry time for the one-time generated token code.

*/ inline void SetTtl(const char* value) { m_ttl.assign(value); } /** *

The expiry time for the one-time generated token code.

*/ inline GetTokenResult& WithTtl(const Aws::String& value) { SetTtl(value); return *this;} /** *

The expiry time for the one-time generated token code.

*/ inline GetTokenResult& WithTtl(Aws::String&& value) { SetTtl(std::move(value)); return *this;} /** *

The expiry time for the one-time generated token code.

*/ inline GetTokenResult& WithTtl(const char* value) { SetTtl(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_appId; Aws::String m_challengeCode; Aws::String m_sessionId; Aws::String m_ttl; Aws::String m_requestId; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws