AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdatePricingPlanResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10#include <aws/iottwinmaker/model/PricingPlan.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 IoTTwinMaker {
24namespace Model {
26 public:
27 AWS_IOTTWINMAKER_API UpdatePricingPlanResult() = default;
30
32
35 inline const PricingPlan& GetCurrentPricingPlan() const { return m_currentPricingPlan; }
36 template <typename CurrentPricingPlanT = PricingPlan>
37 void SetCurrentPricingPlan(CurrentPricingPlanT&& value) {
38 m_currentPricingPlanHasBeenSet = true;
39 m_currentPricingPlan = std::forward<CurrentPricingPlanT>(value);
40 }
41 template <typename CurrentPricingPlanT = PricingPlan>
42 UpdatePricingPlanResult& WithCurrentPricingPlan(CurrentPricingPlanT&& value) {
43 SetCurrentPricingPlan(std::forward<CurrentPricingPlanT>(value));
44 return *this;
45 }
47
49
52 inline const PricingPlan& GetPendingPricingPlan() const { return m_pendingPricingPlan; }
53 template <typename PendingPricingPlanT = PricingPlan>
54 void SetPendingPricingPlan(PendingPricingPlanT&& value) {
55 m_pendingPricingPlanHasBeenSet = true;
56 m_pendingPricingPlan = std::forward<PendingPricingPlanT>(value);
57 }
58 template <typename PendingPricingPlanT = PricingPlan>
59 UpdatePricingPlanResult& WithPendingPricingPlan(PendingPricingPlanT&& value) {
60 SetPendingPricingPlan(std::forward<PendingPricingPlanT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
80
81 private:
82 PricingPlan m_currentPricingPlan;
83
84 PricingPlan m_pendingPricingPlan;
85
86 Aws::String m_requestId;
87 Aws::Http::HttpResponseCode m_HttpResponseCode;
88 bool m_currentPricingPlanHasBeenSet = false;
89 bool m_pendingPricingPlanHasBeenSet = false;
90 bool m_requestIdHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace IoTTwinMaker
95} // namespace Aws
AWS_IOTTWINMAKER_API UpdatePricingPlanResult()=default
AWS_IOTTWINMAKER_API UpdatePricingPlanResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOTTWINMAKER_API UpdatePricingPlanResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdatePricingPlanResult & WithCurrentPricingPlan(CurrentPricingPlanT &&value)
UpdatePricingPlanResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdatePricingPlanResult & WithPendingPricingPlan(PendingPricingPlanT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue