AWS SDK for C++  1.9.158
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 
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
Aws::SageMaker::Model::GetSearchSuggestionsRequest
Definition: GetSearchSuggestionsRequest.h:23
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::GetSearchSuggestionsRequest::SetSuggestionQuery
void SetSuggestionQuery(const SuggestionQuery &value)
Definition: GetSearchSuggestionsRequest.h:82
Aws::SageMaker::Model::GetSearchSuggestionsRequest::GetSuggestionQuery
const SuggestionQuery & GetSuggestionQuery() const
Definition: GetSearchSuggestionsRequest.h:72
SageMaker_EXPORTS.h
Aws::SageMaker::Model::GetSearchSuggestionsRequest::WithResource
GetSearchSuggestionsRequest & WithResource(const ResourceType &value)
Definition: GetSearchSuggestionsRequest.h:61
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::GetSearchSuggestionsRequest::GetResource
const ResourceType & GetResource() const
Definition: GetSearchSuggestionsRequest.h:41
Aws::SageMaker::Model::GetSearchSuggestionsRequest::WithResource
GetSearchSuggestionsRequest & WithResource(ResourceType &&value)
Definition: GetSearchSuggestionsRequest.h:66
Aws::SageMaker::Model::GetSearchSuggestionsRequest::SetSuggestionQuery
void SetSuggestionQuery(SuggestionQuery &&value)
Definition: GetSearchSuggestionsRequest.h:87
Aws::SageMaker::Model::GetSearchSuggestionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSearchSuggestionsRequest.h:31
Aws::SageMaker::Model::ResourceType
ResourceType
Definition: ResourceType.h:17
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::GetSearchSuggestionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::GetSearchSuggestionsRequest::SetResource
void SetResource(const ResourceType &value)
Definition: GetSearchSuggestionsRequest.h:51
Aws::SageMaker::Model::GetSearchSuggestionsRequest::WithSuggestionQuery
GetSearchSuggestionsRequest & WithSuggestionQuery(const SuggestionQuery &value)
Definition: GetSearchSuggestionsRequest.h:92
Aws::SageMaker::Model::GetSearchSuggestionsRequest::WithSuggestionQuery
GetSearchSuggestionsRequest & WithSuggestionQuery(SuggestionQuery &&value)
Definition: GetSearchSuggestionsRequest.h:97
ResourceType.h
Aws::SageMaker::Model::GetSearchSuggestionsRequest::GetSearchSuggestionsRequest
GetSearchSuggestionsRequest()
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
SuggestionQuery.h
Aws::SageMaker::Model::GetSearchSuggestionsRequest::SetResource
void SetResource(ResourceType &&value)
Definition: GetSearchSuggestionsRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::GetSearchSuggestionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::GetSearchSuggestionsRequest::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: GetSearchSuggestionsRequest.h:46
Aws::SageMaker::Model::SuggestionQuery
Definition: SuggestionQuery.h:33
Aws::SageMaker::Model::GetSearchSuggestionsRequest::SuggestionQueryHasBeenSet
bool SuggestionQueryHasBeenSet() const
Definition: GetSearchSuggestionsRequest.h:77