AWS SDK for C++  1.9.1
AWS SDK for C++
CreateAnomalyMonitorRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CostExplorer
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateAnomalyMonitor"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const AnomalyMonitor& GetAnomalyMonitor() const{ return m_anomalyMonitor; }
41 
45  inline bool AnomalyMonitorHasBeenSet() const { return m_anomalyMonitorHasBeenSet; }
46 
50  inline void SetAnomalyMonitor(const AnomalyMonitor& value) { m_anomalyMonitorHasBeenSet = true; m_anomalyMonitor = value; }
51 
55  inline void SetAnomalyMonitor(AnomalyMonitor&& value) { m_anomalyMonitorHasBeenSet = true; m_anomalyMonitor = std::move(value); }
56 
60  inline CreateAnomalyMonitorRequest& WithAnomalyMonitor(const AnomalyMonitor& value) { SetAnomalyMonitor(value); return *this;}
61 
65  inline CreateAnomalyMonitorRequest& WithAnomalyMonitor(AnomalyMonitor&& value) { SetAnomalyMonitor(std::move(value)); return *this;}
66 
67  private:
68 
69  AnomalyMonitor m_anomalyMonitor;
70  bool m_anomalyMonitorHasBeenSet;
71  };
72 
73 } // namespace Model
74 } // namespace CostExplorer
75 } // namespace Aws
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAnomalyMonitorRequest.h:30
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::WithAnomalyMonitor
CreateAnomalyMonitorRequest & WithAnomalyMonitor(const AnomalyMonitor &value)
Definition: CreateAnomalyMonitorRequest.h:60
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::SetAnomalyMonitor
void SetAnomalyMonitor(AnomalyMonitor &&value)
Definition: CreateAnomalyMonitorRequest.h:55
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest
Definition: CreateAnomalyMonitorRequest.h:22
CostExplorerRequest.h
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AnomalyMonitor.h
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::AnomalyMonitor
Definition: AnomalyMonitor.h:38
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::WithAnomalyMonitor
CreateAnomalyMonitorRequest & WithAnomalyMonitor(AnomalyMonitor &&value)
Definition: CreateAnomalyMonitorRequest.h:65
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::AnomalyMonitorHasBeenSet
bool AnomalyMonitorHasBeenSet() const
Definition: CreateAnomalyMonitorRequest.h:45
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::GetAnomalyMonitor
const AnomalyMonitor & GetAnomalyMonitor() const
Definition: CreateAnomalyMonitorRequest.h:40
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::SetAnomalyMonitor
void SetAnomalyMonitor(const AnomalyMonitor &value)
Definition: CreateAnomalyMonitorRequest.h:50
Aws::CostExplorer::Model::CreateAnomalyMonitorRequest::CreateAnomalyMonitorRequest
CreateAnomalyMonitorRequest()