AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
BillingModeSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9#include <aws/dynamodb/model/BillingMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DynamoDB {
21namespace Model {
22
35 public:
36 AWS_DYNAMODB_API BillingModeSummary() = default;
39 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
51 inline BillingMode GetBillingMode() const { return m_billingMode; }
52 inline bool BillingModeHasBeenSet() const { return m_billingModeHasBeenSet; }
53 inline void SetBillingMode(BillingMode value) {
54 m_billingModeHasBeenSet = true;
55 m_billingMode = value;
56 }
58 SetBillingMode(value);
59 return *this;
60 }
62
64
68 inline const Aws::Utils::DateTime& GetLastUpdateToPayPerRequestDateTime() const { return m_lastUpdateToPayPerRequestDateTime; }
69 inline bool LastUpdateToPayPerRequestDateTimeHasBeenSet() const { return m_lastUpdateToPayPerRequestDateTimeHasBeenSet; }
70 template <typename LastUpdateToPayPerRequestDateTimeT = Aws::Utils::DateTime>
71 void SetLastUpdateToPayPerRequestDateTime(LastUpdateToPayPerRequestDateTimeT&& value) {
72 m_lastUpdateToPayPerRequestDateTimeHasBeenSet = true;
73 m_lastUpdateToPayPerRequestDateTime = std::forward<LastUpdateToPayPerRequestDateTimeT>(value);
74 }
75 template <typename LastUpdateToPayPerRequestDateTimeT = Aws::Utils::DateTime>
76 BillingModeSummary& WithLastUpdateToPayPerRequestDateTime(LastUpdateToPayPerRequestDateTimeT&& value) {
77 SetLastUpdateToPayPerRequestDateTime(std::forward<LastUpdateToPayPerRequestDateTimeT>(value));
78 return *this;
79 }
81 private:
82 BillingMode m_billingMode{BillingMode::NOT_SET};
83
84 Aws::Utils::DateTime m_lastUpdateToPayPerRequestDateTime{};
85 bool m_billingModeHasBeenSet = false;
86 bool m_lastUpdateToPayPerRequestDateTimeHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace DynamoDB
91} // namespace Aws
void SetLastUpdateToPayPerRequestDateTime(LastUpdateToPayPerRequestDateTimeT &&value)
AWS_DYNAMODB_API BillingModeSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API BillingModeSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastUpdateToPayPerRequestDateTime() const
BillingModeSummary & WithLastUpdateToPayPerRequestDateTime(LastUpdateToPayPerRequestDateTimeT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DYNAMODB_API BillingModeSummary()=default
BillingModeSummary & WithBillingMode(BillingMode value)
Aws::Utils::Json::JsonValue JsonValue