AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ProvideAnomalyFeedbackRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/AnomalyFeedbackType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CostExplorer {
16namespace Model {
17
21 public:
22 AWS_COSTEXPLORER_API ProvideAnomalyFeedbackRequest() = 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 "ProvideAnomalyFeedback"; }
29
30 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
31
32 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetAnomalyId() const { return m_anomalyId; }
39 inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; }
40 template <typename AnomalyIdT = Aws::String>
41 void SetAnomalyId(AnomalyIdT&& value) {
42 m_anomalyIdHasBeenSet = true;
43 m_anomalyId = std::forward<AnomalyIdT>(value);
44 }
45 template <typename AnomalyIdT = Aws::String>
47 SetAnomalyId(std::forward<AnomalyIdT>(value));
48 return *this;
49 }
51
53
57 inline AnomalyFeedbackType GetFeedback() const { return m_feedback; }
58 inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
59 inline void SetFeedback(AnomalyFeedbackType value) {
60 m_feedbackHasBeenSet = true;
61 m_feedback = value;
62 }
64 SetFeedback(value);
65 return *this;
66 }
68 private:
69 Aws::String m_anomalyId;
70
72 bool m_anomalyIdHasBeenSet = false;
73 bool m_feedbackHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CostExplorer
78} // namespace Aws
ProvideAnomalyFeedbackRequest & WithFeedback(AnomalyFeedbackType value)
AWS_COSTEXPLORER_API ProvideAnomalyFeedbackRequest()=default
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ProvideAnomalyFeedbackRequest & WithAnomalyId(AnomalyIdT &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String