AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AssociatePersonasToEntitiesRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/kendra/model/EntityPersonaConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace kendra
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_KENDRA_API AssociatePersonasToEntitiesRequest() = 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 "AssociatePersonasToEntities"; }
33
34 AWS_KENDRA_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template<typename IdT = Aws::String>
46 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
47 template<typename IdT = Aws::String>
48 AssociatePersonasToEntitiesRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(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 AssociatePersonasToEntitiesRequest& WithIndexId(IndexIdT&& value) { SetIndexId(std::forward<IndexIdT>(value)); return *this;}
62
64
72 inline const Aws::Vector<EntityPersonaConfiguration>& GetPersonas() const { return m_personas; }
73 inline bool PersonasHasBeenSet() const { return m_personasHasBeenSet; }
74 template<typename PersonasT = Aws::Vector<EntityPersonaConfiguration>>
75 void SetPersonas(PersonasT&& value) { m_personasHasBeenSet = true; m_personas = std::forward<PersonasT>(value); }
76 template<typename PersonasT = Aws::Vector<EntityPersonaConfiguration>>
77 AssociatePersonasToEntitiesRequest& WithPersonas(PersonasT&& value) { SetPersonas(std::forward<PersonasT>(value)); return *this;}
78 template<typename PersonasT = EntityPersonaConfiguration>
79 AssociatePersonasToEntitiesRequest& AddPersonas(PersonasT&& value) { m_personasHasBeenSet = true; m_personas.emplace_back(std::forward<PersonasT>(value)); return *this; }
81 private:
82
83 Aws::String m_id;
84 bool m_idHasBeenSet = false;
85
86 Aws::String m_indexId;
87 bool m_indexIdHasBeenSet = false;
88
90 bool m_personasHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace kendra
95} // 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