AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateExperienceRequest.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/KendraRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kendra/model/ExperienceConfiguration.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace kendra
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KENDRA_API CreateExperienceRequest() = default;
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 "CreateExperience"; }
33
34 AWS_KENDRA_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateExperienceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline const Aws::String& GetIndexId() const { return m_indexId; }
56 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
57 template<typename IndexIdT = Aws::String>
58 void SetIndexId(IndexIdT&& value) { m_indexIdHasBeenSet = true; m_indexId = std::forward<IndexIdT>(value); }
59 template<typename IndexIdT = Aws::String>
60 CreateExperienceRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
62
64
72 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
73 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
74 template<typename RoleArnT = Aws::String>
75 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
76 template<typename RoleArnT = Aws::String>
77 CreateExperienceRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
79
81
87 inline const ExperienceConfiguration& GetConfiguration() const { return m_configuration; }
88 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
89 template<typename ConfigurationT = ExperienceConfiguration>
90 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
91 template<typename ConfigurationT = ExperienceConfiguration>
92 CreateExperienceRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 CreateExperienceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
113 inline const Aws::String& GetClientToken() const { return m_clientToken; }
114 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
115 template<typename ClientTokenT = Aws::String>
116 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
117 template<typename ClientTokenT = Aws::String>
118 CreateExperienceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 Aws::String m_indexId;
126 bool m_indexIdHasBeenSet = false;
127
128 Aws::String m_roleArn;
129 bool m_roleArnHasBeenSet = false;
130
131 ExperienceConfiguration m_configuration;
132 bool m_configurationHasBeenSet = false;
133
134 Aws::String m_description;
135 bool m_descriptionHasBeenSet = false;
136
138 bool m_clientTokenHasBeenSet = true;
139 };
140
141} // namespace Model
142} // namespace kendra
143} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateExperienceRequest & WithDescription(DescriptionT &&value)
virtual const char * GetServiceRequestName() const override
CreateExperienceRequest & WithConfiguration(ConfigurationT &&value)
CreateExperienceRequest & WithClientToken(ClientTokenT &&value)
CreateExperienceRequest & WithIndexId(IndexIdT &&value)
AWS_KENDRA_API CreateExperienceRequest()=default
CreateExperienceRequest & WithRoleArn(RoleArnT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const ExperienceConfiguration & GetConfiguration() const
CreateExperienceRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String