AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartAttachedFileUploadRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/FileUseCaseType.h>
11#include <aws/connect/model/CreatedByInfo.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 Http
19{
20 class URI;
21} //namespace Http
22namespace Connect
23{
24namespace Model
25{
26
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "StartAttachedFileUpload"; }
39
40 AWS_CONNECT_API Aws::String SerializePayload() const override;
41
42 AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
53 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
54 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
55 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
56 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
57 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
58 inline StartAttachedFileUploadRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
59 inline StartAttachedFileUploadRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
60 inline StartAttachedFileUploadRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
62
64
67 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
68 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
69 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
70 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
71 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
72 inline StartAttachedFileUploadRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
73 inline StartAttachedFileUploadRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
74 inline StartAttachedFileUploadRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
76
78
81 inline const Aws::String& GetFileName() const{ return m_fileName; }
82 inline bool FileNameHasBeenSet() const { return m_fileNameHasBeenSet; }
83 inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; }
84 inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = std::move(value); }
85 inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); }
86 inline StartAttachedFileUploadRequest& WithFileName(const Aws::String& value) { SetFileName(value); return *this;}
87 inline StartAttachedFileUploadRequest& WithFileName(Aws::String&& value) { SetFileName(std::move(value)); return *this;}
88 inline StartAttachedFileUploadRequest& WithFileName(const char* value) { SetFileName(value); return *this;}
90
92
95 inline long long GetFileSizeInBytes() const{ return m_fileSizeInBytes; }
96 inline bool FileSizeInBytesHasBeenSet() const { return m_fileSizeInBytesHasBeenSet; }
97 inline void SetFileSizeInBytes(long long value) { m_fileSizeInBytesHasBeenSet = true; m_fileSizeInBytes = value; }
98 inline StartAttachedFileUploadRequest& WithFileSizeInBytes(long long value) { SetFileSizeInBytes(value); return *this;}
100
102
106 inline int GetUrlExpiryInSeconds() const{ return m_urlExpiryInSeconds; }
107 inline bool UrlExpiryInSecondsHasBeenSet() const { return m_urlExpiryInSecondsHasBeenSet; }
108 inline void SetUrlExpiryInSeconds(int value) { m_urlExpiryInSecondsHasBeenSet = true; m_urlExpiryInSeconds = value; }
111
113
116 inline const FileUseCaseType& GetFileUseCaseType() const{ return m_fileUseCaseType; }
117 inline bool FileUseCaseTypeHasBeenSet() const { return m_fileUseCaseTypeHasBeenSet; }
118 inline void SetFileUseCaseType(const FileUseCaseType& value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = value; }
119 inline void SetFileUseCaseType(FileUseCaseType&& value) { m_fileUseCaseTypeHasBeenSet = true; m_fileUseCaseType = std::move(value); }
123
125
131 inline const Aws::String& GetAssociatedResourceArn() const{ return m_associatedResourceArn; }
132 inline bool AssociatedResourceArnHasBeenSet() const { return m_associatedResourceArnHasBeenSet; }
133 inline void SetAssociatedResourceArn(const Aws::String& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = value; }
134 inline void SetAssociatedResourceArn(Aws::String&& value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn = std::move(value); }
135 inline void SetAssociatedResourceArn(const char* value) { m_associatedResourceArnHasBeenSet = true; m_associatedResourceArn.assign(value); }
140
142
145 inline const CreatedByInfo& GetCreatedBy() const{ return m_createdBy; }
146 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
147 inline void SetCreatedBy(const CreatedByInfo& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
148 inline void SetCreatedBy(CreatedByInfo&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
149 inline StartAttachedFileUploadRequest& WithCreatedBy(const CreatedByInfo& value) { SetCreatedBy(value); return *this;}
150 inline StartAttachedFileUploadRequest& WithCreatedBy(CreatedByInfo&& value) { SetCreatedBy(std::move(value)); return *this;}
152
154
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
161 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
163 inline StartAttachedFileUploadRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
164 inline StartAttachedFileUploadRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
165 inline StartAttachedFileUploadRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
166 inline StartAttachedFileUploadRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
167 inline StartAttachedFileUploadRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
168 inline StartAttachedFileUploadRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
169 inline StartAttachedFileUploadRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
170 inline StartAttachedFileUploadRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
172 private:
173
174 Aws::String m_clientToken;
175 bool m_clientTokenHasBeenSet = false;
176
177 Aws::String m_instanceId;
178 bool m_instanceIdHasBeenSet = false;
179
180 Aws::String m_fileName;
181 bool m_fileNameHasBeenSet = false;
182
183 long long m_fileSizeInBytes;
184 bool m_fileSizeInBytesHasBeenSet = false;
185
186 int m_urlExpiryInSeconds;
187 bool m_urlExpiryInSecondsHasBeenSet = false;
188
189 FileUseCaseType m_fileUseCaseType;
190 bool m_fileUseCaseTypeHasBeenSet = false;
191
192 Aws::String m_associatedResourceArn;
193 bool m_associatedResourceArnHasBeenSet = false;
194
195 CreatedByInfo m_createdBy;
196 bool m_createdByHasBeenSet = false;
197
199 bool m_tagsHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace Connect
204} // namespace Aws
StartAttachedFileUploadRequest & WithInstanceId(Aws::String &&value)
StartAttachedFileUploadRequest & AddTags(const char *key, Aws::String &&value)
StartAttachedFileUploadRequest & WithAssociatedResourceArn(const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
StartAttachedFileUploadRequest & WithFileUseCaseType(const FileUseCaseType &value)
StartAttachedFileUploadRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
StartAttachedFileUploadRequest & AddTags(Aws::String &&key, const Aws::String &value)
StartAttachedFileUploadRequest & AddTags(Aws::String &&key, Aws::String &&value)
StartAttachedFileUploadRequest & WithInstanceId(const char *value)
StartAttachedFileUploadRequest & WithFileUseCaseType(FileUseCaseType &&value)
StartAttachedFileUploadRequest & WithCreatedBy(const CreatedByInfo &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartAttachedFileUploadRequest & WithFileName(const char *value)
StartAttachedFileUploadRequest & WithFileName(const Aws::String &value)
StartAttachedFileUploadRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
StartAttachedFileUploadRequest & WithCreatedBy(CreatedByInfo &&value)
StartAttachedFileUploadRequest & WithAssociatedResourceArn(const Aws::String &value)
StartAttachedFileUploadRequest & WithClientToken(const Aws::String &value)
StartAttachedFileUploadRequest & WithAssociatedResourceArn(Aws::String &&value)
AWS_CONNECT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
StartAttachedFileUploadRequest & WithInstanceId(const Aws::String &value)
StartAttachedFileUploadRequest & AddTags(Aws::String &&key, const char *value)
AWS_CONNECT_API Aws::String SerializePayload() const override
StartAttachedFileUploadRequest & AddTags(const Aws::String &key, Aws::String &&value)
StartAttachedFileUploadRequest & WithFileName(Aws::String &&value)
StartAttachedFileUploadRequest & AddTags(const Aws::String &key, const Aws::String &value)
StartAttachedFileUploadRequest & WithClientToken(const char *value)
StartAttachedFileUploadRequest & WithFileSizeInBytes(long long value)
StartAttachedFileUploadRequest & WithUrlExpiryInSeconds(int value)
StartAttachedFileUploadRequest & AddTags(const char *key, const char *value)
StartAttachedFileUploadRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
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