/** * 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 PinpointSMSVoiceV2 { namespace Model { /** */ class DescribeOptOutListsRequest : public PinpointSMSVoiceV2Request { public: AWS_PINPOINTSMSVOICEV2_API DescribeOptOutListsRequest(); // 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 "DescribeOptOutLists"; } AWS_PINPOINTSMSVOICEV2_API Aws::String SerializePayload() const override; AWS_PINPOINTSMSVOICEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline const Aws::Vector& GetOptOutListNames() const{ return m_optOutListNames; } /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline bool OptOutListNamesHasBeenSet() const { return m_optOutListNamesHasBeenSet; } /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline void SetOptOutListNames(const Aws::Vector& value) { m_optOutListNamesHasBeenSet = true; m_optOutListNames = value; } /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline void SetOptOutListNames(Aws::Vector&& value) { m_optOutListNamesHasBeenSet = true; m_optOutListNames = std::move(value); } /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline DescribeOptOutListsRequest& WithOptOutListNames(const Aws::Vector& value) { SetOptOutListNames(value); return *this;} /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline DescribeOptOutListsRequest& WithOptOutListNames(Aws::Vector&& value) { SetOptOutListNames(std::move(value)); return *this;} /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline DescribeOptOutListsRequest& AddOptOutListNames(const Aws::String& value) { m_optOutListNamesHasBeenSet = true; m_optOutListNames.push_back(value); return *this; } /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline DescribeOptOutListsRequest& AddOptOutListNames(Aws::String&& value) { m_optOutListNamesHasBeenSet = true; m_optOutListNames.push_back(std::move(value)); return *this; } /** *

The OptOutLists to show the details of. This is an array of strings that can * be either the OptOutListName or OptOutListArn.

*/ inline DescribeOptOutListsRequest& AddOptOutListNames(const char* value) { m_optOutListNamesHasBeenSet = true; m_optOutListNames.push_back(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 DescribeOptOutListsRequest& 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 DescribeOptOutListsRequest& 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 DescribeOptOutListsRequest& 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 DescribeOptOutListsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::Vector m_optOutListNames; bool m_optOutListNamesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws