AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAnomalySubscription(const AnomalySubscription& value) { m_anomalySubscriptionHasBeenSet = true; m_anomalySubscription = value; }
46 inline void SetAnomalySubscription(AnomalySubscription&& value) { m_anomalySubscriptionHasBeenSet = true; m_anomalySubscription = std::move(value); }
50
52
70 inline const Aws::Vector<ResourceTag>& GetResourceTags() const{ return m_resourceTags; }
71 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
72 inline void SetResourceTags(const Aws::Vector<ResourceTag>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
73 inline void SetResourceTags(Aws::Vector<ResourceTag>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
76 inline CreateAnomalySubscriptionRequest& AddResourceTags(const ResourceTag& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(value); return *this; }
77 inline CreateAnomalySubscriptionRequest& AddResourceTags(ResourceTag&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.push_back(std::move(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
CreateAnomalySubscriptionRequest & WithAnomalySubscription(const AnomalySubscription &value)
AWS_COSTEXPLORER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAnomalySubscriptionRequest & WithResourceTags(const Aws::Vector< ResourceTag > &value)
CreateAnomalySubscriptionRequest & WithResourceTags(Aws::Vector< ResourceTag > &&value)
AWS_COSTEXPLORER_API Aws::String SerializePayload() const override
CreateAnomalySubscriptionRequest & AddResourceTags(ResourceTag &&value)
CreateAnomalySubscriptionRequest & WithAnomalySubscription(AnomalySubscription &&value)
CreateAnomalySubscriptionRequest & AddResourceTags(const ResourceTag &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