AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LastUpdate.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
9#include <aws/timestream-query/model/LastUpdateStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TimestreamQuery {
21namespace Model {
22
31 public:
32 AWS_TIMESTREAMQUERY_API LastUpdate() = default;
35 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetTargetQueryTCU() const { return m_targetQueryTCU; }
43 inline bool TargetQueryTCUHasBeenSet() const { return m_targetQueryTCUHasBeenSet; }
44 inline void SetTargetQueryTCU(int value) {
45 m_targetQueryTCUHasBeenSet = true;
46 m_targetQueryTCU = value;
47 }
48 inline LastUpdate& WithTargetQueryTCU(int value) {
49 SetTargetQueryTCU(value);
50 return *this;
51 }
53
55
59 inline LastUpdateStatus GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 inline void SetStatus(LastUpdateStatus value) {
62 m_statusHasBeenSet = true;
63 m_status = value;
64 }
66 SetStatus(value);
67 return *this;
68 }
70
72
76 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
77 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
78 template <typename StatusMessageT = Aws::String>
80 m_statusMessageHasBeenSet = true;
81 m_statusMessage = std::forward<StatusMessageT>(value);
82 }
83 template <typename StatusMessageT = Aws::String>
85 SetStatusMessage(std::forward<StatusMessageT>(value));
86 return *this;
87 }
89 private:
90 int m_targetQueryTCU{0};
91
93
94 Aws::String m_statusMessage;
95 bool m_targetQueryTCUHasBeenSet = false;
96 bool m_statusHasBeenSet = false;
97 bool m_statusMessageHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace TimestreamQuery
102} // namespace Aws
void SetStatusMessage(StatusMessageT &&value)
Definition LastUpdate.h:79
AWS_TIMESTREAMQUERY_API LastUpdate()=default
AWS_TIMESTREAMQUERY_API LastUpdate(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStatusMessage() const
Definition LastUpdate.h:76
LastUpdate & WithTargetQueryTCU(int value)
Definition LastUpdate.h:48
LastUpdate & WithStatusMessage(StatusMessageT &&value)
Definition LastUpdate.h:84
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
LastUpdate & WithStatus(LastUpdateStatus value)
Definition LastUpdate.h:65
void SetStatus(LastUpdateStatus value)
Definition LastUpdate.h:61
AWS_TIMESTREAMQUERY_API LastUpdate & operator=(Aws::Utils::Json::JsonView jsonValue)
LastUpdateStatus GetStatus() const
Definition LastUpdate.h:59
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue