AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartAttachmentUploadRequest.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/ConnectParticipantRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace ConnectParticipant
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECTPARTICIPANT_API StartAttachmentUploadRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartAttachmentUpload"; }
32
33 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
34
35 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
45 inline const Aws::String& GetContentType() const{ return m_contentType; }
46 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
47 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
48 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
49 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
50 inline StartAttachmentUploadRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
51 inline StartAttachmentUploadRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
52 inline StartAttachmentUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
54
56
59 inline long long GetAttachmentSizeInBytes() const{ return m_attachmentSizeInBytes; }
60 inline bool AttachmentSizeInBytesHasBeenSet() const { return m_attachmentSizeInBytesHasBeenSet; }
61 inline void SetAttachmentSizeInBytes(long long value) { m_attachmentSizeInBytesHasBeenSet = true; m_attachmentSizeInBytes = value; }
64
66
69 inline const Aws::String& GetAttachmentName() const{ return m_attachmentName; }
70 inline bool AttachmentNameHasBeenSet() const { return m_attachmentNameHasBeenSet; }
71 inline void SetAttachmentName(const Aws::String& value) { m_attachmentNameHasBeenSet = true; m_attachmentName = value; }
72 inline void SetAttachmentName(Aws::String&& value) { m_attachmentNameHasBeenSet = true; m_attachmentName = std::move(value); }
73 inline void SetAttachmentName(const char* value) { m_attachmentNameHasBeenSet = true; m_attachmentName.assign(value); }
75 inline StartAttachmentUploadRequest& WithAttachmentName(Aws::String&& value) { SetAttachmentName(std::move(value)); return *this;}
76 inline StartAttachmentUploadRequest& WithAttachmentName(const char* value) { SetAttachmentName(value); return *this;}
78
80
87 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
88 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
89 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
90 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
91 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
92 inline StartAttachmentUploadRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
93 inline StartAttachmentUploadRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
94 inline StartAttachmentUploadRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
96
98
101 inline const Aws::String& GetConnectionToken() const{ return m_connectionToken; }
102 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
103 inline void SetConnectionToken(const Aws::String& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = value; }
104 inline void SetConnectionToken(Aws::String&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::move(value); }
105 inline void SetConnectionToken(const char* value) { m_connectionTokenHasBeenSet = true; m_connectionToken.assign(value); }
107 inline StartAttachmentUploadRequest& WithConnectionToken(Aws::String&& value) { SetConnectionToken(std::move(value)); return *this;}
108 inline StartAttachmentUploadRequest& WithConnectionToken(const char* value) { SetConnectionToken(value); return *this;}
110 private:
111
112 Aws::String m_contentType;
113 bool m_contentTypeHasBeenSet = false;
114
115 long long m_attachmentSizeInBytes;
116 bool m_attachmentSizeInBytesHasBeenSet = false;
117
118 Aws::String m_attachmentName;
119 bool m_attachmentNameHasBeenSet = false;
120
121 Aws::String m_clientToken;
122 bool m_clientTokenHasBeenSet = false;
123
124 Aws::String m_connectionToken;
125 bool m_connectionTokenHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace ConnectParticipant
130} // namespace Aws
StartAttachmentUploadRequest & WithAttachmentSizeInBytes(long long value)
StartAttachmentUploadRequest & WithAttachmentName(Aws::String &&value)
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartAttachmentUploadRequest & WithConnectionToken(Aws::String &&value)
StartAttachmentUploadRequest & WithContentType(const char *value)
StartAttachmentUploadRequest & WithAttachmentName(const char *value)
StartAttachmentUploadRequest & WithContentType(Aws::String &&value)
StartAttachmentUploadRequest & WithClientToken(Aws::String &&value)
StartAttachmentUploadRequest & WithAttachmentName(const Aws::String &value)
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
StartAttachmentUploadRequest & WithConnectionToken(const Aws::String &value)
StartAttachmentUploadRequest & WithContentType(const Aws::String &value)
StartAttachmentUploadRequest & WithClientToken(const Aws::String &value)
StartAttachmentUploadRequest & WithClientToken(const char *value)
StartAttachmentUploadRequest & WithConnectionToken(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String