/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace PinpointSMSVoiceV2 { namespace Model { /** */ class DescribeOptedOutNumbersRequest : public PinpointSMSVoiceV2Request { public: AWS_PINPOINTSMSVOICEV2_API DescribeOptedOutNumbersRequest(); // 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 "DescribeOptedOutNumbers"; } AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and * OptOutListArn.

*/ inline const Aws::String& GetOptOutListName() const{ return m_optOutListName; } /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and * OptOutListArn.

*/ inline bool OptOutListNameHasBeenSet() const { return m_optOutListNameHasBeenSet; } /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and * OptOutListArn.

*/ inline void SetOptOutListName(const Aws::String& value) { m_optOutListNameHasBeenSet = true; m_optOutListName = value; } /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and * OptOutListArn.

*/ inline void SetOptOutListName(Aws::String&& value) { m_optOutListNameHasBeenSet = true; m_optOutListName = std::move(value); } /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and * OptOutListArn.

*/ inline void SetOptOutListName(const char* value) { m_optOutListNameHasBeenSet = true; m_optOutListName.assign(value); } /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and * OptOutListArn.

*/ inline DescribeOptedOutNumbersRequest& WithOptOutListName(const Aws::String& value) { SetOptOutListName(value); return *this;} /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and * OptOutListArn.

*/ inline DescribeOptedOutNumbersRequest& WithOptOutListName(Aws::String&& value) { SetOptOutListName(std::move(value)); return *this;} /** *

The OptOutListName or OptOutListArn of the OptOutList. You can use * DescribeOptOutLists to find the values for OptOutListName and * OptOutListArn.

*/ inline DescribeOptedOutNumbersRequest& WithOptOutListName(const char* value) { SetOptOutListName(value); return *this;} /** *

An array of phone numbers to search for in the OptOutList.

*/ inline const Aws::Vector& GetOptedOutNumbers() const{ return m_optedOutNumbers; } /** *

An array of phone numbers to search for in the OptOutList.

*/ inline bool OptedOutNumbersHasBeenSet() const { return m_optedOutNumbersHasBeenSet; } /** *

An array of phone numbers to search for in the OptOutList.

*/ inline void SetOptedOutNumbers(const Aws::Vector& value) { m_optedOutNumbersHasBeenSet = true; m_optedOutNumbers = value; } /** *

An array of phone numbers to search for in the OptOutList.

*/ inline void SetOptedOutNumbers(Aws::Vector&& value) { m_optedOutNumbersHasBeenSet = true; m_optedOutNumbers = std::move(value); } /** *

An array of phone numbers to search for in the OptOutList.

*/ inline DescribeOptedOutNumbersRequest& WithOptedOutNumbers(const Aws::Vector& value) { SetOptedOutNumbers(value); return *this;} /** *

An array of phone numbers to search for in the OptOutList.

*/ inline DescribeOptedOutNumbersRequest& WithOptedOutNumbers(Aws::Vector&& value) { SetOptedOutNumbers(std::move(value)); return *this;} /** *

An array of phone numbers to search for in the OptOutList.

*/ inline DescribeOptedOutNumbersRequest& AddOptedOutNumbers(const Aws::String& value) { m_optedOutNumbersHasBeenSet = true; m_optedOutNumbers.push_back(value); return *this; } /** *

An array of phone numbers to search for in the OptOutList.

*/ inline DescribeOptedOutNumbersRequest& AddOptedOutNumbers(Aws::String&& value) { m_optedOutNumbersHasBeenSet = true; m_optedOutNumbers.push_back(std::move(value)); return *this; } /** *

An array of phone numbers to search for in the OptOutList.

*/ inline DescribeOptedOutNumbersRequest& AddOptedOutNumbers(const char* value) { m_optedOutNumbersHasBeenSet = true; m_optedOutNumbers.push_back(value); return *this; } /** *

An array of OptedOutFilter objects to filter the results on.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

An array of OptedOutFilter objects to filter the results on.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

An array of OptedOutFilter objects to filter the results on.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

An array of OptedOutFilter objects to filter the results on.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

An array of OptedOutFilter objects to filter the results on.

*/ inline DescribeOptedOutNumbersRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

An array of OptedOutFilter objects to filter the results on.

*/ inline DescribeOptedOutNumbersRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

An array of OptedOutFilter objects to filter the results on.

*/ inline DescribeOptedOutNumbersRequest& AddFilters(const OptedOutFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

An array of OptedOutFilter objects to filter the results on.

*/ inline DescribeOptedOutNumbersRequest& AddFilters(OptedOutFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The token to be used for the next set of paginated results. You don't need to * supply a value for this field in the initial request.

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

The token to be used for the next set of paginated results. You don't need to * supply a value for this field in the initial request.

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

The token to be used for the next set of paginated results. You don't need to * supply a value for this field in the initial request.

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

The token to be used for the next set of paginated results. You don't need to * supply a value for this field in the initial request.

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

The token to be used for the next set of paginated results. You don't need to * supply a value for this field in the initial request.

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

The token to be used for the next set of paginated results. You don't need to * supply a value for this field in the initial request.

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

The token to be used for the next set of paginated results. You don't need to * supply a value for this field in the initial request.

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

The token to be used for the next set of paginated results. You don't need to * supply a value for this field in the initial request.

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

The maximum number of results to return per each request.

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

The maximum number of results to return per each request.

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

The maximum number of results to return per each request.

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

The maximum number of results to return per each request.

*/ inline DescribeOptedOutNumbersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_optOutListName; bool m_optOutListNameHasBeenSet = false; Aws::Vector m_optedOutNumbers; bool m_optedOutNumbersHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws