AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Database.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace TimestreamWrite
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_TIMESTREAMWRITE_API Database();
38 AWS_TIMESTREAMWRITE_API Database(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TIMESTREAMWRITE_API Database& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline Database& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline Database& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline Database& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
62 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
63 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
64 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
65 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
66 inline Database& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
67 inline Database& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
68 inline Database& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
70
72
75 inline long long GetTableCount() const{ return m_tableCount; }
76 inline bool TableCountHasBeenSet() const { return m_tableCountHasBeenSet; }
77 inline void SetTableCount(long long value) { m_tableCountHasBeenSet = true; m_tableCount = value; }
78 inline Database& WithTableCount(long long value) { SetTableCount(value); return *this;}
80
82
86 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
87 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
88 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
89 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
90 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
91 inline Database& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
92 inline Database& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
93 inline Database& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
95
97
101 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
102 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
103 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
104 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
105 inline Database& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
106 inline Database& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
108
110
113 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
114 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
115 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
116 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
117 inline Database& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
118 inline Database& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
120 private:
121
122 Aws::String m_arn;
123 bool m_arnHasBeenSet = false;
124
125 Aws::String m_databaseName;
126 bool m_databaseNameHasBeenSet = false;
127
128 long long m_tableCount;
129 bool m_tableCountHasBeenSet = false;
130
131 Aws::String m_kmsKeyId;
132 bool m_kmsKeyIdHasBeenSet = false;
133
134 Aws::Utils::DateTime m_creationTime;
135 bool m_creationTimeHasBeenSet = false;
136
137 Aws::Utils::DateTime m_lastUpdatedTime;
138 bool m_lastUpdatedTimeHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace TimestreamWrite
143} // namespace Aws
void SetDatabaseName(const char *value)
Definition Database.h:65
Database & WithDatabaseName(const Aws::String &value)
Definition Database.h:66
Database & WithDatabaseName(Aws::String &&value)
Definition Database.h:67
Database & WithKmsKeyId(const char *value)
Definition Database.h:93
Database & WithKmsKeyId(Aws::String &&value)
Definition Database.h:92
void SetDatabaseName(const Aws::String &value)
Definition Database.h:63
void SetKmsKeyId(const char *value)
Definition Database.h:90
Database & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Database.h:117
void SetKmsKeyId(Aws::String &&value)
Definition Database.h:89
void SetArn(const char *value)
Definition Database.h:51
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Database.h:104
void SetTableCount(long long value)
Definition Database.h:77
const Aws::String & GetDatabaseName() const
Definition Database.h:61
Database & WithArn(const char *value)
Definition Database.h:54
Database & WithKmsKeyId(const Aws::String &value)
Definition Database.h:91
void SetArn(const Aws::String &value)
Definition Database.h:49
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Database.h:103
Database & WithTableCount(long long value)
Definition Database.h:78
AWS_TIMESTREAMWRITE_API Database(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Database.h:116
Database & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Database.h:118
const Aws::Utils::DateTime & GetCreationTime() const
Definition Database.h:101
void SetArn(Aws::String &&value)
Definition Database.h:50
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Database.h:115
Database & WithArn(const Aws::String &value)
Definition Database.h:52
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Database.h:113
AWS_TIMESTREAMWRITE_API Database()
Database & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Database.h:106
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
Database & WithArn(Aws::String &&value)
Definition Database.h:53
void SetDatabaseName(Aws::String &&value)
Definition Database.h:64
const Aws::String & GetArn() const
Definition Database.h:47
const Aws::String & GetKmsKeyId() const
Definition Database.h:86
void SetKmsKeyId(const Aws::String &value)
Definition Database.h:88
Database & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Database.h:105
Database & WithDatabaseName(const char *value)
Definition Database.h:68
AWS_TIMESTREAMWRITE_API Database & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue