AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartMigrationRequest.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/lex-models/LexModelBuildingServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lex-models/model/MigrationStrategy.h>
11#include <utility>
12
13namespace Aws
14{
15namespace LexModelBuildingService
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LEXMODELBUILDINGSERVICE_API StartMigrationRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartMigration"; }
32
33 AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetV1BotName() const{ return m_v1BotName; }
42 inline bool V1BotNameHasBeenSet() const { return m_v1BotNameHasBeenSet; }
43 inline void SetV1BotName(const Aws::String& value) { m_v1BotNameHasBeenSet = true; m_v1BotName = value; }
44 inline void SetV1BotName(Aws::String&& value) { m_v1BotNameHasBeenSet = true; m_v1BotName = std::move(value); }
45 inline void SetV1BotName(const char* value) { m_v1BotNameHasBeenSet = true; m_v1BotName.assign(value); }
46 inline StartMigrationRequest& WithV1BotName(const Aws::String& value) { SetV1BotName(value); return *this;}
47 inline StartMigrationRequest& WithV1BotName(Aws::String&& value) { SetV1BotName(std::move(value)); return *this;}
48 inline StartMigrationRequest& WithV1BotName(const char* value) { SetV1BotName(value); return *this;}
50
52
56 inline const Aws::String& GetV1BotVersion() const{ return m_v1BotVersion; }
57 inline bool V1BotVersionHasBeenSet() const { return m_v1BotVersionHasBeenSet; }
58 inline void SetV1BotVersion(const Aws::String& value) { m_v1BotVersionHasBeenSet = true; m_v1BotVersion = value; }
59 inline void SetV1BotVersion(Aws::String&& value) { m_v1BotVersionHasBeenSet = true; m_v1BotVersion = std::move(value); }
60 inline void SetV1BotVersion(const char* value) { m_v1BotVersionHasBeenSet = true; m_v1BotVersion.assign(value); }
61 inline StartMigrationRequest& WithV1BotVersion(const Aws::String& value) { SetV1BotVersion(value); return *this;}
62 inline StartMigrationRequest& WithV1BotVersion(Aws::String&& value) { SetV1BotVersion(std::move(value)); return *this;}
63 inline StartMigrationRequest& WithV1BotVersion(const char* value) { SetV1BotVersion(value); return *this;}
65
67
74 inline const Aws::String& GetV2BotName() const{ return m_v2BotName; }
75 inline bool V2BotNameHasBeenSet() const { return m_v2BotNameHasBeenSet; }
76 inline void SetV2BotName(const Aws::String& value) { m_v2BotNameHasBeenSet = true; m_v2BotName = value; }
77 inline void SetV2BotName(Aws::String&& value) { m_v2BotNameHasBeenSet = true; m_v2BotName = std::move(value); }
78 inline void SetV2BotName(const char* value) { m_v2BotNameHasBeenSet = true; m_v2BotName.assign(value); }
79 inline StartMigrationRequest& WithV2BotName(const Aws::String& value) { SetV2BotName(value); return *this;}
80 inline StartMigrationRequest& WithV2BotName(Aws::String&& value) { SetV2BotName(std::move(value)); return *this;}
81 inline StartMigrationRequest& WithV2BotName(const char* value) { SetV2BotName(value); return *this;}
83
85
88 inline const Aws::String& GetV2BotRole() const{ return m_v2BotRole; }
89 inline bool V2BotRoleHasBeenSet() const { return m_v2BotRoleHasBeenSet; }
90 inline void SetV2BotRole(const Aws::String& value) { m_v2BotRoleHasBeenSet = true; m_v2BotRole = value; }
91 inline void SetV2BotRole(Aws::String&& value) { m_v2BotRoleHasBeenSet = true; m_v2BotRole = std::move(value); }
92 inline void SetV2BotRole(const char* value) { m_v2BotRoleHasBeenSet = true; m_v2BotRole.assign(value); }
93 inline StartMigrationRequest& WithV2BotRole(const Aws::String& value) { SetV2BotRole(value); return *this;}
94 inline StartMigrationRequest& WithV2BotRole(Aws::String&& value) { SetV2BotRole(std::move(value)); return *this;}
95 inline StartMigrationRequest& WithV2BotRole(const char* value) { SetV2BotRole(value); return *this;}
97
99
108 inline const MigrationStrategy& GetMigrationStrategy() const{ return m_migrationStrategy; }
109 inline bool MigrationStrategyHasBeenSet() const { return m_migrationStrategyHasBeenSet; }
110 inline void SetMigrationStrategy(const MigrationStrategy& value) { m_migrationStrategyHasBeenSet = true; m_migrationStrategy = value; }
111 inline void SetMigrationStrategy(MigrationStrategy&& value) { m_migrationStrategyHasBeenSet = true; m_migrationStrategy = std::move(value); }
113 inline StartMigrationRequest& WithMigrationStrategy(MigrationStrategy&& value) { SetMigrationStrategy(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_v1BotName;
118 bool m_v1BotNameHasBeenSet = false;
119
120 Aws::String m_v1BotVersion;
121 bool m_v1BotVersionHasBeenSet = false;
122
123 Aws::String m_v2BotName;
124 bool m_v2BotNameHasBeenSet = false;
125
126 Aws::String m_v2BotRole;
127 bool m_v2BotRoleHasBeenSet = false;
128
129 MigrationStrategy m_migrationStrategy;
130 bool m_migrationStrategyHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace LexModelBuildingService
135} // namespace Aws
StartMigrationRequest & WithV1BotVersion(Aws::String &&value)
StartMigrationRequest & WithV2BotRole(const char *value)
StartMigrationRequest & WithMigrationStrategy(MigrationStrategy &&value)
StartMigrationRequest & WithMigrationStrategy(const MigrationStrategy &value)
StartMigrationRequest & WithV2BotName(Aws::String &&value)
StartMigrationRequest & WithV2BotRole(Aws::String &&value)
StartMigrationRequest & WithV1BotName(const Aws::String &value)
StartMigrationRequest & WithV2BotRole(const Aws::String &value)
StartMigrationRequest & WithV1BotVersion(const Aws::String &value)
StartMigrationRequest & WithV1BotVersion(const char *value)
StartMigrationRequest & WithV1BotName(const char *value)
StartMigrationRequest & WithV1BotName(Aws::String &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override
StartMigrationRequest & WithV2BotName(const char *value)
StartMigrationRequest & WithV2BotName(const Aws::String &value)
AWS_LEXMODELBUILDINGSERVICE_API StartMigrationRequest()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String