AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateChatResponseConfigurationRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/qbusiness/model/ResponseConfigurationType.h>
13#include <aws/qbusiness/model/ResponseConfiguration.h>
14#include <aws/qbusiness/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace QBusiness
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_QBUSINESS_API CreateChatResponseConfigurationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateChatResponseConfiguration"; }
37
38 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
47 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
48 template<typename ApplicationIdT = Aws::String>
49 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
50 template<typename ApplicationIdT = Aws::String>
51 CreateChatResponseConfigurationRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetDisplayName() const { return m_displayName; }
60 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
61 template<typename DisplayNameT = Aws::String>
62 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
63 template<typename DisplayNameT = Aws::String>
64 CreateChatResponseConfigurationRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
66
68
73 inline const Aws::String& GetClientToken() const { return m_clientToken; }
74 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
75 template<typename ClientTokenT = Aws::String>
76 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
77 template<typename ClientTokenT = Aws::String>
78 CreateChatResponseConfigurationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
80
82
87 inline const Aws::Map<ResponseConfigurationType, ResponseConfiguration>& GetResponseConfigurations() const { return m_responseConfigurations; }
88 inline bool ResponseConfigurationsHasBeenSet() const { return m_responseConfigurationsHasBeenSet; }
89 template<typename ResponseConfigurationsT = Aws::Map<ResponseConfigurationType, ResponseConfiguration>>
90 void SetResponseConfigurations(ResponseConfigurationsT&& value) { m_responseConfigurationsHasBeenSet = true; m_responseConfigurations = std::forward<ResponseConfigurationsT>(value); }
91 template<typename ResponseConfigurationsT = Aws::Map<ResponseConfigurationType, ResponseConfiguration>>
92 CreateChatResponseConfigurationRequest& WithResponseConfigurations(ResponseConfigurationsT&& value) { SetResponseConfigurations(std::forward<ResponseConfigurationsT>(value)); return *this;}
94 m_responseConfigurationsHasBeenSet = true; m_responseConfigurations.emplace(key, value); return *this;
95 }
97
99
104 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 template<typename TagsT = Aws::Vector<Tag>>
107 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
108 template<typename TagsT = Aws::Vector<Tag>>
109 CreateChatResponseConfigurationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
110 template<typename TagsT = Tag>
111 CreateChatResponseConfigurationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
113 private:
114
115 Aws::String m_applicationId;
116 bool m_applicationIdHasBeenSet = false;
117
118 Aws::String m_displayName;
119 bool m_displayNameHasBeenSet = false;
120
122 bool m_clientTokenHasBeenSet = true;
123
125 bool m_responseConfigurationsHasBeenSet = false;
126
127 Aws::Vector<Tag> m_tags;
128 bool m_tagsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace QBusiness
133} // namespace Aws
AWS_QBUSINESS_API Aws::String SerializePayload() const override
const Aws::Map< ResponseConfigurationType, ResponseConfiguration > & GetResponseConfigurations() const
CreateChatResponseConfigurationRequest & WithResponseConfigurations(ResponseConfigurationsT &&value)
CreateChatResponseConfigurationRequest & WithClientToken(ClientTokenT &&value)
CreateChatResponseConfigurationRequest & WithDisplayName(DisplayNameT &&value)
CreateChatResponseConfigurationRequest & AddResponseConfigurations(ResponseConfigurationType key, ResponseConfiguration value)
CreateChatResponseConfigurationRequest & WithApplicationId(ApplicationIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
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
std::vector< T, Aws::Allocator< T > > Vector