/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CognitoIdentity { namespace Model { /** *

Returned in response to a successful GetCredentialsForIdentity * operation.

See Also:

AWS * API Reference

*/ class GetCredentialsForIdentityResult { public: AWS_COGNITOIDENTITY_API GetCredentialsForIdentityResult(); AWS_COGNITOIDENTITY_API GetCredentialsForIdentityResult(const Aws::AmazonWebServiceResult& result); AWS_COGNITOIDENTITY_API GetCredentialsForIdentityResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A unique identifier in the format REGION:GUID.

*/ inline const Aws::String& GetIdentityId() const{ return m_identityId; } /** *

A unique identifier in the format REGION:GUID.

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

A unique identifier in the format REGION:GUID.

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

A unique identifier in the format REGION:GUID.

*/ inline void SetIdentityId(const char* value) { m_identityId.assign(value); } /** *

A unique identifier in the format REGION:GUID.

*/ inline GetCredentialsForIdentityResult& WithIdentityId(const Aws::String& value) { SetIdentityId(value); return *this;} /** *

A unique identifier in the format REGION:GUID.

*/ inline GetCredentialsForIdentityResult& WithIdentityId(Aws::String&& value) { SetIdentityId(std::move(value)); return *this;} /** *

A unique identifier in the format REGION:GUID.

*/ inline GetCredentialsForIdentityResult& WithIdentityId(const char* value) { SetIdentityId(value); return *this;} /** *

Credentials for the provided identity ID.

*/ inline const Credentials& GetCredentials() const{ return m_credentials; } /** *

Credentials for the provided identity ID.

*/ inline void SetCredentials(const Credentials& value) { m_credentials = value; } /** *

Credentials for the provided identity ID.

*/ inline void SetCredentials(Credentials&& value) { m_credentials = std::move(value); } /** *

Credentials for the provided identity ID.

*/ inline GetCredentialsForIdentityResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;} /** *

Credentials for the provided identity ID.

*/ inline GetCredentialsForIdentityResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(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 GetCredentialsForIdentityResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCredentialsForIdentityResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCredentialsForIdentityResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_identityId; Credentials m_credentials; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws