AWS SDK for C++  1.9.1
AWS SDK for C++
ProvideAnomalyFeedbackRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CostExplorer
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 "ProvideAnomalyFeedback"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetAnomalyId() const{ return m_anomalyId; }
42 
46  inline bool AnomalyIdHasBeenSet() const { return m_anomalyIdHasBeenSet; }
47 
51  inline void SetAnomalyId(const Aws::String& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = value; }
52 
56  inline void SetAnomalyId(Aws::String&& value) { m_anomalyIdHasBeenSet = true; m_anomalyId = std::move(value); }
57 
61  inline void SetAnomalyId(const char* value) { m_anomalyIdHasBeenSet = true; m_anomalyId.assign(value); }
62 
66  inline ProvideAnomalyFeedbackRequest& WithAnomalyId(const Aws::String& value) { SetAnomalyId(value); return *this;}
67 
71  inline ProvideAnomalyFeedbackRequest& WithAnomalyId(Aws::String&& value) { SetAnomalyId(std::move(value)); return *this;}
72 
76  inline ProvideAnomalyFeedbackRequest& WithAnomalyId(const char* value) { SetAnomalyId(value); return *this;}
77 
78 
83  inline const AnomalyFeedbackType& GetFeedback() const{ return m_feedback; }
84 
89  inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
90 
95  inline void SetFeedback(const AnomalyFeedbackType& value) { m_feedbackHasBeenSet = true; m_feedback = value; }
96 
101  inline void SetFeedback(AnomalyFeedbackType&& value) { m_feedbackHasBeenSet = true; m_feedback = std::move(value); }
102 
107  inline ProvideAnomalyFeedbackRequest& WithFeedback(const AnomalyFeedbackType& value) { SetFeedback(value); return *this;}
108 
113  inline ProvideAnomalyFeedbackRequest& WithFeedback(AnomalyFeedbackType&& value) { SetFeedback(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_anomalyId;
118  bool m_anomalyIdHasBeenSet;
119 
120  AnomalyFeedbackType m_feedback;
121  bool m_feedbackHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace CostExplorer
126 } // namespace Aws
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::FeedbackHasBeenSet
bool FeedbackHasBeenSet() const
Definition: ProvideAnomalyFeedbackRequest.h:89
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::WithAnomalyId
ProvideAnomalyFeedbackRequest & WithAnomalyId(const Aws::String &value)
Definition: ProvideAnomalyFeedbackRequest.h:66
AnomalyFeedbackType.h
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::SetAnomalyId
void SetAnomalyId(const Aws::String &value)
Definition: ProvideAnomalyFeedbackRequest.h:51
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest
Definition: ProvideAnomalyFeedbackRequest.h:23
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ProvideAnomalyFeedbackRequest.h:31
CostExplorerRequest.h
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::WithFeedback
ProvideAnomalyFeedbackRequest & WithFeedback(const AnomalyFeedbackType &value)
Definition: ProvideAnomalyFeedbackRequest.h:107
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::AnomalyIdHasBeenSet
bool AnomalyIdHasBeenSet() const
Definition: ProvideAnomalyFeedbackRequest.h:46
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::WithAnomalyId
ProvideAnomalyFeedbackRequest & WithAnomalyId(Aws::String &&value)
Definition: ProvideAnomalyFeedbackRequest.h:71
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::SetAnomalyId
void SetAnomalyId(Aws::String &&value)
Definition: ProvideAnomalyFeedbackRequest.h:56
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::GetAnomalyId
const Aws::String & GetAnomalyId() const
Definition: ProvideAnomalyFeedbackRequest.h:41
AWSString.h
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::WithAnomalyId
ProvideAnomalyFeedbackRequest & WithAnomalyId(const char *value)
Definition: ProvideAnomalyFeedbackRequest.h:76
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::SetFeedback
void SetFeedback(const AnomalyFeedbackType &value)
Definition: ProvideAnomalyFeedbackRequest.h:95
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::SetFeedback
void SetFeedback(AnomalyFeedbackType &&value)
Definition: ProvideAnomalyFeedbackRequest.h:101
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::SetAnomalyId
void SetAnomalyId(const char *value)
Definition: ProvideAnomalyFeedbackRequest.h:61
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::GetFeedback
const AnomalyFeedbackType & GetFeedback() const
Definition: ProvideAnomalyFeedbackRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::WithFeedback
ProvideAnomalyFeedbackRequest & WithFeedback(AnomalyFeedbackType &&value)
Definition: ProvideAnomalyFeedbackRequest.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::AnomalyFeedbackType
AnomalyFeedbackType
Definition: AnomalyFeedbackType.h:17
Aws::CostExplorer::Model::ProvideAnomalyFeedbackRequest::ProvideAnomalyFeedbackRequest
ProvideAnomalyFeedbackRequest()