/** * 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 ListLanguageModelsRequest : public TranscribeServiceRequest { public: AWS_TRANSCRIBESERVICE_API ListLanguageModelsRequest(); // 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 "ListLanguageModels"; } AWS_TRANSCRIBESERVICE_API Aws::String SerializePayload() const override; AWS_TRANSCRIBESERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Returns only custom language models with the specified status. Language * models are ordered by creation date, with the newest model first. If you don't * include StatusEquals, all custom language models are returned.

*/ inline const ModelStatus& GetStatusEquals() const{ return m_statusEquals; } /** *

Returns only custom language models with the specified status. Language * models are ordered by creation date, with the newest model first. If you don't * include StatusEquals, all custom language models are returned.

*/ inline bool StatusEqualsHasBeenSet() const { return m_statusEqualsHasBeenSet; } /** *

Returns only custom language models with the specified status. Language * models are ordered by creation date, with the newest model first. If you don't * include StatusEquals, all custom language models are returned.

*/ inline void SetStatusEquals(const ModelStatus& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = value; } /** *

Returns only custom language models with the specified status. Language * models are ordered by creation date, with the newest model first. If you don't * include StatusEquals, all custom language models are returned.

*/ inline void SetStatusEquals(ModelStatus&& value) { m_statusEqualsHasBeenSet = true; m_statusEquals = std::move(value); } /** *

Returns only custom language models with the specified status. Language * models are ordered by creation date, with the newest model first. If you don't * include StatusEquals, all custom language models are returned.

*/ inline ListLanguageModelsRequest& WithStatusEquals(const ModelStatus& value) { SetStatusEquals(value); return *this;} /** *

Returns only custom language models with the specified status. Language * models are ordered by creation date, with the newest model first. If you don't * include StatusEquals, all custom language models are returned.

*/ inline ListLanguageModelsRequest& WithStatusEquals(ModelStatus&& value) { SetStatusEquals(std::move(value)); return *this;} /** *

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

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

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

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

Returns only the custom language models 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 language models 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 language models 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 language models that contain the specified string. * The search is not case sensitive.

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

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

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

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

*/ inline ListLanguageModelsRequest& WithNameContains(const char* value) { SetNameContains(value); return *this;} /** *

If your ListLanguageModels 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 ListLanguageModels 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 ListLanguageModels 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 ListLanguageModels 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 ListLanguageModels 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 ListLanguageModels 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 ListLanguageModelsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If your ListLanguageModels 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 ListLanguageModelsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If your ListLanguageModels 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 ListLanguageModelsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of custom language models 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 language models 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 language models 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 language models 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 ListLanguageModelsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: ModelStatus m_statusEquals; bool m_statusEqualsHasBeenSet = false; Aws::String m_nameContains; bool m_nameContainsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace TranscribeService } // namespace Aws