AWS SDK for C++

AWS SDK for C++ Version 1.11.837

Loading...
Searching...
No Matches
CreateAttachedFileRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/FileUseCaseType.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Http {
18class URI;
19} // namespace Http
20namespace Connect {
21namespace Model {
22
26 public:
27 AWS_CONNECT_API CreateAttachedFileRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAttachedFile"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template <typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) {
51 m_clientTokenHasBeenSet = true;
52 m_clientToken = std::forward<ClientTokenT>(value);
53 }
54 template <typename ClientTokenT = Aws::String>
56 SetClientToken(std::forward<ClientTokenT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
68 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
69 template <typename InstanceIdT = Aws::String>
70 void SetInstanceId(InstanceIdT&& value) {
71 m_instanceIdHasBeenSet = true;
72 m_instanceId = std::forward<InstanceIdT>(value);
73 }
74 template <typename InstanceIdT = Aws::String>
76 SetInstanceId(std::forward<InstanceIdT>(value));
77 return *this;
78 }
80
82
86 inline FileUseCaseType GetFileUseCaseType() const { return m_fileUseCaseType; }
87 inline bool FileUseCaseTypeHasBeenSet() const { return m_fileUseCaseTypeHasBeenSet; }
89 m_fileUseCaseTypeHasBeenSet = true;
90 m_fileUseCaseType = value;
91 }
93 SetFileUseCaseType(value);
94 return *this;
95 }
97
99
102 inline const Aws::String& GetFileSourceUri() const { return m_fileSourceUri; }
103 inline bool FileSourceUriHasBeenSet() const { return m_fileSourceUriHasBeenSet; }
104 template <typename FileSourceUriT = Aws::String>
105 void SetFileSourceUri(FileSourceUriT&& value) {
106 m_fileSourceUriHasBeenSet = true;
107 m_fileSourceUri = std::forward<FileSourceUriT>(value);
108 }
109 template <typename FileSourceUriT = Aws::String>
111 SetFileSourceUri(std::forward<FileSourceUriT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::String& GetAssociatedResourceArn() const { return m_associatedResourceArn; }
123 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
124 template <typename AssociatedResourceArnT = Aws::String>
125 void SetAssociatedResourceArn(AssociatedResourceArnT&& value) {
126 m_associatedResourceArnHasBeenSet = true;
127 m_associatedResourceArn = std::forward<AssociatedResourceArnT>(value);
128 }
129 template <typename AssociatedResourceArnT = Aws::String>
130 CreateAttachedFileRequest& WithAssociatedResourceArn(AssociatedResourceArnT&& value) {
131 SetAssociatedResourceArn(std::forward<AssociatedResourceArnT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
144 void SetTags(TagsT&& value) {
145 m_tagsHasBeenSet = true;
146 m_tags = std::forward<TagsT>(value);
147 }
148 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
150 SetTags(std::forward<TagsT>(value));
151 return *this;
152 }
153 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
154 CreateAttachedFileRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
155 m_tagsHasBeenSet = true;
156 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
157 return *this;
158 }
160 private:
162
163 Aws::String m_instanceId;
164
165 FileUseCaseType m_fileUseCaseType{FileUseCaseType::NOT_SET};
166
167 Aws::String m_fileSourceUri;
168
169 Aws::String m_associatedResourceArn;
170
172 bool m_clientTokenHasBeenSet = true;
173 bool m_instanceIdHasBeenSet = false;
174 bool m_fileUseCaseTypeHasBeenSet = false;
175 bool m_fileSourceUriHasBeenSet = false;
176 bool m_associatedResourceArnHasBeenSet = false;
177 bool m_tagsHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace Connect
182} // namespace Aws
CreateAttachedFileRequest & WithAssociatedResourceArn(AssociatedResourceArnT &&value)
CreateAttachedFileRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateAttachedFileRequest & WithClientToken(ClientTokenT &&value)
CreateAttachedFileRequest & WithFileUseCaseType(FileUseCaseType value)
void SetAssociatedResourceArn(AssociatedResourceArnT &&value)
CreateAttachedFileRequest & WithTags(TagsT &&value)
CreateAttachedFileRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CONNECT_API CreateAttachedFileRequest()=default
CreateAttachedFileRequest & WithFileSourceUri(FileSourceUriT &&value)
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