AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateAssistantAssociationRequest.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/QConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qconnect/model/AssociationType.h>
11#include <aws/qconnect/model/AssistantAssociationInputData.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace QConnect
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_QCONNECT_API CreateAssistantAssociationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAssistantAssociation"; }
35
36 AWS_QCONNECT_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetAssistantId() const { return m_assistantId; }
45 inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; }
46 template<typename AssistantIdT = Aws::String>
47 void SetAssistantId(AssistantIdT&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::forward<AssistantIdT>(value); }
48 template<typename AssistantIdT = Aws::String>
49 CreateAssistantAssociationRequest& WithAssistantId(AssistantIdT&& value) { SetAssistantId(std::forward<AssistantIdT>(value)); return *this;}
51
53
56 inline AssociationType GetAssociationType() const { return m_associationType; }
57 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
58 inline void SetAssociationType(AssociationType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
61
63
66 inline const AssistantAssociationInputData& GetAssociation() const { return m_association; }
67 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
68 template<typename AssociationT = AssistantAssociationInputData>
69 void SetAssociation(AssociationT&& value) { m_associationHasBeenSet = true; m_association = std::forward<AssociationT>(value); }
70 template<typename AssociationT = AssistantAssociationInputData>
71 CreateAssistantAssociationRequest& WithAssociation(AssociationT&& value) { SetAssociation(std::forward<AssociationT>(value)); return *this;}
73
75
82 inline const Aws::String& GetClientToken() const { return m_clientToken; }
83 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
84 template<typename ClientTokenT = Aws::String>
85 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
86 template<typename ClientTokenT = Aws::String>
87 CreateAssistantAssociationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
89
91
94 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
95 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
98 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 CreateAssistantAssociationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
100 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
101 CreateAssistantAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
102 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
103 }
105 private:
106
107 Aws::String m_assistantId;
108 bool m_assistantIdHasBeenSet = false;
109
110 AssociationType m_associationType{AssociationType::NOT_SET};
111 bool m_associationTypeHasBeenSet = false;
112
113 AssistantAssociationInputData m_association;
114 bool m_associationHasBeenSet = false;
115
117 bool m_clientTokenHasBeenSet = true;
118
120 bool m_tagsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace QConnect
125} // 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