AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
GetAccountPlanStateResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/freetier/FreeTier_EXPORTS.h>
11#include <aws/freetier/model/AccountPlanStatus.h>
12#include <aws/freetier/model/AccountPlanType.h>
13#include <aws/freetier/model/MonetaryAmount.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace FreeTier {
27namespace Model {
29 public:
30 AWS_FREETIER_API GetAccountPlanStateResult() = default;
33
35
38 inline const Aws::String& GetAccountId() const { return m_accountId; }
39 template <typename AccountIdT = Aws::String>
40 void SetAccountId(AccountIdT&& value) {
41 m_accountIdHasBeenSet = true;
42 m_accountId = std::forward<AccountIdT>(value);
43 }
44 template <typename AccountIdT = Aws::String>
46 SetAccountId(std::forward<AccountIdT>(value));
47 return *this;
48 }
50
52
55 inline AccountPlanType GetAccountPlanType() const { return m_accountPlanType; }
57 m_accountPlanTypeHasBeenSet = true;
58 m_accountPlanType = value;
59 }
61 SetAccountPlanType(value);
62 return *this;
63 }
65
67
70 inline AccountPlanStatus GetAccountPlanStatus() const { return m_accountPlanStatus; }
72 m_accountPlanStatusHasBeenSet = true;
73 m_accountPlanStatus = value;
74 }
77 return *this;
78 }
80
82
85 inline const MonetaryAmount& GetAccountPlanRemainingCredits() const { return m_accountPlanRemainingCredits; }
86 template <typename AccountPlanRemainingCreditsT = MonetaryAmount>
87 void SetAccountPlanRemainingCredits(AccountPlanRemainingCreditsT&& value) {
88 m_accountPlanRemainingCreditsHasBeenSet = true;
89 m_accountPlanRemainingCredits = std::forward<AccountPlanRemainingCreditsT>(value);
90 }
91 template <typename AccountPlanRemainingCreditsT = MonetaryAmount>
92 GetAccountPlanStateResult& WithAccountPlanRemainingCredits(AccountPlanRemainingCreditsT&& value) {
93 SetAccountPlanRemainingCredits(std::forward<AccountPlanRemainingCreditsT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Utils::DateTime& GetAccountPlanExpirationDate() const { return m_accountPlanExpirationDate; }
103 template <typename AccountPlanExpirationDateT = Aws::Utils::DateTime>
104 void SetAccountPlanExpirationDate(AccountPlanExpirationDateT&& value) {
105 m_accountPlanExpirationDateHasBeenSet = true;
106 m_accountPlanExpirationDate = std::forward<AccountPlanExpirationDateT>(value);
107 }
108 template <typename AccountPlanExpirationDateT = Aws::Utils::DateTime>
109 GetAccountPlanStateResult& WithAccountPlanExpirationDate(AccountPlanExpirationDateT&& value) {
110 SetAccountPlanExpirationDate(std::forward<AccountPlanExpirationDateT>(value));
111 return *this;
112 }
114
116
117 inline const Aws::String& GetRequestId() const { return m_requestId; }
118 template <typename RequestIdT = Aws::String>
119 void SetRequestId(RequestIdT&& value) {
120 m_requestIdHasBeenSet = true;
121 m_requestId = std::forward<RequestIdT>(value);
122 }
123 template <typename RequestIdT = Aws::String>
125 SetRequestId(std::forward<RequestIdT>(value));
126 return *this;
127 }
129 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
130
131 private:
132 Aws::String m_accountId;
133
134 AccountPlanType m_accountPlanType{AccountPlanType::NOT_SET};
135
137
138 MonetaryAmount m_accountPlanRemainingCredits;
139
140 Aws::Utils::DateTime m_accountPlanExpirationDate{};
141
142 Aws::String m_requestId;
143 Aws::Http::HttpResponseCode m_HttpResponseCode;
144 bool m_accountIdHasBeenSet = false;
145 bool m_accountPlanTypeHasBeenSet = false;
146 bool m_accountPlanStatusHasBeenSet = false;
147 bool m_accountPlanRemainingCreditsHasBeenSet = false;
148 bool m_accountPlanExpirationDateHasBeenSet = false;
149 bool m_requestIdHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace FreeTier
154} // namespace Aws
void SetAccountPlanExpirationDate(AccountPlanExpirationDateT &&value)
AWS_FREETIER_API GetAccountPlanStateResult()=default
const Aws::Utils::DateTime & GetAccountPlanExpirationDate() const
GetAccountPlanStateResult & WithAccountPlanExpirationDate(AccountPlanExpirationDateT &&value)
GetAccountPlanStateResult & WithAccountPlanStatus(AccountPlanStatus value)
AWS_FREETIER_API GetAccountPlanStateResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAccountPlanStateResult & WithAccountPlanRemainingCredits(AccountPlanRemainingCreditsT &&value)
GetAccountPlanStateResult & WithAccountPlanType(AccountPlanType value)
AWS_FREETIER_API GetAccountPlanStateResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAccountPlanStateResult & WithRequestId(RequestIdT &&value)
GetAccountPlanStateResult & WithAccountId(AccountIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetAccountPlanRemainingCredits(AccountPlanRemainingCreditsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue