AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateAnomalyMonitorRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/AnomalyMonitor.h>
10#include <aws/ce/model/ResourceTag.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CostExplorer {
17namespace Model {
18
22 public:
23 AWS_COSTEXPLORER_API CreateAnomalyMonitorRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateAnomalyMonitor"; }
30
31 AWS_COSTEXPLORER_API Aws::String SerializePayload() const override;
32
33 AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const AnomalyMonitor& GetAnomalyMonitor() const { return m_anomalyMonitor; }
40 inline bool AnomalyMonitorHasBeenSet() const { return m_anomalyMonitorHasBeenSet; }
41 template <typename AnomalyMonitorT = AnomalyMonitor>
42 void SetAnomalyMonitor(AnomalyMonitorT&& value) {
43 m_anomalyMonitorHasBeenSet = true;
44 m_anomalyMonitor = std::forward<AnomalyMonitorT>(value);
45 }
46 template <typename AnomalyMonitorT = AnomalyMonitor>
48 SetAnomalyMonitor(std::forward<AnomalyMonitorT>(value));
49 return *this;
50 }
52
54
71 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
72 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
73 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
74 void SetResourceTags(ResourceTagsT&& value) {
75 m_resourceTagsHasBeenSet = true;
76 m_resourceTags = std::forward<ResourceTagsT>(value);
77 }
78 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
80 SetResourceTags(std::forward<ResourceTagsT>(value));
81 return *this;
82 }
83 template <typename ResourceTagsT = ResourceTag>
85 m_resourceTagsHasBeenSet = true;
86 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
87 return *this;
88 }
90 private:
91 AnomalyMonitor m_anomalyMonitor;
92
93 Aws::Vector<ResourceTag> m_resourceTags;
94 bool m_anomalyMonitorHasBeenSet = false;
95 bool m_resourceTagsHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace CostExplorer
100} // 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