AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GetAccountPlanStateResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/freetier/FreeTier_EXPORTS.h>
10#include <aws/freetier/model/AccountPlanStatus.h>
11#include <aws/freetier/model/AccountPlanType.h>
12#include <aws/freetier/model/MonetaryAmount.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace FreeTier {
26namespace Model {
28 public:
29 AWS_FREETIER_API GetAccountPlanStateResult() = default;
32
34
37 inline const Aws::String& GetAccountId() const { return m_accountId; }
38 template <typename AccountIdT = Aws::String>
39 void SetAccountId(AccountIdT&& value) {
40 m_accountIdHasBeenSet = true;
41 m_accountId = std::forward<AccountIdT>(value);
42 }
43 template <typename AccountIdT = Aws::String>
45 SetAccountId(std::forward<AccountIdT>(value));
46 return *this;
47 }
49
51
54 inline AccountPlanType GetAccountPlanType() const { return m_accountPlanType; }
56 m_accountPlanTypeHasBeenSet = true;
57 m_accountPlanType = value;
58 }
60 SetAccountPlanType(value);
61 return *this;
62 }
64
66
69 inline AccountPlanStatus GetAccountPlanStatus() const { return m_accountPlanStatus; }
71 m_accountPlanStatusHasBeenSet = true;
72 m_accountPlanStatus = value;
73 }
76 return *this;
77 }
79
81
84 inline const MonetaryAmount& GetAccountPlanRemainingCredits() const { return m_accountPlanRemainingCredits; }
85 template <typename AccountPlanRemainingCreditsT = MonetaryAmount>
86 void SetAccountPlanRemainingCredits(AccountPlanRemainingCreditsT&& value) {
87 m_accountPlanRemainingCreditsHasBeenSet = true;
88 m_accountPlanRemainingCredits = std::forward<AccountPlanRemainingCreditsT>(value);
89 }
90 template <typename AccountPlanRemainingCreditsT = MonetaryAmount>
91 GetAccountPlanStateResult& WithAccountPlanRemainingCredits(AccountPlanRemainingCreditsT&& value) {
92 SetAccountPlanRemainingCredits(std::forward<AccountPlanRemainingCreditsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetAccountPlanExpirationDate() const { return m_accountPlanExpirationDate; }
102 template <typename AccountPlanExpirationDateT = Aws::Utils::DateTime>
103 void SetAccountPlanExpirationDate(AccountPlanExpirationDateT&& value) {
104 m_accountPlanExpirationDateHasBeenSet = true;
105 m_accountPlanExpirationDate = std::forward<AccountPlanExpirationDateT>(value);
106 }
107 template <typename AccountPlanExpirationDateT = Aws::Utils::DateTime>
108 GetAccountPlanStateResult& WithAccountPlanExpirationDate(AccountPlanExpirationDateT&& value) {
109 SetAccountPlanExpirationDate(std::forward<AccountPlanExpirationDateT>(value));
110 return *this;
111 }
113
115
116 inline const Aws::String& GetRequestId() const { return m_requestId; }
117 template <typename RequestIdT = Aws::String>
118 void SetRequestId(RequestIdT&& value) {
119 m_requestIdHasBeenSet = true;
120 m_requestId = std::forward<RequestIdT>(value);
121 }
122 template <typename RequestIdT = Aws::String>
124 SetRequestId(std::forward<RequestIdT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_accountId;
130 bool m_accountIdHasBeenSet = false;
131
132 AccountPlanType m_accountPlanType{AccountPlanType::NOT_SET};
133 bool m_accountPlanTypeHasBeenSet = false;
134
136 bool m_accountPlanStatusHasBeenSet = false;
137
138 MonetaryAmount m_accountPlanRemainingCredits;
139 bool m_accountPlanRemainingCreditsHasBeenSet = false;
140
141 Aws::Utils::DateTime m_accountPlanExpirationDate{};
142 bool m_accountPlanExpirationDateHasBeenSet = false;
143
144 Aws::String m_requestId;
145 bool m_requestIdHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace FreeTier
150} // 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)
void SetAccountPlanRemainingCredits(AccountPlanRemainingCreditsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue