AWS SDK for C++  1.9.1
AWS SDK for C++
CreateAnomalySubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CostExplorer
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CreateAnomalySubscription"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const AnomalySubscription& GetAnomalySubscription() const{ return m_anomalySubscription; }
41 
45  inline bool AnomalySubscriptionHasBeenSet() const { return m_anomalySubscriptionHasBeenSet; }
46 
50  inline void SetAnomalySubscription(const AnomalySubscription& value) { m_anomalySubscriptionHasBeenSet = true; m_anomalySubscription = value; }
51 
55  inline void SetAnomalySubscription(AnomalySubscription&& value) { m_anomalySubscriptionHasBeenSet = true; m_anomalySubscription = std::move(value); }
56 
60  inline CreateAnomalySubscriptionRequest& WithAnomalySubscription(const AnomalySubscription& value) { SetAnomalySubscription(value); return *this;}
61 
65  inline CreateAnomalySubscriptionRequest& WithAnomalySubscription(AnomalySubscription&& value) { SetAnomalySubscription(std::move(value)); return *this;}
66 
67  private:
68 
69  AnomalySubscription m_anomalySubscription;
70  bool m_anomalySubscriptionHasBeenSet;
71  };
72 
73 } // namespace Model
74 } // namespace CostExplorer
75 } // namespace Aws
Aws::CostExplorer::CostExplorerRequest
Definition: CostExplorerRequest.h:17
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::SetAnomalySubscription
void SetAnomalySubscription(const AnomalySubscription &value)
Definition: CreateAnomalySubscriptionRequest.h:50
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::WithAnomalySubscription
CreateAnomalySubscriptionRequest & WithAnomalySubscription(const AnomalySubscription &value)
Definition: CreateAnomalySubscriptionRequest.h:60
CostExplorerRequest.h
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest
Definition: CreateAnomalySubscriptionRequest.h:22
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::GetAnomalySubscription
const AnomalySubscription & GetAnomalySubscription() const
Definition: CreateAnomalySubscriptionRequest.h:40
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::CreateAnomalySubscriptionRequest
CreateAnomalySubscriptionRequest()
CostExplorer_EXPORTS.h
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::WithAnomalySubscription
CreateAnomalySubscriptionRequest & WithAnomalySubscription(AnomalySubscription &&value)
Definition: CreateAnomalySubscriptionRequest.h:65
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateAnomalySubscriptionRequest.h:30
AWS_COSTEXPLORER_API
#define AWS_COSTEXPLORER_API
Definition: CostExplorer_EXPORTS.h:28
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::SetAnomalySubscription
void SetAnomalySubscription(AnomalySubscription &&value)
Definition: CreateAnomalySubscriptionRequest.h:55
Aws::CostExplorer::Model::AnomalySubscription
Definition: AnomalySubscription.h:38
Aws::CostExplorer::Model::CreateAnomalySubscriptionRequest::AnomalySubscriptionHasBeenSet
bool AnomalySubscriptionHasBeenSet() const
Definition: CreateAnomalySubscriptionRequest.h:45
AnomalySubscription.h