AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
BranchDatabaseUsage.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
30 public:
31 AWS_AMPLIFYGEN3_API BranchDatabaseUsage() = default;
32 AWS_AMPLIFYGEN3_API BranchDatabaseUsage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline long long GetStorageBytes() const { return m_storageBytes; }
42 inline bool StorageBytesHasBeenSet() const { return m_storageBytesHasBeenSet; }
43 inline void SetStorageBytes(long long value) {
44 m_storageBytesHasBeenSet = true;
45 m_storageBytes = value;
46 }
47 inline BranchDatabaseUsage& WithStorageBytes(long long value) {
48 SetStorageBytes(value);
49 return *this;
50 }
52
54
58 inline int GetConnections() const { return m_connections; }
59 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
60 inline void SetConnections(int value) {
61 m_connectionsHasBeenSet = true;
62 m_connections = value;
63 }
65 SetConnections(value);
66 return *this;
67 }
69
71
76 inline const Aws::Utils::DateTime& GetLastUsedAt() const { return m_lastUsedAt; }
77 inline bool LastUsedAtHasBeenSet() const { return m_lastUsedAtHasBeenSet; }
78 template <typename LastUsedAtT = Aws::Utils::DateTime>
79 void SetLastUsedAt(LastUsedAtT&& value) {
80 m_lastUsedAtHasBeenSet = true;
81 m_lastUsedAt = std::forward<LastUsedAtT>(value);
82 }
83 template <typename LastUsedAtT = Aws::Utils::DateTime>
84 BranchDatabaseUsage& WithLastUsedAt(LastUsedAtT&& value) {
85 SetLastUsedAt(std::forward<LastUsedAtT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Utils::DateTime& GetSampledAt() const { return m_sampledAt; }
97 inline bool SampledAtHasBeenSet() const { return m_sampledAtHasBeenSet; }
98 template <typename SampledAtT = Aws::Utils::DateTime>
99 void SetSampledAt(SampledAtT&& value) {
100 m_sampledAtHasBeenSet = true;
101 m_sampledAt = std::forward<SampledAtT>(value);
102 }
103 template <typename SampledAtT = Aws::Utils::DateTime>
104 BranchDatabaseUsage& WithSampledAt(SampledAtT&& value) {
105 SetSampledAt(std::forward<SampledAtT>(value));
106 return *this;
107 }
109
111
119 inline double GetMonthlyBackendCapacityUnitHours() const { return m_monthlyBackendCapacityUnitHours; }
120 inline bool MonthlyBackendCapacityUnitHoursHasBeenSet() const { return m_monthlyBackendCapacityUnitHoursHasBeenSet; }
121 inline void SetMonthlyBackendCapacityUnitHours(double value) {
122 m_monthlyBackendCapacityUnitHoursHasBeenSet = true;
123 m_monthlyBackendCapacityUnitHours = value;
124 }
127 return *this;
128 }
130 private:
131 long long m_storageBytes{0};
132
133 int m_connections{0};
134
135 Aws::Utils::DateTime m_lastUsedAt{};
136
137 Aws::Utils::DateTime m_sampledAt{};
138
139 double m_monthlyBackendCapacityUnitHours{0.0};
140 bool m_storageBytesHasBeenSet = false;
141 bool m_connectionsHasBeenSet = false;
142 bool m_lastUsedAtHasBeenSet = false;
143 bool m_sampledAtHasBeenSet = false;
144 bool m_monthlyBackendCapacityUnitHoursHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace AmplifyGen3
149} // namespace Aws
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
BranchDatabaseUsage & WithStorageBytes(long long value)
AWS_AMPLIFYGEN3_API BranchDatabaseUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
BranchDatabaseUsage & WithLastUsedAt(LastUsedAtT &&value)
const Aws::Utils::DateTime & GetSampledAt() const
BranchDatabaseUsage & WithSampledAt(SampledAtT &&value)
BranchDatabaseUsage & WithMonthlyBackendCapacityUnitHours(double value)
const Aws::Utils::DateTime & GetLastUsedAt() const
BranchDatabaseUsage & WithConnections(int value)
AWS_AMPLIFYGEN3_API BranchDatabaseUsage()=default
AWS_AMPLIFYGEN3_API BranchDatabaseUsage(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue