AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
BackendDatabaseUsage.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AmplifyGen3 {
20namespace Model {
21
29 public:
30 AWS_AMPLIFYGEN3_API BackendDatabaseUsage() = default;
31 AWS_AMPLIFYGEN3_API BackendDatabaseUsage(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::Utils::DateTime& GetLastUsedAt() const { return m_lastUsedAt; }
43 inline bool LastUsedAtHasBeenSet() const { return m_lastUsedAtHasBeenSet; }
44 template <typename LastUsedAtT = Aws::Utils::DateTime>
45 void SetLastUsedAt(LastUsedAtT&& value) {
46 m_lastUsedAtHasBeenSet = true;
47 m_lastUsedAt = std::forward<LastUsedAtT>(value);
48 }
49 template <typename LastUsedAtT = Aws::Utils::DateTime>
50 BackendDatabaseUsage& WithLastUsedAt(LastUsedAtT&& value) {
51 SetLastUsedAt(std::forward<LastUsedAtT>(value));
52 return *this;
53 }
55
57
64 inline double GetMonthlyBackendCapacityUnitHours() const { return m_monthlyBackendCapacityUnitHours; }
65 inline bool MonthlyBackendCapacityUnitHoursHasBeenSet() const { return m_monthlyBackendCapacityUnitHoursHasBeenSet; }
66 inline void SetMonthlyBackendCapacityUnitHours(double value) {
67 m_monthlyBackendCapacityUnitHoursHasBeenSet = true;
68 m_monthlyBackendCapacityUnitHours = value;
69 }
75 private:
76 Aws::Utils::DateTime m_lastUsedAt{};
77
78 double m_monthlyBackendCapacityUnitHours{0.0};
79 bool m_lastUsedAtHasBeenSet = false;
80 bool m_monthlyBackendCapacityUnitHoursHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace AmplifyGen3
85} // namespace Aws
BackendDatabaseUsage & WithLastUsedAt(LastUsedAtT &&value)
const Aws::Utils::DateTime & GetLastUsedAt() const
AWS_AMPLIFYGEN3_API BackendDatabaseUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
BackendDatabaseUsage & WithMonthlyBackendCapacityUnitHours(double value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYGEN3_API BackendDatabaseUsage()=default
AWS_AMPLIFYGEN3_API BackendDatabaseUsage(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue