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

The response to a ListIdentities request.

See Also:

AWS * API Reference

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

An identity pool ID in the format REGION:GUID.

*/ inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; } /** *

An identity pool ID in the format REGION:GUID.

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

An identity pool ID in the format REGION:GUID.

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

An identity pool ID in the format REGION:GUID.

*/ inline void SetIdentityPoolId(const char* value) { m_identityPoolId.assign(value); } /** *

An identity pool ID in the format REGION:GUID.

*/ inline ListIdentitiesResult& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;} /** *

An identity pool ID in the format REGION:GUID.

*/ inline ListIdentitiesResult& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;} /** *

An identity pool ID in the format REGION:GUID.

*/ inline ListIdentitiesResult& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;} /** *

An object containing a set of identities and associated mappings.

*/ inline const Aws::Vector& GetIdentities() const{ return m_identities; } /** *

An object containing a set of identities and associated mappings.

*/ inline void SetIdentities(const Aws::Vector& value) { m_identities = value; } /** *

An object containing a set of identities and associated mappings.

*/ inline void SetIdentities(Aws::Vector&& value) { m_identities = std::move(value); } /** *

An object containing a set of identities and associated mappings.

*/ inline ListIdentitiesResult& WithIdentities(const Aws::Vector& value) { SetIdentities(value); return *this;} /** *

An object containing a set of identities and associated mappings.

*/ inline ListIdentitiesResult& WithIdentities(Aws::Vector&& value) { SetIdentities(std::move(value)); return *this;} /** *

An object containing a set of identities and associated mappings.

*/ inline ListIdentitiesResult& AddIdentities(const IdentityDescription& value) { m_identities.push_back(value); return *this; } /** *

An object containing a set of identities and associated mappings.

*/ inline ListIdentitiesResult& AddIdentities(IdentityDescription&& value) { m_identities.push_back(std::move(value)); return *this; } /** *

A pagination token.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A pagination token.

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

A pagination token.

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

A pagination token.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

A pagination token.

*/ inline ListIdentitiesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A pagination token.

*/ inline ListIdentitiesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A pagination token.

*/ inline ListIdentitiesResult& WithNextToken(const char* value) { SetNextToken(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 ListIdentitiesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListIdentitiesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListIdentitiesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_identityPoolId; Aws::Vector m_identities; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws