AWS SDK for C++  1.9.1
AWS SDK for C++
UpdateAnomalyMonitorRequest.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 "UpdateAnomalyMonitor"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetMonitorArn() const{ return m_monitorArn; }
41 
45  inline bool MonitorArnHasBeenSet() const { return m_monitorArnHasBeenSet; }
46 
50  inline void SetMonitorArn(const Aws::String& value) { m_monitorArnHasBeenSet = true; m_monitorArn = value; }
51 
55  inline void SetMonitorArn(Aws::String&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::move(value); }
56 
60  inline void SetMonitorArn(const char* value) { m_monitorArnHasBeenSet = true; m_monitorArn.assign(value); }
61 
65  inline UpdateAnomalyMonitorRequest& WithMonitorArn(const Aws::String& value) { SetMonitorArn(value); return *this;}
66 
70  inline UpdateAnomalyMonitorRequest& WithMonitorArn(Aws::String&& value) { SetMonitorArn(std::move(value)); return *this;}
71 
75  inline UpdateAnomalyMonitorRequest& WithMonitorArn(const char* value) { SetMonitorArn(value); return *this;}
76 
77 
81  inline const Aws::String& GetMonitorName() const{ return m_monitorName; }
82 
86  inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
87 
91  inline void SetMonitorName(const Aws::String& value) { m_monitorNameHasBeenSet = true; m_monitorName = value; }
92 
96  inline void SetMonitorName(Aws::String&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::move(value); }
97 
101  inline void SetMonitorName(const char* value) { m_monitorNameHasBeenSet = true; m_monitorName.assign(value); }
102 
106  inline UpdateAnomalyMonitorRequest& WithMonitorName(const Aws::String& value) { SetMonitorName(value); return *this;}
107 
111  inline UpdateAnomalyMonitorRequest& WithMonitorName(Aws::String&& value) { SetMonitorName(std::move(value)); return *this;}
112 
116  inline UpdateAnomalyMonitorRequest& WithMonitorName(const char* value) { SetMonitorName(value); return *this;}
117 
118  private:
119 
120  Aws::String m_monitorArn;
121  bool m_monitorArnHasBeenSet;
122 
123  Aws::String m_monitorName;
124  bool m_monitorNameHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace CostExplorer
129 } // namespace Aws
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::WithMonitorArn
UpdateAnomalyMonitorRequest & WithMonitorArn(Aws::String &&value)
Definition: UpdateAnomalyMonitorRequest.h:70
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::MonitorArnHasBeenSet
bool MonitorArnHasBeenSet() const
Definition: UpdateAnomalyMonitorRequest.h:45
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::SetMonitorArn
void SetMonitorArn(Aws::String &&value)
Definition: UpdateAnomalyMonitorRequest.h:55
CostExplorerRequest.h
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAnomalyMonitorRequest.h:30
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::WithMonitorArn
UpdateAnomalyMonitorRequest & WithMonitorArn(const char *value)
Definition: UpdateAnomalyMonitorRequest.h:75
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest
Definition: UpdateAnomalyMonitorRequest.h:22
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::SetMonitorName
void SetMonitorName(const Aws::String &value)
Definition: UpdateAnomalyMonitorRequest.h:91
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::SetMonitorName
void SetMonitorName(const char *value)
Definition: UpdateAnomalyMonitorRequest.h:101
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::WithMonitorArn
UpdateAnomalyMonitorRequest & WithMonitorArn(const Aws::String &value)
Definition: UpdateAnomalyMonitorRequest.h:65
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::WithMonitorName
UpdateAnomalyMonitorRequest & WithMonitorName(const Aws::String &value)
Definition: UpdateAnomalyMonitorRequest.h:106
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::SetMonitorArn
void SetMonitorArn(const Aws::String &value)
Definition: UpdateAnomalyMonitorRequest.h:50
AWSString.h
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::GetMonitorArn
const Aws::String & GetMonitorArn() const
Definition: UpdateAnomalyMonitorRequest.h:40
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::UpdateAnomalyMonitorRequest
UpdateAnomalyMonitorRequest()
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::UpdateAnomalyMonitorRequest::MonitorNameHasBeenSet
bool MonitorNameHasBeenSet() const
Definition: UpdateAnomalyMonitorRequest.h:86
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::WithMonitorName
UpdateAnomalyMonitorRequest & WithMonitorName(Aws::String &&value)
Definition: UpdateAnomalyMonitorRequest.h:111
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::WithMonitorName
UpdateAnomalyMonitorRequest & WithMonitorName(const char *value)
Definition: UpdateAnomalyMonitorRequest.h:116
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::GetMonitorName
const Aws::String & GetMonitorName() const
Definition: UpdateAnomalyMonitorRequest.h:81
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::SetMonitorName
void SetMonitorName(Aws::String &&value)
Definition: UpdateAnomalyMonitorRequest.h:96
Aws::CostExplorer::Model::UpdateAnomalyMonitorRequest::SetMonitorArn
void SetMonitorArn(const char *value)
Definition: UpdateAnomalyMonitorRequest.h:60