AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRetrieverRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/RetrieverType.h>
11#include <aws/qbusiness/model/RetrieverConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/qbusiness/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace QBusiness
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_QBUSINESS_API CreateRetrieverRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateRetriever"; }
36
37 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
45 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
46 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
47 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
48 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
49 inline CreateRetrieverRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
50 inline CreateRetrieverRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
51 inline CreateRetrieverRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
53
55
58 inline const RetrieverType& GetType() const{ return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(const RetrieverType& value) { m_typeHasBeenSet = true; m_type = value; }
61 inline void SetType(RetrieverType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
62 inline CreateRetrieverRequest& WithType(const RetrieverType& value) { SetType(value); return *this;}
63 inline CreateRetrieverRequest& WithType(RetrieverType&& value) { SetType(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
71 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
72 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
73 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
74 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
75 inline CreateRetrieverRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
76 inline CreateRetrieverRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
77 inline CreateRetrieverRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
79
81
82 inline const RetrieverConfiguration& GetConfiguration() const{ return m_configuration; }
83 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
84 inline void SetConfiguration(const RetrieverConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; }
85 inline void SetConfiguration(RetrieverConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); }
87 inline CreateRetrieverRequest& WithConfiguration(RetrieverConfiguration&& value) { SetConfiguration(std::move(value)); return *this;}
89
91
95 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
96 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
97 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
98 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
99 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
100 inline CreateRetrieverRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
101 inline CreateRetrieverRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
102 inline CreateRetrieverRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
104
106
110 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
111 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
112 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
113 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
114 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
115 inline CreateRetrieverRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
116 inline CreateRetrieverRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
117 inline CreateRetrieverRequest& WithClientToken(const char* value) { SetClientToken(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 CreateRetrieverRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
132 inline CreateRetrieverRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
133 inline CreateRetrieverRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
134 inline CreateRetrieverRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
136 private:
137
138 Aws::String m_applicationId;
139 bool m_applicationIdHasBeenSet = false;
140
141 RetrieverType m_type;
142 bool m_typeHasBeenSet = false;
143
144 Aws::String m_displayName;
145 bool m_displayNameHasBeenSet = false;
146
147 RetrieverConfiguration m_configuration;
148 bool m_configurationHasBeenSet = false;
149
150 Aws::String m_roleArn;
151 bool m_roleArnHasBeenSet = false;
152
153 Aws::String m_clientToken;
154 bool m_clientTokenHasBeenSet = false;
155
156 Aws::Vector<Tag> m_tags;
157 bool m_tagsHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace QBusiness
162} // namespace Aws
void SetConfiguration(RetrieverConfiguration &&value)
CreateRetrieverRequest & WithConfiguration(const RetrieverConfiguration &value)
CreateRetrieverRequest & WithDisplayName(Aws::String &&value)
CreateRetrieverRequest & WithConfiguration(RetrieverConfiguration &&value)
CreateRetrieverRequest & WithRoleArn(const Aws::String &value)
CreateRetrieverRequest & WithDisplayName(const char *value)
CreateRetrieverRequest & AddTags(const Tag &value)
const RetrieverConfiguration & GetConfiguration() const
CreateRetrieverRequest & WithRoleArn(Aws::String &&value)
CreateRetrieverRequest & WithDisplayName(const Aws::String &value)
CreateRetrieverRequest & WithApplicationId(const Aws::String &value)
CreateRetrieverRequest & AddTags(Tag &&value)
CreateRetrieverRequest & WithType(const RetrieverType &value)
CreateRetrieverRequest & WithClientToken(const char *value)
CreateRetrieverRequest & WithType(RetrieverType &&value)
CreateRetrieverRequest & WithRoleArn(const char *value)
CreateRetrieverRequest & WithApplicationId(Aws::String &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
void SetConfiguration(const RetrieverConfiguration &value)
CreateRetrieverRequest & WithTags(const Aws::Vector< Tag > &value)
CreateRetrieverRequest & WithApplicationId(const char *value)
CreateRetrieverRequest & WithTags(Aws::Vector< Tag > &&value)
virtual const char * GetServiceRequestName() const override
CreateRetrieverRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateRetrieverRequest & WithClientToken(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector