AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
CancelSubscriptionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pricing-plan-manager/PricingPlanManager_EXPORTS.h>
10#include <aws/pricing-plan-manager/model/Subscription.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace PricingPlanManager {
24namespace Model {
26 public:
27 AWS_PRICINGPLANMANAGER_API CancelSubscriptionResult() = default;
30
32
37 inline const Subscription& GetSubscription() const { return m_subscription; }
38 template <typename SubscriptionT = Subscription>
39 void SetSubscription(SubscriptionT&& value) {
40 m_subscriptionHasBeenSet = true;
41 m_subscription = std::forward<SubscriptionT>(value);
42 }
43 template <typename SubscriptionT = Subscription>
45 SetSubscription(std::forward<SubscriptionT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetETag() const { return m_eTag; }
55 template <typename ETagT = Aws::String>
56 void SetETag(ETagT&& value) {
57 m_eTagHasBeenSet = true;
58 m_eTag = std::forward<ETagT>(value);
59 }
60 template <typename ETagT = Aws::String>
62 SetETag(std::forward<ETagT>(value));
63 return *this;
64 }
66
68
69 inline const Aws::String& GetRequestId() const { return m_requestId; }
70 template <typename RequestIdT = Aws::String>
71 void SetRequestId(RequestIdT&& value) {
72 m_requestIdHasBeenSet = true;
73 m_requestId = std::forward<RequestIdT>(value);
74 }
75 template <typename RequestIdT = Aws::String>
77 SetRequestId(std::forward<RequestIdT>(value));
78 return *this;
79 }
81 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
82
83 private:
84 Subscription m_subscription;
85
86 Aws::String m_eTag;
87
88 Aws::String m_requestId;
89 Aws::Http::HttpResponseCode m_HttpResponseCode;
90 bool m_subscriptionHasBeenSet = false;
91 bool m_eTagHasBeenSet = false;
92 bool m_requestIdHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace PricingPlanManager
97} // namespace Aws
AWS_PRICINGPLANMANAGER_API CancelSubscriptionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PRICINGPLANMANAGER_API CancelSubscriptionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CancelSubscriptionResult & WithRequestId(RequestIdT &&value)
AWS_PRICINGPLANMANAGER_API CancelSubscriptionResult()=default
CancelSubscriptionResult & WithSubscription(SubscriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue