AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GetAccountUsageResult.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/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/UsageMetric.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace DevOpsAgent {
25namespace Model {
27 public:
28 AWS_DEVOPSAGENT_API GetAccountUsageResult() = default;
31
33
36 inline const UsageMetric& GetMonthlyAccountInvestigationHours() const { return m_monthlyAccountInvestigationHours; }
37 template <typename MonthlyAccountInvestigationHoursT = UsageMetric>
38 void SetMonthlyAccountInvestigationHours(MonthlyAccountInvestigationHoursT&& value) {
39 m_monthlyAccountInvestigationHoursHasBeenSet = true;
40 m_monthlyAccountInvestigationHours = std::forward<MonthlyAccountInvestigationHoursT>(value);
41 }
42 template <typename MonthlyAccountInvestigationHoursT = UsageMetric>
43 GetAccountUsageResult& WithMonthlyAccountInvestigationHours(MonthlyAccountInvestigationHoursT&& value) {
44 SetMonthlyAccountInvestigationHours(std::forward<MonthlyAccountInvestigationHoursT>(value));
45 return *this;
46 }
48
50
53 inline const UsageMetric& GetMonthlyAccountEvaluationHours() const { return m_monthlyAccountEvaluationHours; }
54 template <typename MonthlyAccountEvaluationHoursT = UsageMetric>
55 void SetMonthlyAccountEvaluationHours(MonthlyAccountEvaluationHoursT&& value) {
56 m_monthlyAccountEvaluationHoursHasBeenSet = true;
57 m_monthlyAccountEvaluationHours = std::forward<MonthlyAccountEvaluationHoursT>(value);
58 }
59 template <typename MonthlyAccountEvaluationHoursT = UsageMetric>
60 GetAccountUsageResult& WithMonthlyAccountEvaluationHours(MonthlyAccountEvaluationHoursT&& value) {
61 SetMonthlyAccountEvaluationHours(std::forward<MonthlyAccountEvaluationHoursT>(value));
62 return *this;
63 }
65
67
70 inline const UsageMetric& GetMonthlyAccountSystemLearningHours() const { return m_monthlyAccountSystemLearningHours; }
71 template <typename MonthlyAccountSystemLearningHoursT = UsageMetric>
72 void SetMonthlyAccountSystemLearningHours(MonthlyAccountSystemLearningHoursT&& value) {
73 m_monthlyAccountSystemLearningHoursHasBeenSet = true;
74 m_monthlyAccountSystemLearningHours = std::forward<MonthlyAccountSystemLearningHoursT>(value);
75 }
76 template <typename MonthlyAccountSystemLearningHoursT = UsageMetric>
77 GetAccountUsageResult& WithMonthlyAccountSystemLearningHours(MonthlyAccountSystemLearningHoursT&& value) {
78 SetMonthlyAccountSystemLearningHours(std::forward<MonthlyAccountSystemLearningHoursT>(value));
79 return *this;
80 }
82
84
87 inline const UsageMetric& GetMonthlyAccountOnDemandHours() const { return m_monthlyAccountOnDemandHours; }
88 template <typename MonthlyAccountOnDemandHoursT = UsageMetric>
89 void SetMonthlyAccountOnDemandHours(MonthlyAccountOnDemandHoursT&& value) {
90 m_monthlyAccountOnDemandHoursHasBeenSet = true;
91 m_monthlyAccountOnDemandHours = std::forward<MonthlyAccountOnDemandHoursT>(value);
92 }
93 template <typename MonthlyAccountOnDemandHoursT = UsageMetric>
94 GetAccountUsageResult& WithMonthlyAccountOnDemandHours(MonthlyAccountOnDemandHoursT&& value) {
95 SetMonthlyAccountOnDemandHours(std::forward<MonthlyAccountOnDemandHoursT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetUsagePeriodStartTime() const { return m_usagePeriodStartTime; }
105 template <typename UsagePeriodStartTimeT = Aws::Utils::DateTime>
106 void SetUsagePeriodStartTime(UsagePeriodStartTimeT&& value) {
107 m_usagePeriodStartTimeHasBeenSet = true;
108 m_usagePeriodStartTime = std::forward<UsagePeriodStartTimeT>(value);
109 }
110 template <typename UsagePeriodStartTimeT = Aws::Utils::DateTime>
111 GetAccountUsageResult& WithUsagePeriodStartTime(UsagePeriodStartTimeT&& value) {
112 SetUsagePeriodStartTime(std::forward<UsagePeriodStartTimeT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetUsagePeriodEndTime() const { return m_usagePeriodEndTime; }
122 template <typename UsagePeriodEndTimeT = Aws::Utils::DateTime>
123 void SetUsagePeriodEndTime(UsagePeriodEndTimeT&& value) {
124 m_usagePeriodEndTimeHasBeenSet = true;
125 m_usagePeriodEndTime = std::forward<UsagePeriodEndTimeT>(value);
126 }
127 template <typename UsagePeriodEndTimeT = Aws::Utils::DateTime>
128 GetAccountUsageResult& WithUsagePeriodEndTime(UsagePeriodEndTimeT&& value) {
129 SetUsagePeriodEndTime(std::forward<UsagePeriodEndTimeT>(value));
130 return *this;
131 }
133
135
136 inline const Aws::String& GetRequestId() const { return m_requestId; }
137 template <typename RequestIdT = Aws::String>
138 void SetRequestId(RequestIdT&& value) {
139 m_requestIdHasBeenSet = true;
140 m_requestId = std::forward<RequestIdT>(value);
141 }
142 template <typename RequestIdT = Aws::String>
144 SetRequestId(std::forward<RequestIdT>(value));
145 return *this;
146 }
148 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
149
150 private:
151 UsageMetric m_monthlyAccountInvestigationHours;
152
153 UsageMetric m_monthlyAccountEvaluationHours;
154
155 UsageMetric m_monthlyAccountSystemLearningHours;
156
157 UsageMetric m_monthlyAccountOnDemandHours;
158
159 Aws::Utils::DateTime m_usagePeriodStartTime{};
160
161 Aws::Utils::DateTime m_usagePeriodEndTime{};
162
163 Aws::String m_requestId;
164 Aws::Http::HttpResponseCode m_HttpResponseCode;
165 bool m_monthlyAccountInvestigationHoursHasBeenSet = false;
166 bool m_monthlyAccountEvaluationHoursHasBeenSet = false;
167 bool m_monthlyAccountSystemLearningHoursHasBeenSet = false;
168 bool m_monthlyAccountOnDemandHoursHasBeenSet = false;
169 bool m_usagePeriodStartTimeHasBeenSet = false;
170 bool m_usagePeriodEndTimeHasBeenSet = false;
171 bool m_requestIdHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace DevOpsAgent
176} // namespace Aws
const UsageMetric & GetMonthlyAccountSystemLearningHours() const
void SetUsagePeriodEndTime(UsagePeriodEndTimeT &&value)
const UsageMetric & GetMonthlyAccountInvestigationHours() const
const Aws::Utils::DateTime & GetUsagePeriodEndTime() const
void SetMonthlyAccountOnDemandHours(MonthlyAccountOnDemandHoursT &&value)
AWS_DEVOPSAGENT_API GetAccountUsageResult()=default
void SetMonthlyAccountEvaluationHours(MonthlyAccountEvaluationHoursT &&value)
const Aws::Utils::DateTime & GetUsagePeriodStartTime() const
void SetMonthlyAccountInvestigationHours(MonthlyAccountInvestigationHoursT &&value)
void SetUsagePeriodStartTime(UsagePeriodStartTimeT &&value)
const UsageMetric & GetMonthlyAccountEvaluationHours() const
GetAccountUsageResult & WithMonthlyAccountOnDemandHours(MonthlyAccountOnDemandHoursT &&value)
AWS_DEVOPSAGENT_API GetAccountUsageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAccountUsageResult & WithMonthlyAccountSystemLearningHours(MonthlyAccountSystemLearningHoursT &&value)
AWS_DEVOPSAGENT_API GetAccountUsageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAccountUsageResult & WithMonthlyAccountEvaluationHours(MonthlyAccountEvaluationHoursT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetAccountUsageResult & WithRequestId(RequestIdT &&value)
void SetMonthlyAccountSystemLearningHours(MonthlyAccountSystemLearningHoursT &&value)
GetAccountUsageResult & WithUsagePeriodEndTime(UsagePeriodEndTimeT &&value)
GetAccountUsageResult & WithUsagePeriodStartTime(UsagePeriodStartTimeT &&value)
GetAccountUsageResult & WithMonthlyAccountInvestigationHours(MonthlyAccountInvestigationHoursT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue