/** * 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 AWS_COGNITOIDENTITYPROVIDER_API AssociateSoftwareTokenResult { public: AssociateSoftwareTokenResult(); AssociateSoftwareTokenResult(const Aws::AmazonWebServiceResult& result); 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 which 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 which 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 which 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 which 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 which 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 which 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 which 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;} private: Aws::String m_secretCode; Aws::String m_session; }; } // namespace Model } // namespace CognitoIdentityProvider } // namespace Aws