AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateRecommendationLifecycleRequest.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/UpdateRecommendationLifecycleStage.h>
11#include <aws/trustedadvisor/model/UpdateRecommendationLifecycleStageReasonCode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace TrustedAdvisor {
17namespace Model {
18
22 public:
23 AWS_TRUSTEDADVISOR_API UpdateRecommendationLifecycleRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateRecommendationLifecycle"; }
30
31 AWS_TRUSTEDADVISOR_API Aws::String SerializePayload() const override;
32
34
37 inline UpdateRecommendationLifecycleStage GetLifecycleStage() const { return m_lifecycleStage; }
38 inline bool LifecycleStageHasBeenSet() const { return m_lifecycleStageHasBeenSet; }
40 m_lifecycleStageHasBeenSet = true;
41 m_lifecycleStage = value;
42 }
48
50
53 inline const Aws::String& GetUpdateReason() const { return m_updateReason; }
54 inline bool UpdateReasonHasBeenSet() const { return m_updateReasonHasBeenSet; }
55 template <typename UpdateReasonT = Aws::String>
56 void SetUpdateReason(UpdateReasonT&& value) {
57 m_updateReasonHasBeenSet = true;
58 m_updateReason = std::forward<UpdateReasonT>(value);
59 }
60 template <typename UpdateReasonT = Aws::String>
62 SetUpdateReason(std::forward<UpdateReasonT>(value));
63 return *this;
64 }
66
68
71 inline UpdateRecommendationLifecycleStageReasonCode GetUpdateReasonCode() const { return m_updateReasonCode; }
72 inline bool UpdateReasonCodeHasBeenSet() const { return m_updateReasonCodeHasBeenSet; }
74 m_updateReasonCodeHasBeenSet = true;
75 m_updateReasonCode = value;
76 }
82
84
88 inline const Aws::String& GetRecommendationIdentifier() const { return m_recommendationIdentifier; }
89 inline bool RecommendationIdentifierHasBeenSet() const { return m_recommendationIdentifierHasBeenSet; }
90 template <typename RecommendationIdentifierT = Aws::String>
91 void SetRecommendationIdentifier(RecommendationIdentifierT&& value) {
92 m_recommendationIdentifierHasBeenSet = true;
93 m_recommendationIdentifier = std::forward<RecommendationIdentifierT>(value);
94 }
95 template <typename RecommendationIdentifierT = Aws::String>
97 SetRecommendationIdentifier(std::forward<RecommendationIdentifierT>(value));
98 return *this;
99 }
101 private:
103
104 Aws::String m_updateReason;
105
107
108 Aws::String m_recommendationIdentifier;
109 bool m_lifecycleStageHasBeenSet = false;
110 bool m_updateReasonHasBeenSet = false;
111 bool m_updateReasonCodeHasBeenSet = false;
112 bool m_recommendationIdentifierHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace TrustedAdvisor
117} // namespace Aws
UpdateRecommendationLifecycleRequest & WithUpdateReason(UpdateReasonT &&value)
UpdateRecommendationLifecycleRequest & WithUpdateReasonCode(UpdateRecommendationLifecycleStageReasonCode value)
void SetUpdateReasonCode(UpdateRecommendationLifecycleStageReasonCode value)
UpdateRecommendationLifecycleRequest & WithLifecycleStage(UpdateRecommendationLifecycleStage value)
AWS_TRUSTEDADVISOR_API UpdateRecommendationLifecycleRequest()=default
AWS_TRUSTEDADVISOR_API Aws::String SerializePayload() const override
UpdateRecommendationLifecycleRequest & WithRecommendationIdentifier(RecommendationIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String