AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateAnomalySubscriptionRequest.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/CostExplorerRequest.h>
9#include <aws/ce/model/AnomalySubscription.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 CreateAnomalySubscriptionRequest() = 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 "CreateAnomalySubscription"; }
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 AnomalySubscription& GetAnomalySubscription() const { return m_anomalySubscription; }
44 inline bool AnomalySubscriptionHasBeenSet() const { return m_anomalySubscriptionHasBeenSet; }
45 template<typename AnomalySubscriptionT = AnomalySubscription>
46 void SetAnomalySubscription(AnomalySubscriptionT&& value) { m_anomalySubscriptionHasBeenSet = true; m_anomalySubscription = std::forward<AnomalySubscriptionT>(value); }
47 template<typename AnomalySubscriptionT = AnomalySubscription>
48 CreateAnomalySubscriptionRequest& WithAnomalySubscription(AnomalySubscriptionT&& value) { SetAnomalySubscription(std::forward<AnomalySubscriptionT>(value)); return *this;}
50
52
70 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
71 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
72 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
73 void SetResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::forward<ResourceTagsT>(value); }
74 template<typename ResourceTagsT = Aws::Vector<ResourceTag>>
75 CreateAnomalySubscriptionRequest& WithResourceTags(ResourceTagsT&& value) { SetResourceTags(std::forward<ResourceTagsT>(value)); return *this;}
76 template<typename ResourceTagsT = ResourceTag>
77 CreateAnomalySubscriptionRequest& AddResourceTags(ResourceTagsT&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value)); return *this; }
79 private:
80
81 AnomalySubscription m_anomalySubscription;
82 bool m_anomalySubscriptionHasBeenSet = false;
83
84 Aws::Vector<ResourceTag> m_resourceTags;
85 bool m_resourceTagsHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CostExplorer
90} // 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