/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace CognitoIdentity { namespace Model { /** *

Input to the ListIdentities action.

See Also:

AWS * API Reference

*/ class ListIdentitiesRequest : public CognitoIdentityRequest { public: AWS_COGNITOIDENTITY_API ListIdentitiesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ListIdentities"; } AWS_COGNITOIDENTITY_API Aws::String SerializePayload() const override; AWS_COGNITOIDENTITY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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 bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; } /** *

An identity pool ID in the format REGION:GUID.

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

An identity pool ID in the format REGION:GUID.

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

An identity pool ID in the format REGION:GUID.

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

An identity pool ID in the format REGION:GUID.

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

An identity pool ID in the format REGION:GUID.

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

An identity pool ID in the format REGION:GUID.

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

The maximum number of identities to return.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of identities to return.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of identities to return.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of identities to return.

*/ inline ListIdentitiesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

A pagination token.

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

A pagination token.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

A pagination token.

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

A pagination token.

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

A pagination token.

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

A pagination token.

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

A pagination token.

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

A pagination token.

*/ inline ListIdentitiesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

An optional boolean parameter that allows you to hide disabled identities. If * omitted, the ListIdentities API will include disabled identities in the * response.

*/ inline bool GetHideDisabled() const{ return m_hideDisabled; } /** *

An optional boolean parameter that allows you to hide disabled identities. If * omitted, the ListIdentities API will include disabled identities in the * response.

*/ inline bool HideDisabledHasBeenSet() const { return m_hideDisabledHasBeenSet; } /** *

An optional boolean parameter that allows you to hide disabled identities. If * omitted, the ListIdentities API will include disabled identities in the * response.

*/ inline void SetHideDisabled(bool value) { m_hideDisabledHasBeenSet = true; m_hideDisabled = value; } /** *

An optional boolean parameter that allows you to hide disabled identities. If * omitted, the ListIdentities API will include disabled identities in the * response.

*/ inline ListIdentitiesRequest& WithHideDisabled(bool value) { SetHideDisabled(value); return *this;} private: Aws::String m_identityPoolId; bool m_identityPoolIdHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; bool m_hideDisabled; bool m_hideDisabledHasBeenSet = false; }; } // namespace Model } // namespace CognitoIdentity } // namespace Aws