AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ApplicationIdT = Aws::String>
47 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
48 template<typename ApplicationIdT = Aws::String>
49 CreateRetrieverRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
51
53
56 inline RetrieverType GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(RetrieverType value) { m_typeHasBeenSet = true; m_type = value; }
59 inline CreateRetrieverRequest& WithType(RetrieverType value) { SetType(value); return *this;}
61
63
66 inline const Aws::String& GetDisplayName() const { return m_displayName; }
67 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
68 template<typename DisplayNameT = Aws::String>
69 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
70 template<typename DisplayNameT = Aws::String>
71 CreateRetrieverRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
73
75
76 inline const RetrieverConfiguration& GetConfiguration() const { return m_configuration; }
77 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
78 template<typename ConfigurationT = RetrieverConfiguration>
79 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
80 template<typename ConfigurationT = RetrieverConfiguration>
81 CreateRetrieverRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
83
85
89 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
90 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
91 template<typename RoleArnT = Aws::String>
92 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
93 template<typename RoleArnT = Aws::String>
94 CreateRetrieverRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
96
98
102 inline const Aws::String& GetClientToken() const { return m_clientToken; }
103 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
104 template<typename ClientTokenT = Aws::String>
105 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
106 template<typename ClientTokenT = Aws::String>
107 CreateRetrieverRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
109
111
117 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 template<typename TagsT = Aws::Vector<Tag>>
120 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
121 template<typename TagsT = Aws::Vector<Tag>>
122 CreateRetrieverRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
123 template<typename TagsT = Tag>
124 CreateRetrieverRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
126 private:
127
128 Aws::String m_applicationId;
129 bool m_applicationIdHasBeenSet = false;
130
132 bool m_typeHasBeenSet = false;
133
134 Aws::String m_displayName;
135 bool m_displayNameHasBeenSet = false;
136
137 RetrieverConfiguration m_configuration;
138 bool m_configurationHasBeenSet = false;
139
140 Aws::String m_roleArn;
141 bool m_roleArnHasBeenSet = false;
142
144 bool m_clientTokenHasBeenSet = true;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace QBusiness
152} // namespace Aws
CreateRetrieverRequest & WithConfiguration(ConfigurationT &&value)
CreateRetrieverRequest & WithApplicationId(ApplicationIdT &&value)
CreateRetrieverRequest & WithDisplayName(DisplayNameT &&value)
CreateRetrieverRequest & WithRoleArn(RoleArnT &&value)
AWS_QBUSINESS_API CreateRetrieverRequest()=default
const RetrieverConfiguration & GetConfiguration() const
CreateRetrieverRequest & AddTags(TagsT &&value)
CreateRetrieverRequest & WithTags(TagsT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
CreateRetrieverRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
CreateRetrieverRequest & WithType(RetrieverType value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector