AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnomalyMonitor(const AnomalyMonitor& value) { m_anomalyMonitorHasBeenSet = true; m_anomalyMonitor = value; }
46 inline void SetAnomalyMonitor(AnomalyMonitor&& value) { m_anomalyMonitorHasBeenSet = true; m_anomalyMonitor = std::move(value); }
48 inline CreateAnomalyMonitorRequest& WithAnomalyMonitor(AnomalyMonitor&& value) { SetAnomalyMonitor(std::move(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 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
72 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
74 inline CreateAnomalyMonitorRequest& WithResourceTags(Aws::Vector<ResourceTag>&& value) { SetResourceTags(std::move(value)); return *this;}
75 inline CreateAnomalyMonitorRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
76 inline CreateAnomalyMonitorRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(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(const ResourceTag &value)
CreateAnomalyMonitorRequest & WithAnomalyMonitor(AnomalyMonitor &&value)
CreateAnomalyMonitorRequest & WithAnomalyMonitor(const AnomalyMonitor &value)
CreateAnomalyMonitorRequest & WithResourceTags(Aws::Vector< ResourceTag > &&value)
CreateAnomalyMonitorRequest & AddResourceTags(ResourceTag &&value)
CreateAnomalyMonitorRequest & WithResourceTags(const Aws::Vector< ResourceTag > &value)
void SetResourceTags(const Aws::Vector< ResourceTag > &value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
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