AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
AssociatePersonasToEntitiesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/KendraRequest.h>
10#include <aws/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/EntityPersonaConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace kendra {
17namespace Model {
18
22 public:
23 AWS_KENDRA_API AssociatePersonasToEntitiesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AssociatePersonasToEntities"; }
30
31 AWS_KENDRA_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIndexId() const { return m_indexId; }
58 inline bool IndexIdHasBeenSet() const { return m_indexIdHasBeenSet; }
59 template <typename IndexIdT = Aws::String>
60 void SetIndexId(IndexIdT&& value) {
61 m_indexIdHasBeenSet = true;
62 m_indexId = std::forward<IndexIdT>(value);
63 }
64 template <typename IndexIdT = Aws::String>
66 SetIndexId(std::forward<IndexIdT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::Vector<EntityPersonaConfiguration>& GetPersonas() const { return m_personas; }
81 inline bool PersonasHasBeenSet() const { return m_personasHasBeenSet; }
82 template <typename PersonasT = Aws::Vector<EntityPersonaConfiguration>>
83 void SetPersonas(PersonasT&& value) {
84 m_personasHasBeenSet = true;
85 m_personas = std::forward<PersonasT>(value);
86 }
87 template <typename PersonasT = Aws::Vector<EntityPersonaConfiguration>>
89 SetPersonas(std::forward<PersonasT>(value));
90 return *this;
91 }
92 template <typename PersonasT = EntityPersonaConfiguration>
94 m_personasHasBeenSet = true;
95 m_personas.emplace_back(std::forward<PersonasT>(value));
96 return *this;
97 }
99 private:
100 Aws::String m_id;
101 bool m_idHasBeenSet = false;
102
103 Aws::String m_indexId;
104 bool m_indexIdHasBeenSet = false;
105
107 bool m_personasHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace kendra
112} // namespace Aws
AssociatePersonasToEntitiesRequest & WithIndexId(IndexIdT &&value)
const Aws::Vector< EntityPersonaConfiguration > & GetPersonas() const
AWS_KENDRA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociatePersonasToEntitiesRequest & AddPersonas(PersonasT &&value)
AssociatePersonasToEntitiesRequest & WithPersonas(PersonasT &&value)
AWS_KENDRA_API Aws::String SerializePayload() const override
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