/** * 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 TranscribeService { namespace Model { /** */ class ListVocabulariesRequest : public TranscribeServiceRequest { public: AWS_TRANSCRIBESERVICE_API ListVocabulariesRequest(); // 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 "ListVocabularies"; } AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override; AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

If your ListVocabularies request returns more results than can * be displayed, NextToken is displayed in the response with an * associated string. To get the next page of results, copy this string and repeat * your request, including NextToken with the value of the copied * string. Repeat as needed to view all your results.

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

If your ListVocabularies request returns more results than can * be displayed, NextToken is displayed in the response with an * associated string. To get the next page of results, copy this string and repeat * your request, including NextToken with the value of the copied * string. Repeat as needed to view all your results.

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

If your ListVocabularies request returns more results than can * be displayed, NextToken is displayed in the response with an * associated string. To get the next page of results, copy this string and repeat * your request, including NextToken with the value of the copied * string. Repeat as needed to view all your results.

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

If your ListVocabularies request returns more results than can * be displayed, NextToken is displayed in the response with an * associated string. To get the next page of results, copy this string and repeat * your request, including NextToken with the value of the copied * string. Repeat as needed to view all your results.

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

If your ListVocabularies request returns more results than can * be displayed, NextToken is displayed in the response with an * associated string. To get the next page of results, copy this string and repeat * your request, including NextToken with the value of the copied * string. Repeat as needed to view all your results.

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

If your ListVocabularies request returns more results than can * be displayed, NextToken is displayed in the response with an * associated string. To get the next page of results, copy this string and repeat * your request, including NextToken with the value of the copied * string. Repeat as needed to view all your results.

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

If your ListVocabularies request returns more results than can * be displayed, NextToken is displayed in the response with an * associated string. To get the next page of results, copy this string and repeat * your request, including NextToken with the value of the copied * string. Repeat as needed to view all your results.

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

If your ListVocabularies request returns more results than can * be displayed, NextToken is displayed in the response with an * associated string. To get the next page of results, copy this string and repeat * your request, including NextToken with the value of the copied * string. Repeat as needed to view all your results.

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

The maximum number of custom vocabularies to return in each page of results. * If there are fewer results than the value that you specify, only the actual * results are returned. If you don't specify a value, a default of 5 is used.

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

The maximum number of custom vocabularies to return in each page of results. * If there are fewer results than the value that you specify, only the actual * results are returned. If you don't specify a value, a default of 5 is used.

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

The maximum number of custom vocabularies to return in each page of results. * If there are fewer results than the value that you specify, only the actual * results are returned. If you don't specify a value, a default of 5 is used.

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

The maximum number of custom vocabularies to return in each page of results. * If there are fewer results than the value that you specify, only the actual * results are returned. If you don't specify a value, a default of 5 is used.

*/ inline ListVocabulariesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

Returns only custom vocabularies with the specified state. Vocabularies are * ordered by creation date, with the newest vocabulary first. If you don't include * StateEquals, all custom medical vocabularies are returned.

*/ inline const VocabularyState& GetStateEquals() const{ return m_stateEquals; } /** *

Returns only custom vocabularies with the specified state. Vocabularies are * ordered by creation date, with the newest vocabulary first. If you don't include * StateEquals, all custom medical vocabularies are returned.

*/ inline bool StateEqualsHasBeenSet() const { return m_stateEqualsHasBeenSet; } /** *

Returns only custom vocabularies with the specified state. Vocabularies are * ordered by creation date, with the newest vocabulary first. If you don't include * StateEquals, all custom medical vocabularies are returned.

*/ inline void SetStateEquals(const VocabularyState& value) { m_stateEqualsHasBeenSet = true; m_stateEquals = value; } /** *

Returns only custom vocabularies with the specified state. Vocabularies are * ordered by creation date, with the newest vocabulary first. If you don't include * StateEquals, all custom medical vocabularies are returned.

*/ inline void SetStateEquals(VocabularyState&& value) { m_stateEqualsHasBeenSet = true; m_stateEquals = std::move(value); } /** *

Returns only custom vocabularies with the specified state. Vocabularies are * ordered by creation date, with the newest vocabulary first. If you don't include * StateEquals, all custom medical vocabularies are returned.

*/ inline ListVocabulariesRequest& WithStateEquals(const VocabularyState& value) { SetStateEquals(value); return *this;} /** *

Returns only custom vocabularies with the specified state. Vocabularies are * ordered by creation date, with the newest vocabulary first. If you don't include * StateEquals, all custom medical vocabularies are returned.

*/ inline ListVocabulariesRequest& WithStateEquals(VocabularyState&& value) { SetStateEquals(std::move(value)); return *this;} /** *

Returns only the custom vocabularies that contain the specified string. The * search is not case sensitive.

*/ inline const Aws::String& GetNameContains() const{ return m_nameContains; } /** *

Returns only the custom vocabularies that contain the specified string. The * search is not case sensitive.

*/ inline bool NameContainsHasBeenSet() const { return m_nameContainsHasBeenSet; } /** *

Returns only the custom vocabularies that contain the specified string. The * search is not case sensitive.

*/ inline void SetNameContains(const Aws::String& value) { m_nameContainsHasBeenSet = true; m_nameContains = value; } /** *

Returns only the custom vocabularies that contain the specified string. The * search is not case sensitive.

*/ inline void SetNameContains(Aws::String&& value) { m_nameContainsHasBeenSet = true; m_nameContains = std::move(value); } /** *

Returns only the custom vocabularies that contain the specified string. The * search is not case sensitive.

*/ inline void SetNameContains(const char* value) { m_nameContainsHasBeenSet = true; m_nameContains.assign(value); } /** *

Returns only the custom vocabularies that contain the specified string. The * search is not case sensitive.

*/ inline ListVocabulariesRequest& WithNameContains(const Aws::String& value) { SetNameContains(value); return *this;} /** *

Returns only the custom vocabularies that contain the specified string. The * search is not case sensitive.

*/ inline ListVocabulariesRequest& WithNameContains(Aws::String&& value) { SetNameContains(std::move(value)); return *this;} /** *

Returns only the custom vocabularies that contain the specified string. The * search is not case sensitive.

*/ inline ListVocabulariesRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; VocabularyState m_stateEquals; bool m_stateEqualsHasBeenSet = false; Aws::String m_nameContains; bool m_nameContainsHasBeenSet = false; }; } // namespace Model } // namespace TranscribeService } // namespace Aws