/** * 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 Http { class URI; } //namespace Http namespace Pinpoint { namespace Model { /** */ class ListTemplatesRequest : public PinpointRequest { public: AWS_PINPOINT_API ListTemplatesRequest(); // 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 "ListTemplates"; } AWS_PINPOINT_API Aws::String SerializePayload() const override; AWS_PINPOINT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The string that specifies which page of results to return in a paginated * response. This parameter is not supported for application, campaign, and journey * metrics.

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

The string that specifies which page of results to return in a paginated * response. This parameter is not supported for application, campaign, and journey * metrics.

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

The string that specifies which page of results to return in a paginated * response. This parameter is not supported for application, campaign, and journey * metrics.

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

The string that specifies which page of results to return in a paginated * response. This parameter is not supported for application, campaign, and journey * metrics.

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

The string that specifies which page of results to return in a paginated * response. This parameter is not supported for application, campaign, and journey * metrics.

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

The string that specifies which page of results to return in a paginated * response. This parameter is not supported for application, campaign, and journey * metrics.

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

The string that specifies which page of results to return in a paginated * response. This parameter is not supported for application, campaign, and journey * metrics.

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

The string that specifies which page of results to return in a paginated * response. This parameter is not supported for application, campaign, and journey * metrics.

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

The maximum number of items to include in each page of a paginated response. * This parameter is not supported for application, campaign, and journey * metrics.

*/ inline const Aws::String& GetPageSize() const{ return m_pageSize; } /** *

The maximum number of items to include in each page of a paginated response. * This parameter is not supported for application, campaign, and journey * metrics.

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

The maximum number of items to include in each page of a paginated response. * This parameter is not supported for application, campaign, and journey * metrics.

*/ inline void SetPageSize(const Aws::String& value) { m_pageSizeHasBeenSet = true; m_pageSize = value; } /** *

The maximum number of items to include in each page of a paginated response. * This parameter is not supported for application, campaign, and journey * metrics.

*/ inline void SetPageSize(Aws::String&& value) { m_pageSizeHasBeenSet = true; m_pageSize = std::move(value); } /** *

The maximum number of items to include in each page of a paginated response. * This parameter is not supported for application, campaign, and journey * metrics.

*/ inline void SetPageSize(const char* value) { m_pageSizeHasBeenSet = true; m_pageSize.assign(value); } /** *

The maximum number of items to include in each page of a paginated response. * This parameter is not supported for application, campaign, and journey * metrics.

*/ inline ListTemplatesRequest& WithPageSize(const Aws::String& value) { SetPageSize(value); return *this;} /** *

The maximum number of items to include in each page of a paginated response. * This parameter is not supported for application, campaign, and journey * metrics.

*/ inline ListTemplatesRequest& WithPageSize(Aws::String&& value) { SetPageSize(std::move(value)); return *this;} /** *

The maximum number of items to include in each page of a paginated response. * This parameter is not supported for application, campaign, and journey * metrics.

*/ inline ListTemplatesRequest& WithPageSize(const char* value) { SetPageSize(value); return *this;} /** *

The substring to match in the names of the message templates to include in * the results. If you specify this value, Amazon Pinpoint returns only those * templates whose names begin with the value that you specify.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

The substring to match in the names of the message templates to include in * the results. If you specify this value, Amazon Pinpoint returns only those * templates whose names begin with the value that you specify.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

The substring to match in the names of the message templates to include in * the results. If you specify this value, Amazon Pinpoint returns only those * templates whose names begin with the value that you specify.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

The substring to match in the names of the message templates to include in * the results. If you specify this value, Amazon Pinpoint returns only those * templates whose names begin with the value that you specify.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

The substring to match in the names of the message templates to include in * the results. If you specify this value, Amazon Pinpoint returns only those * templates whose names begin with the value that you specify.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

The substring to match in the names of the message templates to include in * the results. If you specify this value, Amazon Pinpoint returns only those * templates whose names begin with the value that you specify.

*/ inline ListTemplatesRequest& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

The substring to match in the names of the message templates to include in * the results. If you specify this value, Amazon Pinpoint returns only those * templates whose names begin with the value that you specify.

*/ inline ListTemplatesRequest& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

The substring to match in the names of the message templates to include in * the results. If you specify this value, Amazon Pinpoint returns only those * templates whose names begin with the value that you specify.

*/ inline ListTemplatesRequest& WithPrefix(const char* value) { SetPrefix(value); return *this;} /** *

The type of message template to include in the results. Valid values are: * EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, * don't include this parameter in your request.

*/ inline const Aws::String& GetTemplateType() const{ return m_templateType; } /** *

The type of message template to include in the results. Valid values are: * EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, * don't include this parameter in your request.

*/ inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; } /** *

The type of message template to include in the results. Valid values are: * EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, * don't include this parameter in your request.

*/ inline void SetTemplateType(const Aws::String& value) { m_templateTypeHasBeenSet = true; m_templateType = value; } /** *

The type of message template to include in the results. Valid values are: * EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, * don't include this parameter in your request.

*/ inline void SetTemplateType(Aws::String&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); } /** *

The type of message template to include in the results. Valid values are: * EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, * don't include this parameter in your request.

*/ inline void SetTemplateType(const char* value) { m_templateTypeHasBeenSet = true; m_templateType.assign(value); } /** *

The type of message template to include in the results. Valid values are: * EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, * don't include this parameter in your request.

*/ inline ListTemplatesRequest& WithTemplateType(const Aws::String& value) { SetTemplateType(value); return *this;} /** *

The type of message template to include in the results. Valid values are: * EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, * don't include this parameter in your request.

*/ inline ListTemplatesRequest& WithTemplateType(Aws::String&& value) { SetTemplateType(std::move(value)); return *this;} /** *

The type of message template to include in the results. Valid values are: * EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, * don't include this parameter in your request.

*/ inline ListTemplatesRequest& WithTemplateType(const char* value) { SetTemplateType(value); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_pageSize; bool m_pageSizeHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; Aws::String m_templateType; bool m_templateTypeHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws