AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ReloadReplicationTablesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dms/DatabaseMigrationServiceRequest.h>
10#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
11#include <aws/dms/model/ReloadOptionValue.h>
12#include <aws/dms/model/TableToReload.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DatabaseMigrationService {
18namespace Model {
19
26 public:
27 AWS_DATABASEMIGRATIONSERVICE_API ReloadReplicationTablesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ReloadReplicationTables"; }
34
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
44 inline const Aws::String& GetReplicationConfigArn() const { return m_replicationConfigArn; }
45 inline bool ReplicationConfigArnHasBeenSet() const { return m_replicationConfigArnHasBeenSet; }
46 template <typename ReplicationConfigArnT = Aws::String>
47 void SetReplicationConfigArn(ReplicationConfigArnT&& value) {
48 m_replicationConfigArnHasBeenSet = true;
49 m_replicationConfigArn = std::forward<ReplicationConfigArnT>(value);
50 }
51 template <typename ReplicationConfigArnT = Aws::String>
53 SetReplicationConfigArn(std::forward<ReplicationConfigArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<TableToReload>& GetTablesToReload() const { return m_tablesToReload; }
63 inline bool TablesToReloadHasBeenSet() const { return m_tablesToReloadHasBeenSet; }
64 template <typename TablesToReloadT = Aws::Vector<TableToReload>>
65 void SetTablesToReload(TablesToReloadT&& value) {
66 m_tablesToReloadHasBeenSet = true;
67 m_tablesToReload = std::forward<TablesToReloadT>(value);
68 }
69 template <typename TablesToReloadT = Aws::Vector<TableToReload>>
71 SetTablesToReload(std::forward<TablesToReloadT>(value));
72 return *this;
73 }
74 template <typename TablesToReloadT = TableToReload>
76 m_tablesToReloadHasBeenSet = true;
77 m_tablesToReload.emplace_back(std::forward<TablesToReloadT>(value));
78 return *this;
79 }
81
83
89 inline ReloadOptionValue GetReloadOption() const { return m_reloadOption; }
90 inline bool ReloadOptionHasBeenSet() const { return m_reloadOptionHasBeenSet; }
92 m_reloadOptionHasBeenSet = true;
93 m_reloadOption = value;
94 }
96 SetReloadOption(value);
97 return *this;
98 }
100 private:
101 Aws::String m_replicationConfigArn;
102
103 Aws::Vector<TableToReload> m_tablesToReload;
104
106 bool m_replicationConfigArnHasBeenSet = false;
107 bool m_tablesToReloadHasBeenSet = false;
108 bool m_reloadOptionHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace DatabaseMigrationService
113} // namespace Aws
ReloadReplicationTablesRequest & WithReloadOption(ReloadOptionValue value)
ReloadReplicationTablesRequest & WithReplicationConfigArn(ReplicationConfigArnT &&value)
ReloadReplicationTablesRequest & AddTablesToReload(TablesToReloadT &&value)
ReloadReplicationTablesRequest & WithTablesToReload(TablesToReloadT &&value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
AWS_DATABASEMIGRATIONSERVICE_API ReloadReplicationTablesRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector