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

The authentication token for the impersonation role.

*/ inline const Aws::String& GetToken() const{ return m_token; } /** *

The authentication token for the impersonation role.

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

The authentication token for the impersonation role.

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

The authentication token for the impersonation role.

*/ inline void SetToken(const char* value) { m_token.assign(value); } /** *

The authentication token for the impersonation role.

*/ inline AssumeImpersonationRoleResult& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *

The authentication token for the impersonation role.

*/ inline AssumeImpersonationRoleResult& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *

The authentication token for the impersonation role.

*/ inline AssumeImpersonationRoleResult& WithToken(const char* value) { SetToken(value); return *this;} /** *

The authentication token's validity, in seconds.

*/ inline long long GetExpiresIn() const{ return m_expiresIn; } /** *

The authentication token's validity, in seconds.

*/ inline void SetExpiresIn(long long value) { m_expiresIn = value; } /** *

The authentication token's validity, in seconds.

*/ inline AssumeImpersonationRoleResult& WithExpiresIn(long long value) { SetExpiresIn(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 AssumeImpersonationRoleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AssumeImpersonationRoleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AssumeImpersonationRoleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_token; long long m_expiresIn; Aws::String m_requestId; }; } // namespace Model } // namespace WorkMail } // namespace Aws