AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetRecommendationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/trustedadvisor/TrustedAdvisorRequest.h>
9#include <aws/trustedadvisor/TrustedAdvisor_EXPORTS.h>
10#include <aws/trustedadvisor/model/RecommendationLanguage.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace TrustedAdvisor {
19namespace Model {
20
24 public:
25 AWS_TRUSTEDADVISOR_API GetRecommendationRequest() = default;
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 "GetRecommendation"; }
32
33 AWS_TRUSTEDADVISOR_API Aws::String SerializePayload() const override;
34
35 AWS_TRUSTEDADVISOR_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::String& GetRecommendationIdentifier() const { return m_recommendationIdentifier; }
42 inline bool RecommendationIdentifierHasBeenSet() const { return m_recommendationIdentifierHasBeenSet; }
43 template <typename RecommendationIdentifierT = Aws::String>
44 void SetRecommendationIdentifier(RecommendationIdentifierT&& value) {
45 m_recommendationIdentifierHasBeenSet = true;
46 m_recommendationIdentifier = std::forward<RecommendationIdentifierT>(value);
47 }
48 template <typename RecommendationIdentifierT = Aws::String>
49 GetRecommendationRequest& WithRecommendationIdentifier(RecommendationIdentifierT&& value) {
50 SetRecommendationIdentifier(std::forward<RecommendationIdentifierT>(value));
51 return *this;
52 }
54
56
60 inline RecommendationLanguage GetLanguage() const { return m_language; }
61 inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; }
63 m_languageHasBeenSet = true;
64 m_language = value;
65 }
67 SetLanguage(value);
68 return *this;
69 }
71 private:
72 Aws::String m_recommendationIdentifier;
73
75 bool m_recommendationIdentifierHasBeenSet = false;
76 bool m_languageHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace TrustedAdvisor
81} // namespace Aws
GetRecommendationRequest & WithLanguage(RecommendationLanguage value)
virtual const char * GetServiceRequestName() const override
AWS_TRUSTEDADVISOR_API GetRecommendationRequest()=default
void SetRecommendationIdentifier(RecommendationIdentifierT &&value)
GetRecommendationRequest & WithRecommendationIdentifier(RecommendationIdentifierT &&value)
AWS_TRUSTEDADVISOR_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_TRUSTEDADVISOR_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String