/** * 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 SageMaker { namespace Model { /** */ class GetSearchSuggestionsRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API GetSearchSuggestionsRequest(); // 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 "GetSearchSuggestions"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the SageMaker resource to search for.

*/ inline const ResourceType& GetResource() const{ return m_resource; } /** *

The name of the SageMaker resource to search for.

*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *

The name of the SageMaker resource to search for.

*/ inline void SetResource(const ResourceType& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *

The name of the SageMaker resource to search for.

*/ inline void SetResource(ResourceType&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *

The name of the SageMaker resource to search for.

*/ inline GetSearchSuggestionsRequest& WithResource(const ResourceType& value) { SetResource(value); return *this;} /** *

The name of the SageMaker resource to search for.

*/ inline GetSearchSuggestionsRequest& WithResource(ResourceType&& value) { SetResource(std::move(value)); return *this;} /** *

Limits the property names that are included in the response.

*/ inline const SuggestionQuery& GetSuggestionQuery() const{ return m_suggestionQuery; } /** *

Limits the property names that are included in the response.

*/ inline bool SuggestionQueryHasBeenSet() const { return m_suggestionQueryHasBeenSet; } /** *

Limits the property names that are included in the response.

*/ inline void SetSuggestionQuery(const SuggestionQuery& value) { m_suggestionQueryHasBeenSet = true; m_suggestionQuery = value; } /** *

Limits the property names that are included in the response.

*/ inline void SetSuggestionQuery(SuggestionQuery&& value) { m_suggestionQueryHasBeenSet = true; m_suggestionQuery = std::move(value); } /** *

Limits the property names that are included in the response.

*/ inline GetSearchSuggestionsRequest& WithSuggestionQuery(const SuggestionQuery& value) { SetSuggestionQuery(value); return *this;} /** *

Limits the property names that are included in the response.

*/ inline GetSearchSuggestionsRequest& WithSuggestionQuery(SuggestionQuery&& value) { SetSuggestionQuery(std::move(value)); return *this;} private: ResourceType m_resource; bool m_resourceHasBeenSet = false; SuggestionQuery m_suggestionQuery; bool m_suggestionQueryHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws