AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DatabaseResponse.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dms/model/ServerShortInfoResponse.h>
10#include <aws/dms/model/DatabaseInstanceSoftwareDetailsResponse.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/dms/model/CollectorShortInfoResponse.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DatabaseMigrationService
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DATABASEMIGRATIONSERVICE_API DatabaseResponse();
40 AWS_DATABASEMIGRATIONSERVICE_API DatabaseResponse(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATABASEMIGRATIONSERVICE_API DatabaseResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetDatabaseId() const{ return m_databaseId; }
50 inline bool DatabaseIdHasBeenSet() const { return m_databaseIdHasBeenSet; }
51 inline void SetDatabaseId(const Aws::String& value) { m_databaseIdHasBeenSet = true; m_databaseId = value; }
52 inline void SetDatabaseId(Aws::String&& value) { m_databaseIdHasBeenSet = true; m_databaseId = std::move(value); }
53 inline void SetDatabaseId(const char* value) { m_databaseIdHasBeenSet = true; m_databaseId.assign(value); }
54 inline DatabaseResponse& WithDatabaseId(const Aws::String& value) { SetDatabaseId(value); return *this;}
55 inline DatabaseResponse& WithDatabaseId(Aws::String&& value) { SetDatabaseId(std::move(value)); return *this;}
56 inline DatabaseResponse& WithDatabaseId(const char* value) { SetDatabaseId(value); return *this;}
58
60
63 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
64 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
65 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
66 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
67 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
68 inline DatabaseResponse& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
69 inline DatabaseResponse& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
70 inline DatabaseResponse& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
72
74
77 inline const Aws::String& GetIpAddress() const{ return m_ipAddress; }
78 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
79 inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; }
80 inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); }
81 inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); }
82 inline DatabaseResponse& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;}
83 inline DatabaseResponse& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;}
84 inline DatabaseResponse& WithIpAddress(const char* value) { SetIpAddress(value); return *this;}
86
88
91 inline long long GetNumberOfSchemas() const{ return m_numberOfSchemas; }
92 inline bool NumberOfSchemasHasBeenSet() const { return m_numberOfSchemasHasBeenSet; }
93 inline void SetNumberOfSchemas(long long value) { m_numberOfSchemasHasBeenSet = true; m_numberOfSchemas = value; }
94 inline DatabaseResponse& WithNumberOfSchemas(long long value) { SetNumberOfSchemas(value); return *this;}
96
98
101 inline const ServerShortInfoResponse& GetServer() const{ return m_server; }
102 inline bool ServerHasBeenSet() const { return m_serverHasBeenSet; }
103 inline void SetServer(const ServerShortInfoResponse& value) { m_serverHasBeenSet = true; m_server = value; }
104 inline void SetServer(ServerShortInfoResponse&& value) { m_serverHasBeenSet = true; m_server = std::move(value); }
105 inline DatabaseResponse& WithServer(const ServerShortInfoResponse& value) { SetServer(value); return *this;}
106 inline DatabaseResponse& WithServer(ServerShortInfoResponse&& value) { SetServer(std::move(value)); return *this;}
108
110
114 inline const DatabaseInstanceSoftwareDetailsResponse& GetSoftwareDetails() const{ return m_softwareDetails; }
115 inline bool SoftwareDetailsHasBeenSet() const { return m_softwareDetailsHasBeenSet; }
116 inline void SetSoftwareDetails(const DatabaseInstanceSoftwareDetailsResponse& value) { m_softwareDetailsHasBeenSet = true; m_softwareDetails = value; }
117 inline void SetSoftwareDetails(DatabaseInstanceSoftwareDetailsResponse&& value) { m_softwareDetailsHasBeenSet = true; m_softwareDetails = std::move(value); }
121
123
126 inline const Aws::Vector<CollectorShortInfoResponse>& GetCollectors() const{ return m_collectors; }
127 inline bool CollectorsHasBeenSet() const { return m_collectorsHasBeenSet; }
128 inline void SetCollectors(const Aws::Vector<CollectorShortInfoResponse>& value) { m_collectorsHasBeenSet = true; m_collectors = value; }
129 inline void SetCollectors(Aws::Vector<CollectorShortInfoResponse>&& value) { m_collectorsHasBeenSet = true; m_collectors = std::move(value); }
132 inline DatabaseResponse& AddCollectors(const CollectorShortInfoResponse& value) { m_collectorsHasBeenSet = true; m_collectors.push_back(value); return *this; }
133 inline DatabaseResponse& AddCollectors(CollectorShortInfoResponse&& value) { m_collectorsHasBeenSet = true; m_collectors.push_back(std::move(value)); return *this; }
135 private:
136
137 Aws::String m_databaseId;
138 bool m_databaseIdHasBeenSet = false;
139
140 Aws::String m_databaseName;
141 bool m_databaseNameHasBeenSet = false;
142
143 Aws::String m_ipAddress;
144 bool m_ipAddressHasBeenSet = false;
145
146 long long m_numberOfSchemas;
147 bool m_numberOfSchemasHasBeenSet = false;
148
150 bool m_serverHasBeenSet = false;
151
153 bool m_softwareDetailsHasBeenSet = false;
154
156 bool m_collectorsHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace DatabaseMigrationService
161} // namespace Aws
DatabaseResponse & WithCollectors(const Aws::Vector< CollectorShortInfoResponse > &value)
void SetCollectors(const Aws::Vector< CollectorShortInfoResponse > &value)
DatabaseResponse & AddCollectors(CollectorShortInfoResponse &&value)
DatabaseResponse & WithSoftwareDetails(DatabaseInstanceSoftwareDetailsResponse &&value)
DatabaseResponse & WithNumberOfSchemas(long long value)
void SetCollectors(Aws::Vector< CollectorShortInfoResponse > &&value)
AWS_DATABASEMIGRATIONSERVICE_API DatabaseResponse(Aws::Utils::Json::JsonView jsonValue)
DatabaseResponse & WithDatabaseName(Aws::String &&value)
const ServerShortInfoResponse & GetServer() const
const Aws::Vector< CollectorShortInfoResponse > & GetCollectors() const
DatabaseResponse & WithSoftwareDetails(const DatabaseInstanceSoftwareDetailsResponse &value)
DatabaseResponse & WithDatabaseId(const char *value)
DatabaseResponse & WithIpAddress(Aws::String &&value)
DatabaseResponse & WithDatabaseId(Aws::String &&value)
DatabaseResponse & WithDatabaseId(const Aws::String &value)
DatabaseResponse & WithDatabaseName(const Aws::String &value)
void SetSoftwareDetails(DatabaseInstanceSoftwareDetailsResponse &&value)
void SetSoftwareDetails(const DatabaseInstanceSoftwareDetailsResponse &value)
void SetServer(const ServerShortInfoResponse &value)
DatabaseResponse & WithCollectors(Aws::Vector< CollectorShortInfoResponse > &&value)
AWS_DATABASEMIGRATIONSERVICE_API DatabaseResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
DatabaseResponse & WithIpAddress(const char *value)
DatabaseResponse & WithServer(ServerShortInfoResponse &&value)
DatabaseResponse & WithDatabaseName(const char *value)
DatabaseResponse & WithServer(const ServerShortInfoResponse &value)
DatabaseResponse & AddCollectors(const CollectorShortInfoResponse &value)
DatabaseResponse & WithIpAddress(const Aws::String &value)
void SetServer(ServerShortInfoResponse &&value)
AWS_DATABASEMIGRATIONSERVICE_API DatabaseResponse()
const DatabaseInstanceSoftwareDetailsResponse & GetSoftwareDetails() const
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue