/** * 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 CognitoIdentityProvider { namespace Model { class AssociateSoftwareTokenResult { public: AWS_COGNITOIDENTITYPROVIDER_API AssociateSoftwareTokenResult(); AWS_COGNITOIDENTITYPROVIDER_API AssociateSoftwareTokenResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOIDENTITYPROVIDER_API AssociateSoftwareTokenResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A unique generated shared secret code that is used in the TOTP algorithm to * generate a one-time code.

*/ inline const Aws::String& GetSecretCode() const{ return m_secretCode; } /** *

A unique generated shared secret code that is used in the TOTP algorithm to * generate a one-time code.

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

A unique generated shared secret code that is used in the TOTP algorithm to * generate a one-time code.

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

A unique generated shared secret code that is used in the TOTP algorithm to * generate a one-time code.

*/ inline void SetSecretCode(const char* value) { m_secretCode.assign(value); } /** *

A unique generated shared secret code that is used in the TOTP algorithm to * generate a one-time code.

*/ inline AssociateSoftwareTokenResult& WithSecretCode(const Aws::String& value) { SetSecretCode(value); return *this;} /** *

A unique generated shared secret code that is used in the TOTP algorithm to * generate a one-time code.

*/ inline AssociateSoftwareTokenResult& WithSecretCode(Aws::String&& value) { SetSecretCode(std::move(value)); return *this;} /** *

A unique generated shared secret code that is used in the TOTP algorithm to * generate a one-time code.

*/ inline AssociateSoftwareTokenResult& WithSecretCode(const char* value) { SetSecretCode(value); return *this;} /** *

The session that should be passed both ways in challenge-response calls to * the service. This allows authentication of the user as part of the MFA setup * process.

*/ inline const Aws::String& GetSession() const{ return m_session; } /** *

The session that should be passed both ways in challenge-response calls to * the service. This allows authentication of the user as part of the MFA setup * process.

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

The session that should be passed both ways in challenge-response calls to * the service. This allows authentication of the user as part of the MFA setup * process.

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

The session that should be passed both ways in challenge-response calls to * the service. This allows authentication of the user as part of the MFA setup * process.

*/ inline void SetSession(const char* value) { m_session.assign(value); } /** *

The session that should be passed both ways in challenge-response calls to * the service. This allows authentication of the user as part of the MFA setup * process.

*/ inline AssociateSoftwareTokenResult& WithSession(const Aws::String& value) { SetSession(value); return *this;} /** *

The session that should be passed both ways in challenge-response calls to * the service. This allows authentication of the user as part of the MFA setup * process.

*/ inline AssociateSoftwareTokenResult& WithSession(Aws::String&& value) { SetSession(std::move(value)); return *this;} /** *

The session that should be passed both ways in challenge-response calls to * the service. This allows authentication of the user as part of the MFA setup * process.

*/ inline AssociateSoftwareTokenResult& WithSession(const char* value) { SetSession(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 AssociateSoftwareTokenResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AssociateSoftwareTokenResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AssociateSoftwareTokenResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_secretCode; Aws::String m_session; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws