AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateAssistantAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wisdom/ConnectWisdomServiceRequest.h>
11#include <aws/wisdom/ConnectWisdomService_EXPORTS.h>
12#include <aws/wisdom/model/AssistantAssociationInputData.h>
13#include <aws/wisdom/model/AssociationType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ConnectWisdomService {
19namespace Model {
20
24 public:
25 AWS_CONNECTWISDOMSERVICE_API CreateAssistantAssociationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAssistantAssociation"; }
32
33 AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
41 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
42 template <typename AssistantIdT = Aws::String>
43 void SetAssistantId(AssistantIdT&& value) {
44 m_assistantIdHasBeenSet = true;
45 m_assistantId = std::forward<AssistantIdT>(value);
46 }
47 template <typename AssistantIdT = Aws::String>
49 SetAssistantId(std::forward<AssistantIdT>(value));
50 return *this;
51 }
53
55
58 inline const AssistantAssociationInputData& GetAssociation() const { return m_association; }
59 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
60 template <typename AssociationT = AssistantAssociationInputData>
61 void SetAssociation(AssociationT&& value) {
62 m_associationHasBeenSet = true;
63 m_association = std::forward<AssociationT>(value);
64 }
65 template <typename AssociationT = AssistantAssociationInputData>
67 SetAssociation(std::forward<AssociationT>(value));
68 return *this;
69 }
71
73
76 inline AssociationType GetAssociationType() const { return m_associationType; }
77 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
79 m_associationTypeHasBeenSet = true;
80 m_associationType = value;
81 }
83 SetAssociationType(value);
84 return *this;
85 }
87
89
96 inline const Aws::String& GetClientToken() const { return m_clientToken; }
97 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
98 template <typename ClientTokenT = Aws::String>
99 void SetClientToken(ClientTokenT&& value) {
100 m_clientTokenHasBeenSet = true;
101 m_clientToken = std::forward<ClientTokenT>(value);
102 }
103 template <typename ClientTokenT = Aws::String>
105 SetClientToken(std::forward<ClientTokenT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
115 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
116 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
117 void SetTags(TagsT&& value) {
118 m_tagsHasBeenSet = true;
119 m_tags = std::forward<TagsT>(value);
120 }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 SetTags(std::forward<TagsT>(value));
124 return *this;
125 }
126 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
127 CreateAssistantAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
128 m_tagsHasBeenSet = true;
129 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
130 return *this;
131 }
133 private:
134 Aws::String m_assistantId;
135
136 AssistantAssociationInputData m_association;
137
138 AssociationType m_associationType{AssociationType::NOT_SET};
139
141
143 bool m_assistantIdHasBeenSet = false;
144 bool m_associationHasBeenSet = false;
145 bool m_associationTypeHasBeenSet = false;
146 bool m_clientTokenHasBeenSet = true;
147 bool m_tagsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace ConnectWisdomService
152} // namespace Aws
CreateAssistantAssociationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAssistantAssociationRequest & WithAssociationType(AssociationType value)
CreateAssistantAssociationRequest & WithClientToken(ClientTokenT &&value)
AWS_CONNECTWISDOMSERVICE_API Aws::String SerializePayload() const override
CreateAssistantAssociationRequest & WithAssociation(AssociationT &&value)
AWS_CONNECTWISDOMSERVICE_API CreateAssistantAssociationRequest()=default
CreateAssistantAssociationRequest & WithAssistantId(AssistantIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String