AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreatePromptRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API CreatePromptRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreatePrompt"; }
29
30 AWS_CONNECT_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
39 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
40 template <typename InstanceIdT = Aws::String>
41 void SetInstanceId(InstanceIdT&& value) {
42 m_instanceIdHasBeenSet = true;
43 m_instanceId = std::forward<InstanceIdT>(value);
44 }
45 template <typename InstanceIdT = Aws::String>
46 CreatePromptRequest& WithInstanceId(InstanceIdT&& value) {
47 SetInstanceId(std::forward<InstanceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 CreatePromptRequest& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 CreatePromptRequest& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
95 inline const Aws::String& GetS3Uri() const { return m_s3Uri; }
96 inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
97 template <typename S3UriT = Aws::String>
98 void SetS3Uri(S3UriT&& value) {
99 m_s3UriHasBeenSet = true;
100 m_s3Uri = std::forward<S3UriT>(value);
101 }
102 template <typename S3UriT = Aws::String>
104 SetS3Uri(std::forward<S3UriT>(value));
105 return *this;
106 }
108
110
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 CreatePromptRequest& 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_instanceId;
135
136 Aws::String m_name;
137
138 Aws::String m_description;
139
140 Aws::String m_s3Uri;
141
143 bool m_instanceIdHasBeenSet = false;
144 bool m_nameHasBeenSet = false;
145 bool m_descriptionHasBeenSet = false;
146 bool m_s3UriHasBeenSet = false;
147 bool m_tagsHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace Connect
152} // namespace Aws
CreatePromptRequest & WithInstanceId(InstanceIdT &&value)
virtual const char * GetServiceRequestName() const override
CreatePromptRequest & WithDescription(DescriptionT &&value)
CreatePromptRequest & WithTags(TagsT &&value)
CreatePromptRequest & WithName(NameT &&value)
AWS_CONNECT_API CreatePromptRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePromptRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePromptRequest & WithS3Uri(S3UriT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
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