AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/AssistantAssociationInputData.h>
11#include <aws/qconnect/model/AssociationType.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:
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 inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; }
47 inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); }
48 inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); }
49 inline CreateAssistantAssociationRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;}
50 inline CreateAssistantAssociationRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;}
51 inline CreateAssistantAssociationRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;}
53
55
58 inline const AssistantAssociationInputData& GetAssociation() const{ return m_association; }
59 inline bool AssociationHasBeenSet() const { return m_associationHasBeenSet; }
60 inline void SetAssociation(const AssistantAssociationInputData& value) { m_associationHasBeenSet = true; m_association = value; }
61 inline void SetAssociation(AssistantAssociationInputData&& value) { m_associationHasBeenSet = true; m_association = std::move(value); }
65
67
70 inline const AssociationType& GetAssociationType() const{ return m_associationType; }
71 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
72 inline void SetAssociationType(const AssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
73 inline void SetAssociationType(AssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
77
79
86 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
89 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
90 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
91 inline CreateAssistantAssociationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
92 inline CreateAssistantAssociationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
93 inline CreateAssistantAssociationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
95
97
100 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
101 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
102 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
103 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
106 inline CreateAssistantAssociationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
107 inline CreateAssistantAssociationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
108 inline CreateAssistantAssociationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
109 inline CreateAssistantAssociationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
110 inline CreateAssistantAssociationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
111 inline CreateAssistantAssociationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
112 inline CreateAssistantAssociationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
114 private:
115
116 Aws::String m_assistantId;
117 bool m_assistantIdHasBeenSet = false;
118
119 AssistantAssociationInputData m_association;
120 bool m_associationHasBeenSet = false;
121
122 AssociationType m_associationType;
123 bool m_associationTypeHasBeenSet = false;
124
125 Aws::String m_clientToken;
126 bool m_clientTokenHasBeenSet = false;
127
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace QConnect
134} // namespace Aws
CreateAssistantAssociationRequest & WithClientToken(const Aws::String &value)
AWS_QCONNECT_API Aws::String SerializePayload() const override
CreateAssistantAssociationRequest & WithAssociation(const AssistantAssociationInputData &value)
CreateAssistantAssociationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAssistantAssociationRequest & WithClientToken(Aws::String &&value)
CreateAssistantAssociationRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAssistantAssociationRequest & WithAssistantId(const Aws::String &value)
CreateAssistantAssociationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAssistantAssociationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAssistantAssociationRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAssistantAssociationRequest & WithClientToken(const char *value)
CreateAssistantAssociationRequest & AddTags(const char *key, const char *value)
CreateAssistantAssociationRequest & WithAssistantId(const char *value)
CreateAssistantAssociationRequest & WithAssistantId(Aws::String &&value)
CreateAssistantAssociationRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetAssociation(const AssistantAssociationInputData &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAssistantAssociationRequest & WithAssociation(AssistantAssociationInputData &&value)
CreateAssistantAssociationRequest & AddTags(const char *key, Aws::String &&value)
CreateAssistantAssociationRequest & WithAssociationType(const AssociationType &value)
CreateAssistantAssociationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAssistantAssociationRequest & WithAssociationType(AssociationType &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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