AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetSearchSuggestionsRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMakerRequest.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/ResourceType.h>
10#include <aws/sagemaker/model/SuggestionQuery.h>
11
12#include <utility>
13
14namespace Aws {
15namespace SageMaker {
16namespace Model {
17
21 public:
22 AWS_SAGEMAKER_API GetSearchSuggestionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetSearchSuggestions"; }
29
30 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
31
33
35
38 inline ResourceType GetResource() const { return m_resource; }
39 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
40 inline void SetResource(ResourceType value) {
41 m_resourceHasBeenSet = true;
42 m_resource = value;
43 }
45 SetResource(value);
46 return *this;
47 }
49
51
54 inline const SuggestionQuery& GetSuggestionQuery() const { return m_suggestionQuery; }
55 inline bool SuggestionQueryHasBeenSet() const { return m_suggestionQueryHasBeenSet; }
56 template <typename SuggestionQueryT = SuggestionQuery>
57 void SetSuggestionQuery(SuggestionQueryT&& value) {
58 m_suggestionQueryHasBeenSet = true;
59 m_suggestionQuery = std::forward<SuggestionQueryT>(value);
60 }
61 template <typename SuggestionQueryT = SuggestionQuery>
63 SetSuggestionQuery(std::forward<SuggestionQueryT>(value));
64 return *this;
65 }
67 private:
69
70 SuggestionQuery m_suggestionQuery;
71 bool m_resourceHasBeenSet = false;
72 bool m_suggestionQueryHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace SageMaker
77} // namespace Aws
GetSearchSuggestionsRequest & WithResource(ResourceType value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API GetSearchSuggestionsRequest()=default
virtual const char * GetServiceRequestName() const override
GetSearchSuggestionsRequest & WithSuggestionQuery(SuggestionQueryT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String