/** * 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 { namespace SES { namespace Model { /** *

Represents a request to return a list of all identities (email addresses and * domains) that you have attempted to verify under your AWS account, regardless of * verification status.

See Also:

AWS * API Reference

*/ class ListIdentitiesRequest : public SESRequest { public: AWS_SES_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_SES_API Aws::String SerializePayload() const override; protected: AWS_SES_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The type of the identities to list. Possible values are "EmailAddress" and * "Domain". If this parameter is omitted, then all identities will be listed.

*/ inline const IdentityType& GetIdentityType() const{ return m_identityType; } /** *

The type of the identities to list. Possible values are "EmailAddress" and * "Domain". If this parameter is omitted, then all identities will be listed.

*/ inline bool IdentityTypeHasBeenSet() const { return m_identityTypeHasBeenSet; } /** *

The type of the identities to list. Possible values are "EmailAddress" and * "Domain". If this parameter is omitted, then all identities will be listed.

*/ inline void SetIdentityType(const IdentityType& value) { m_identityTypeHasBeenSet = true; m_identityType = value; } /** *

The type of the identities to list. Possible values are "EmailAddress" and * "Domain". If this parameter is omitted, then all identities will be listed.

*/ inline void SetIdentityType(IdentityType&& value) { m_identityTypeHasBeenSet = true; m_identityType = std::move(value); } /** *

The type of the identities to list. Possible values are "EmailAddress" and * "Domain". If this parameter is omitted, then all identities will be listed.

*/ inline ListIdentitiesRequest& WithIdentityType(const IdentityType& value) { SetIdentityType(value); return *this;} /** *

The type of the identities to list. Possible values are "EmailAddress" and * "Domain". If this parameter is omitted, then all identities will be listed.

*/ inline ListIdentitiesRequest& WithIdentityType(IdentityType&& value) { SetIdentityType(std::move(value)); return *this;} /** *

The token to use for pagination.

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

The token to use for pagination.

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

The token to use for pagination.

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

The token to use for pagination.

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

The token to use for pagination.

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

The token to use for pagination.

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

The token to use for pagination.

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

The token to use for pagination.

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

The maximum number of identities per page. Possible values are 1-1000 * inclusive.

*/ inline int GetMaxItems() const{ return m_maxItems; } /** *

The maximum number of identities per page. Possible values are 1-1000 * inclusive.

*/ inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; } /** *

The maximum number of identities per page. Possible values are 1-1000 * inclusive.

*/ inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; } /** *

The maximum number of identities per page. Possible values are 1-1000 * inclusive.

*/ inline ListIdentitiesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;} private: IdentityType m_identityType; bool m_identityTypeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxItems; bool m_maxItemsHasBeenSet = false; }; } // namespace Model } // namespace SES } // namespace Aws