AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReloadTablesRequest.h
1
6#pragma once
7#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
8#include <aws/dms/DatabaseMigrationServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dms/model/ReloadOptionValue.h>
12#include <aws/dms/model/TableToReload.h>
13#include <utility>
14
15namespace Aws
16{
17namespace DatabaseMigrationService
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DATABASEMIGRATIONSERVICE_API ReloadTablesRequest();
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 "ReloadTables"; }
34
35 AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override;
36
37 AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetReplicationTaskArn() const{ return m_replicationTaskArn; }
45 inline bool ReplicationTaskArnHasBeenSet() const { return m_replicationTaskArnHasBeenSet; }
46 inline void SetReplicationTaskArn(const Aws::String& value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn = value; }
47 inline void SetReplicationTaskArn(Aws::String&& value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn = std::move(value); }
48 inline void SetReplicationTaskArn(const char* value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn.assign(value); }
49 inline ReloadTablesRequest& WithReplicationTaskArn(const Aws::String& value) { SetReplicationTaskArn(value); return *this;}
50 inline ReloadTablesRequest& WithReplicationTaskArn(Aws::String&& value) { SetReplicationTaskArn(std::move(value)); return *this;}
51 inline ReloadTablesRequest& WithReplicationTaskArn(const char* value) { SetReplicationTaskArn(value); return *this;}
53
55
58 inline const Aws::Vector<TableToReload>& GetTablesToReload() const{ return m_tablesToReload; }
59 inline bool TablesToReloadHasBeenSet() const { return m_tablesToReloadHasBeenSet; }
60 inline void SetTablesToReload(const Aws::Vector<TableToReload>& value) { m_tablesToReloadHasBeenSet = true; m_tablesToReload = value; }
61 inline void SetTablesToReload(Aws::Vector<TableToReload>&& value) { m_tablesToReloadHasBeenSet = true; m_tablesToReload = std::move(value); }
63 inline ReloadTablesRequest& WithTablesToReload(Aws::Vector<TableToReload>&& value) { SetTablesToReload(std::move(value)); return *this;}
64 inline ReloadTablesRequest& AddTablesToReload(const TableToReload& value) { m_tablesToReloadHasBeenSet = true; m_tablesToReload.push_back(value); return *this; }
65 inline ReloadTablesRequest& AddTablesToReload(TableToReload&& value) { m_tablesToReloadHasBeenSet = true; m_tablesToReload.push_back(std::move(value)); return *this; }
67
69
76 inline const ReloadOptionValue& GetReloadOption() const{ return m_reloadOption; }
77 inline bool ReloadOptionHasBeenSet() const { return m_reloadOptionHasBeenSet; }
78 inline void SetReloadOption(const ReloadOptionValue& value) { m_reloadOptionHasBeenSet = true; m_reloadOption = value; }
79 inline void SetReloadOption(ReloadOptionValue&& value) { m_reloadOptionHasBeenSet = true; m_reloadOption = std::move(value); }
80 inline ReloadTablesRequest& WithReloadOption(const ReloadOptionValue& value) { SetReloadOption(value); return *this;}
81 inline ReloadTablesRequest& WithReloadOption(ReloadOptionValue&& value) { SetReloadOption(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_replicationTaskArn;
86 bool m_replicationTaskArnHasBeenSet = false;
87
88 Aws::Vector<TableToReload> m_tablesToReload;
89 bool m_tablesToReloadHasBeenSet = false;
90
91 ReloadOptionValue m_reloadOption;
92 bool m_reloadOptionHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace DatabaseMigrationService
97} // namespace Aws
ReloadTablesRequest & WithReloadOption(ReloadOptionValue &&value)
ReloadTablesRequest & WithReloadOption(const ReloadOptionValue &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ReloadTablesRequest & WithReplicationTaskArn(Aws::String &&value)
AWS_DATABASEMIGRATIONSERVICE_API ReloadTablesRequest()
void SetTablesToReload(const Aws::Vector< TableToReload > &value)
ReloadTablesRequest & WithReplicationTaskArn(const Aws::String &value)
ReloadTablesRequest & AddTablesToReload(TableToReload &&value)
ReloadTablesRequest & WithTablesToReload(const Aws::Vector< TableToReload > &value)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< TableToReload > & GetTablesToReload() const
ReloadTablesRequest & WithReplicationTaskArn(const char *value)
ReloadTablesRequest & WithTablesToReload(Aws::Vector< TableToReload > &&value)
void SetTablesToReload(Aws::Vector< TableToReload > &&value)
ReloadTablesRequest & AddTablesToReload(const TableToReload &value)
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