AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportModelRequest.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/comprehend/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Comprehend
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COMPREHEND_API ImportModelRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ImportModel"; }
33
34 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetSourceModelArn() const{ return m_sourceModelArn; }
44 inline bool SourceModelArnHasBeenSet() const { return m_sourceModelArnHasBeenSet; }
45 inline void SetSourceModelArn(const Aws::String& value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn = value; }
46 inline void SetSourceModelArn(Aws::String&& value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn = std::move(value); }
47 inline void SetSourceModelArn(const char* value) { m_sourceModelArnHasBeenSet = true; m_sourceModelArn.assign(value); }
48 inline ImportModelRequest& WithSourceModelArn(const Aws::String& value) { SetSourceModelArn(value); return *this;}
49 inline ImportModelRequest& WithSourceModelArn(Aws::String&& value) { SetSourceModelArn(std::move(value)); return *this;}
50 inline ImportModelRequest& WithSourceModelArn(const char* value) { SetSourceModelArn(value); return *this;}
52
54
58 inline const Aws::String& GetModelName() const{ return m_modelName; }
59 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
60 inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; }
61 inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); }
62 inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); }
63 inline ImportModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;}
64 inline ImportModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;}
65 inline ImportModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;}
67
69
75 inline const Aws::String& GetVersionName() const{ return m_versionName; }
76 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
77 inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; }
78 inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); }
79 inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); }
80 inline ImportModelRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;}
81 inline ImportModelRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;}
82 inline ImportModelRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;}
84
86
94 inline const Aws::String& GetModelKmsKeyId() const{ return m_modelKmsKeyId; }
95 inline bool ModelKmsKeyIdHasBeenSet() const { return m_modelKmsKeyIdHasBeenSet; }
96 inline void SetModelKmsKeyId(const Aws::String& value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId = value; }
97 inline void SetModelKmsKeyId(Aws::String&& value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId = std::move(value); }
98 inline void SetModelKmsKeyId(const char* value) { m_modelKmsKeyIdHasBeenSet = true; m_modelKmsKeyId.assign(value); }
99 inline ImportModelRequest& WithModelKmsKeyId(const Aws::String& value) { SetModelKmsKeyId(value); return *this;}
100 inline ImportModelRequest& WithModelKmsKeyId(Aws::String&& value) { SetModelKmsKeyId(std::move(value)); return *this;}
101 inline ImportModelRequest& WithModelKmsKeyId(const char* value) { SetModelKmsKeyId(value); return *this;}
103
105
110 inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
111 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
112 inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
113 inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
114 inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
115 inline ImportModelRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
116 inline ImportModelRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
117 inline ImportModelRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
119
121
127 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
130 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
131 inline ImportModelRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
132 inline ImportModelRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
133 inline ImportModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
134 inline ImportModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::String m_sourceModelArn;
139 bool m_sourceModelArnHasBeenSet = false;
140
141 Aws::String m_modelName;
142 bool m_modelNameHasBeenSet = false;
143
144 Aws::String m_versionName;
145 bool m_versionNameHasBeenSet = false;
146
147 Aws::String m_modelKmsKeyId;
148 bool m_modelKmsKeyIdHasBeenSet = false;
149
150 Aws::String m_dataAccessRoleArn;
151 bool m_dataAccessRoleArnHasBeenSet = false;
152
153 Aws::Vector<Tag> m_tags;
154 bool m_tagsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Comprehend
159} // namespace Aws
virtual const char * GetServiceRequestName() const override
ImportModelRequest & WithModelName(const Aws::String &value)
ImportModelRequest & WithDataAccessRoleArn(Aws::String &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
void SetModelKmsKeyId(const Aws::String &value)
ImportModelRequest & WithVersionName(Aws::String &&value)
ImportModelRequest & WithSourceModelArn(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
ImportModelRequest & WithVersionName(const Aws::String &value)
ImportModelRequest & WithDataAccessRoleArn(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
ImportModelRequest & AddTags(const Tag &value)
void SetSourceModelArn(const Aws::String &value)
ImportModelRequest & WithVersionName(const char *value)
ImportModelRequest & WithSourceModelArn(const char *value)
ImportModelRequest & WithSourceModelArn(const Aws::String &value)
ImportModelRequest & AddTags(Tag &&value)
ImportModelRequest & WithDataAccessRoleArn(const char *value)
void SetModelName(const Aws::String &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportModelRequest & WithModelName(Aws::String &&value)
ImportModelRequest & WithTags(const Aws::Vector< Tag > &value)
ImportModelRequest & WithModelKmsKeyId(Aws::String &&value)
ImportModelRequest & WithModelKmsKeyId(const char *value)
void SetDataAccessRoleArn(const Aws::String &value)
const Aws::String & GetDataAccessRoleArn() const
ImportModelRequest & WithTags(Aws::Vector< Tag > &&value)
ImportModelRequest & WithModelName(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
void SetVersionName(const Aws::String &value)
const Aws::String & GetSourceModelArn() const
ImportModelRequest & WithModelKmsKeyId(const Aws::String &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