AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
GetCreditsRequest.h
1
6#pragma once
7#include <aws/billing/BillingRequest.h>
8#include <aws/billing/Billing_EXPORTS.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Billing {
16namespace Model {
17
21 public:
22 AWS_BILLING_API GetCreditsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "GetCredits"; }
29
30 AWS_BILLING_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetAccountId() const { return m_accountId; }
39 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
40 template <typename AccountIdT = Aws::String>
41 void SetAccountId(AccountIdT&& value) {
42 m_accountIdHasBeenSet = true;
43 m_accountId = std::forward<AccountIdT>(value);
44 }
45 template <typename AccountIdT = Aws::String>
46 GetCreditsRequest& WithAccountId(AccountIdT&& value) {
47 SetAccountId(std::forward<AccountIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::Utils::DateTime& GetStartDate() const { return m_startDate; }
58 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
59 template <typename StartDateT = Aws::Utils::DateTime>
60 void SetStartDate(StartDateT&& value) {
61 m_startDateHasBeenSet = true;
62 m_startDate = std::forward<StartDateT>(value);
63 }
64 template <typename StartDateT = Aws::Utils::DateTime>
65 GetCreditsRequest& WithStartDate(StartDateT&& value) {
66 SetStartDate(std::forward<StartDateT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Utils::DateTime& GetEndDate() const { return m_endDate; }
78 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
79 template <typename EndDateT = Aws::Utils::DateTime>
80 void SetEndDate(EndDateT&& value) {
81 m_endDateHasBeenSet = true;
82 m_endDate = std::forward<EndDateT>(value);
83 }
84 template <typename EndDateT = Aws::Utils::DateTime>
85 GetCreditsRequest& WithEndDate(EndDateT&& value) {
86 SetEndDate(std::forward<EndDateT>(value));
87 return *this;
88 }
90
92
98 inline bool GetPayerAccountFlag() const { return m_payerAccountFlag; }
99 inline bool PayerAccountFlagHasBeenSet() const { return m_payerAccountFlagHasBeenSet; }
100 inline void SetPayerAccountFlag(bool value) {
101 m_payerAccountFlagHasBeenSet = true;
102 m_payerAccountFlag = value;
103 }
105 SetPayerAccountFlag(value);
106 return *this;
107 }
109 private:
110 Aws::String m_accountId;
111
112 Aws::Utils::DateTime m_startDate{};
113
114 Aws::Utils::DateTime m_endDate{};
115
116 bool m_payerAccountFlag{false};
117 bool m_accountIdHasBeenSet = false;
118 bool m_startDateHasBeenSet = false;
119 bool m_endDateHasBeenSet = false;
120 bool m_payerAccountFlagHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Billing
125} // namespace Aws
const Aws::Utils::DateTime & GetStartDate() const
AWS_BILLING_API Aws::String SerializePayload() const override
GetCreditsRequest & WithStartDate(StartDateT &&value)
virtual const char * GetServiceRequestName() const override
GetCreditsRequest & WithAccountId(AccountIdT &&value)
GetCreditsRequest & WithEndDate(EndDateT &&value)
AWS_BILLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Utils::DateTime & GetEndDate() const
const Aws::String & GetAccountId() const
AWS_BILLING_API GetCreditsRequest()=default
GetCreditsRequest & WithPayerAccountFlag(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String