AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RecoveryPoint.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RedshiftServerless {
21namespace Model {
22
30 public:
31 AWS_REDSHIFTSERVERLESS_API RecoveryPoint() = default;
32 AWS_REDSHIFTSERVERLESS_API RecoveryPoint(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REDSHIFTSERVERLESS_API RecoveryPoint& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetNamespaceArn() const { return m_namespaceArn; }
42 inline bool NamespaceArnHasBeenSet() const { return m_namespaceArnHasBeenSet; }
43 template <typename NamespaceArnT = Aws::String>
44 void SetNamespaceArn(NamespaceArnT&& value) {
45 m_namespaceArnHasBeenSet = true;
46 m_namespaceArn = std::forward<NamespaceArnT>(value);
47 }
48 template <typename NamespaceArnT = Aws::String>
49 RecoveryPoint& WithNamespaceArn(NamespaceArnT&& value) {
50 SetNamespaceArn(std::forward<NamespaceArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
60 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
61 template <typename NamespaceNameT = Aws::String>
62 void SetNamespaceName(NamespaceNameT&& value) {
63 m_namespaceNameHasBeenSet = true;
64 m_namespaceName = std::forward<NamespaceNameT>(value);
65 }
66 template <typename NamespaceNameT = Aws::String>
67 RecoveryPoint& WithNamespaceName(NamespaceNameT&& value) {
68 SetNamespaceName(std::forward<NamespaceNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetRecoveryPointCreateTime() const { return m_recoveryPointCreateTime; }
78 inline bool RecoveryPointCreateTimeHasBeenSet() const { return m_recoveryPointCreateTimeHasBeenSet; }
79 template <typename RecoveryPointCreateTimeT = Aws::Utils::DateTime>
80 void SetRecoveryPointCreateTime(RecoveryPointCreateTimeT&& value) {
81 m_recoveryPointCreateTimeHasBeenSet = true;
82 m_recoveryPointCreateTime = std::forward<RecoveryPointCreateTimeT>(value);
83 }
84 template <typename RecoveryPointCreateTimeT = Aws::Utils::DateTime>
85 RecoveryPoint& WithRecoveryPointCreateTime(RecoveryPointCreateTimeT&& value) {
86 SetRecoveryPointCreateTime(std::forward<RecoveryPointCreateTimeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRecoveryPointId() const { return m_recoveryPointId; }
96 inline bool RecoveryPointIdHasBeenSet() const { return m_recoveryPointIdHasBeenSet; }
97 template <typename RecoveryPointIdT = Aws::String>
98 void SetRecoveryPointId(RecoveryPointIdT&& value) {
99 m_recoveryPointIdHasBeenSet = true;
100 m_recoveryPointId = std::forward<RecoveryPointIdT>(value);
101 }
102 template <typename RecoveryPointIdT = Aws::String>
103 RecoveryPoint& WithRecoveryPointId(RecoveryPointIdT&& value) {
104 SetRecoveryPointId(std::forward<RecoveryPointIdT>(value));
105 return *this;
106 }
108
110
113 inline double GetTotalSizeInMegaBytes() const { return m_totalSizeInMegaBytes; }
114 inline bool TotalSizeInMegaBytesHasBeenSet() const { return m_totalSizeInMegaBytesHasBeenSet; }
115 inline void SetTotalSizeInMegaBytes(double value) {
116 m_totalSizeInMegaBytesHasBeenSet = true;
117 m_totalSizeInMegaBytes = value;
118 }
121 return *this;
122 }
124
126
129 inline const Aws::String& GetWorkgroupName() const { return m_workgroupName; }
130 inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; }
131 template <typename WorkgroupNameT = Aws::String>
132 void SetWorkgroupName(WorkgroupNameT&& value) {
133 m_workgroupNameHasBeenSet = true;
134 m_workgroupName = std::forward<WorkgroupNameT>(value);
135 }
136 template <typename WorkgroupNameT = Aws::String>
137 RecoveryPoint& WithWorkgroupName(WorkgroupNameT&& value) {
138 SetWorkgroupName(std::forward<WorkgroupNameT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_namespaceArn;
144
145 Aws::String m_namespaceName;
146
147 Aws::Utils::DateTime m_recoveryPointCreateTime{};
148
149 Aws::String m_recoveryPointId;
150
151 double m_totalSizeInMegaBytes{0.0};
152
153 Aws::String m_workgroupName;
154 bool m_namespaceArnHasBeenSet = false;
155 bool m_namespaceNameHasBeenSet = false;
156 bool m_recoveryPointCreateTimeHasBeenSet = false;
157 bool m_recoveryPointIdHasBeenSet = false;
158 bool m_totalSizeInMegaBytesHasBeenSet = false;
159 bool m_workgroupNameHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace RedshiftServerless
164} // namespace Aws
void SetRecoveryPointId(RecoveryPointIdT &&value)
RecoveryPoint & WithRecoveryPointCreateTime(RecoveryPointCreateTimeT &&value)
const Aws::String & GetWorkgroupName() const
RecoveryPoint & WithNamespaceArn(NamespaceArnT &&value)
RecoveryPoint & WithWorkgroupName(WorkgroupNameT &&value)
const Aws::String & GetNamespaceArn() const
AWS_REDSHIFTSERVERLESS_API RecoveryPoint()=default
void SetNamespaceArn(NamespaceArnT &&value)
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REDSHIFTSERVERLESS_API RecoveryPoint(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetNamespaceName() const
void SetWorkgroupName(WorkgroupNameT &&value)
void SetNamespaceName(NamespaceNameT &&value)
RecoveryPoint & WithTotalSizeInMegaBytes(double value)
RecoveryPoint & WithNamespaceName(NamespaceNameT &&value)
void SetRecoveryPointCreateTime(RecoveryPointCreateTimeT &&value)
const Aws::String & GetRecoveryPointId() const
AWS_REDSHIFTSERVERLESS_API RecoveryPoint & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetRecoveryPointCreateTime() const
RecoveryPoint & WithRecoveryPointId(RecoveryPointIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue