/** * 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 Http { class URI; } //namespace Http namespace SESV2 { namespace Model { /** */ class ListContactsRequest : public SESV2Request { public: AWS_SESV2_API ListContactsRequest(); // 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 "ListContacts"; } AWS_SESV2_API Aws::String SerializePayload() const override; AWS_SESV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The name of the contact list.

*/ inline const Aws::String& GetContactListName() const{ return m_contactListName; } /** *

The name of the contact list.

*/ inline bool ContactListNameHasBeenSet() const { return m_contactListNameHasBeenSet; } /** *

The name of the contact list.

*/ inline void SetContactListName(const Aws::String& value) { m_contactListNameHasBeenSet = true; m_contactListName = value; } /** *

The name of the contact list.

*/ inline void SetContactListName(Aws::String&& value) { m_contactListNameHasBeenSet = true; m_contactListName = std::move(value); } /** *

The name of the contact list.

*/ inline void SetContactListName(const char* value) { m_contactListNameHasBeenSet = true; m_contactListName.assign(value); } /** *

The name of the contact list.

*/ inline ListContactsRequest& WithContactListName(const Aws::String& value) { SetContactListName(value); return *this;} /** *

The name of the contact list.

*/ inline ListContactsRequest& WithContactListName(Aws::String&& value) { SetContactListName(std::move(value)); return *this;} /** *

The name of the contact list.

*/ inline ListContactsRequest& WithContactListName(const char* value) { SetContactListName(value); return *this;} /** *

A filter that can be applied to a list of contacts.

*/ inline const ListContactsFilter& GetFilter() const{ return m_filter; } /** *

A filter that can be applied to a list of contacts.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

A filter that can be applied to a list of contacts.

*/ inline void SetFilter(const ListContactsFilter& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

A filter that can be applied to a list of contacts.

*/ inline void SetFilter(ListContactsFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

A filter that can be applied to a list of contacts.

*/ inline ListContactsRequest& WithFilter(const ListContactsFilter& value) { SetFilter(value); return *this;} /** *

A filter that can be applied to a list of contacts.

*/ inline ListContactsRequest& WithFilter(ListContactsFilter&& value) { SetFilter(std::move(value)); return *this;} /** *

The number of contacts that may be returned at once, which is dependent on if * there are more or less contacts than the value of the PageSize. Use this * parameter to paginate results. If additional contacts exist beyond the specified * limit, the NextToken element is sent in the response. Use the * NextToken value in subsequent requests to retrieve additional * contacts.

*/ inline int GetPageSize() const{ return m_pageSize; } /** *

The number of contacts that may be returned at once, which is dependent on if * there are more or less contacts than the value of the PageSize. Use this * parameter to paginate results. If additional contacts exist beyond the specified * limit, the NextToken element is sent in the response. Use the * NextToken value in subsequent requests to retrieve additional * contacts.

*/ inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; } /** *

The number of contacts that may be returned at once, which is dependent on if * there are more or less contacts than the value of the PageSize. Use this * parameter to paginate results. If additional contacts exist beyond the specified * limit, the NextToken element is sent in the response. Use the * NextToken value in subsequent requests to retrieve additional * contacts.

*/ inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } /** *

The number of contacts that may be returned at once, which is dependent on if * there are more or less contacts than the value of the PageSize. Use this * parameter to paginate results. If additional contacts exist beyond the specified * limit, the NextToken element is sent in the response. Use the * NextToken value in subsequent requests to retrieve additional * contacts.

*/ inline ListContactsRequest& WithPageSize(int value) { SetPageSize(value); return *this;} /** *

A string token indicating that there might be additional contacts available * to be listed. Use the token provided in the Response to use in the subsequent * call to ListContacts with the same parameters to retrieve the next page of * contacts.

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

A string token indicating that there might be additional contacts available * to be listed. Use the token provided in the Response to use in the subsequent * call to ListContacts with the same parameters to retrieve the next page of * contacts.

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

A string token indicating that there might be additional contacts available * to be listed. Use the token provided in the Response to use in the subsequent * call to ListContacts with the same parameters to retrieve the next page of * contacts.

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

A string token indicating that there might be additional contacts available * to be listed. Use the token provided in the Response to use in the subsequent * call to ListContacts with the same parameters to retrieve the next page of * contacts.

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

A string token indicating that there might be additional contacts available * to be listed. Use the token provided in the Response to use in the subsequent * call to ListContacts with the same parameters to retrieve the next page of * contacts.

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

A string token indicating that there might be additional contacts available * to be listed. Use the token provided in the Response to use in the subsequent * call to ListContacts with the same parameters to retrieve the next page of * contacts.

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

A string token indicating that there might be additional contacts available * to be listed. Use the token provided in the Response to use in the subsequent * call to ListContacts with the same parameters to retrieve the next page of * contacts.

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

A string token indicating that there might be additional contacts available * to be listed. Use the token provided in the Response to use in the subsequent * call to ListContacts with the same parameters to retrieve the next page of * contacts.

*/ inline ListContactsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_contactListName; bool m_contactListNameHasBeenSet = false; ListContactsFilter m_filter; bool m_filterHasBeenSet = false; int m_pageSize; bool m_pageSizeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws