AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAnomalyMonitorRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.h>
9#include <aws/ce/model/AnomalyMonitor.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ce/model/ResourceTag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CostExplorer
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COSTEXPLORER_API CreateAnomalyMonitorRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateAnomalyMonitor"; }
33
34 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
35
36 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const AnomalyMonitor& GetAnomalyMonitor() const { return m_anomalyMonitor; }
44 inline bool AnomalyMonitorHasBeenSet() const { return m_anomalyMonitorHasBeenSet; }
45 template<typename AnomalyMonitorT = AnomalyMonitor>
46 void SetAnomalyMonitor(AnomalyMonitorT&& value) { m_anomalyMonitorHasBeenSet = true; m_anomalyMonitor = std::forward<AnomalyMonitorT>(value); }
47 template<typename AnomalyMonitorT = AnomalyMonitor>
48 CreateAnomalyMonitorRequest& WithAnomalyMonitor(AnomalyMonitorT&& value) { SetAnomalyMonitor(std::forward<AnomalyMonitorT>(value)); return *this;}
50
52
69 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
70 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
71 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
72 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
73 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
74 CreateAnomalyMonitorRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
75 template<typename ResourceTagsT = ResourceTag>
76 CreateAnomalyMonitorRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
78 private:
79
80 AnomalyMonitor m_anomalyMonitor;
81 bool m_anomalyMonitorHasBeenSet = false;
82
83 Aws::Vector<ResourceTag> m_resourceTags;
84 bool m_resourceTagsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CostExplorer
89} // namespace Aws
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< ResourceTag > & GetResourceTags() const
CreateAnomalyMonitorRequest & AddResourceTags(ResourceTagsT &&value)
AWS_COSTEXPLORER_API CreateAnomalyMonitorRequest()=default
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
CreateAnomalyMonitorRequest & WithResourceTags(ResourceTagsT &&value)
CreateAnomalyMonitorRequest & WithAnomalyMonitor(AnomalyMonitorT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector