AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateAnomalySubscriptionRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorerRequest.h>
8#include <aws/ce/CostExplorer_EXPORTS.h>
9#include <aws/ce/model/AnomalySubscription.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 CreateAnomalySubscriptionRequest() = 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 "CreateAnomalySubscription"; }
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 AnomalySubscription& GetAnomalySubscription() const { return m_anomalySubscription; }
40 inline bool AnomalySubscriptionHasBeenSet() const { return m_anomalySubscriptionHasBeenSet; }
41 template <typename AnomalySubscriptionT = AnomalySubscription>
42 void SetAnomalySubscription(AnomalySubscriptionT&& value) {
43 m_anomalySubscriptionHasBeenSet = true;
44 m_anomalySubscription = std::forward<AnomalySubscriptionT>(value);
45 }
46 template <typename AnomalySubscriptionT = AnomalySubscription>
48 SetAnomalySubscription(std::forward<AnomalySubscriptionT>(value));
49 return *this;
50 }
52
54
72 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
73 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
74 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
75 void SetResourceTags(ResourceTagsT&& value) {
76 m_resourceTagsHasBeenSet = true;
77 m_resourceTags = std::forward<ResourceTagsT>(value);
78 }
79 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
81 SetResourceTags(std::forward<ResourceTagsT>(value));
82 return *this;
83 }
84 template <typename ResourceTagsT = ResourceTag>
86 m_resourceTagsHasBeenSet = true;
87 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
88 return *this;
89 }
91 private:
92 AnomalySubscription m_anomalySubscription;
93
94 Aws::Vector<ResourceTag> m_resourceTags;
95 bool m_anomalySubscriptionHasBeenSet = false;
96 bool m_resourceTagsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace CostExplorer
101} // namespace Aws
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAnomalySubscriptionRequest & AddResourceTags(ResourceTagsT &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
AWS_COSTEXPLORER_API CreateAnomalySubscriptionRequest()=default
CreateAnomalySubscriptionRequest & WithAnomalySubscription(AnomalySubscriptionT &&value)
CreateAnomalySubscriptionRequest & WithResourceTags(ResourceTagsT &&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