AWS SDK for C++  1.8.95
AWS SDK for C++
GetSearchSuggestionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SageMaker
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "GetSearchSuggestions"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
37 
41  inline const ResourceType& GetResource() const{ return m_resource; }
42 
46  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
47 
51  inline void SetResource(const ResourceType& value) { m_resourceHasBeenSet = true; m_resource = value; }
52 
56  inline void SetResource(ResourceType&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
57 
61  inline GetSearchSuggestionsRequest& WithResource(const ResourceType& value) { SetResource(value); return *this;}
62 
66  inline GetSearchSuggestionsRequest& WithResource(ResourceType&& value) { SetResource(std::move(value)); return *this;}
67 
68 
72  inline const SuggestionQuery& GetSuggestionQuery() const{ return m_suggestionQuery; }
73 
77  inline bool SuggestionQueryHasBeenSet() const { return m_suggestionQueryHasBeenSet; }
78 
82  inline void SetSuggestionQuery(const SuggestionQuery& value) { m_suggestionQueryHasBeenSet = true; m_suggestionQuery = value; }
83 
87  inline void SetSuggestionQuery(SuggestionQuery&& value) { m_suggestionQueryHasBeenSet = true; m_suggestionQuery = std::move(value); }
88 
92  inline GetSearchSuggestionsRequest& WithSuggestionQuery(const SuggestionQuery& value) { SetSuggestionQuery(value); return *this;}
93 
97  inline GetSearchSuggestionsRequest& WithSuggestionQuery(SuggestionQuery&& value) { SetSuggestionQuery(std::move(value)); return *this;}
98 
99  private:
100 
101  ResourceType m_resource;
102  bool m_resourceHasBeenSet;
103 
104  SuggestionQuery m_suggestionQuery;
105  bool m_suggestionQueryHasBeenSet;
106  };
107 
108 } // namespace Model
109 } // namespace SageMaker
110 } // namespace Aws
#define AWS_SAGEMAKER_API
GetSearchSuggestionsRequest & WithSuggestionQuery(const SuggestionQuery &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
GetSearchSuggestionsRequest & WithResource(const ResourceType &value)
GetSearchSuggestionsRequest & WithResource(ResourceType &&value)
GetSearchSuggestionsRequest & WithSuggestionQuery(SuggestionQuery &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
virtual const char * GetServiceRequestName() const override