AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/qconnect/QConnectRequest.h>
11#include <aws/qconnect/QConnect_EXPORTS.h>
12#include <aws/qconnect/model/AssistantAssociationInputData.h>
13#include <aws/qconnect/model/AssociationType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QConnect {
19namespace Model {
20
24 public:
25 AWS_QCONNECT_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_QCONNECT_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 AssociationType GetAssociationType() const { return m_associationType; }
59 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
61 m_associationTypeHasBeenSet = true;
62 m_associationType = value;
63 }
65 SetAssociationType(value);
66 return *this;
67 }
69
71
74 inline const AssistantAssociationInputData& GetAssociation() const { return m_association; }
75 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
76 template <typename AssociationT = AssistantAssociationInputData>
77 void SetAssociation(AssociationT&& value) {
78 m_associationHasBeenSet = true;
79 m_association = std::forward<AssociationT>(value);
80 }
81 template <typename AssociationT = AssistantAssociationInputData>
83 SetAssociation(std::forward<AssociationT>(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 AssociationType m_associationType{AssociationType::NOT_SET};
137
138 AssistantAssociationInputData m_association;
139
141
143 bool m_assistantIdHasBeenSet = false;
144 bool m_associationTypeHasBeenSet = false;
145 bool m_associationHasBeenSet = false;
146 bool m_clientTokenHasBeenSet = true;
147 bool m_tagsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace QConnect
152} // namespace Aws
AWS_QCONNECT_API Aws::String SerializePayload() const override
AWS_QCONNECT_API CreateAssistantAssociationRequest()=default
CreateAssistantAssociationRequest & WithTags(TagsT &&value)
CreateAssistantAssociationRequest & WithAssociationType(AssociationType value)
CreateAssistantAssociationRequest & WithClientToken(ClientTokenT &&value)
CreateAssistantAssociationRequest & WithAssociation(AssociationT &&value)
CreateAssistantAssociationRequest & WithAssistantId(AssistantIdT &&value)
CreateAssistantAssociationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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