/** * 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 AWS_COGNITOIDENTITY_API GetCredentialsForIdentityResult { public: GetCredentialsForIdentityResult(); GetCredentialsForIdentityResult(const Aws::AmazonWebServiceResult& result); 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;} private: Aws::String m_identityId; Credentials m_credentials; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws