AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GetAttachmentRequest.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipantRequest.h>
8#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ConnectParticipant {
15namespace Model {
16
20 public:
21 AWS_CONNECTPARTICIPANT_API GetAttachmentRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "GetAttachment"; }
28
29 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
30
31 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
32
34
37 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
38 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
39 template <typename AttachmentIdT = Aws::String>
40 void SetAttachmentId(AttachmentIdT&& value) {
41 m_attachmentIdHasBeenSet = true;
42 m_attachmentId = std::forward<AttachmentIdT>(value);
43 }
44 template <typename AttachmentIdT = Aws::String>
45 GetAttachmentRequest& WithAttachmentId(AttachmentIdT&& value) {
46 SetAttachmentId(std::forward<AttachmentIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
56 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
57 template <typename ConnectionTokenT = Aws::String>
58 void SetConnectionToken(ConnectionTokenT&& value) {
59 m_connectionTokenHasBeenSet = true;
60 m_connectionToken = std::forward<ConnectionTokenT>(value);
61 }
62 template <typename ConnectionTokenT = Aws::String>
63 GetAttachmentRequest& WithConnectionToken(ConnectionTokenT&& value) {
64 SetConnectionToken(std::forward<ConnectionTokenT>(value));
65 return *this;
66 }
68
70
74 inline int GetUrlExpiryInSeconds() const { return m_urlExpiryInSeconds; }
75 inline bool UrlExpiryInSecondsHasBeenSet() const { return m_urlExpiryInSecondsHasBeenSet; }
76 inline void SetUrlExpiryInSeconds(int value) {
77 m_urlExpiryInSecondsHasBeenSet = true;
78 m_urlExpiryInSeconds = value;
79 }
82 return *this;
83 }
85 private:
86 Aws::String m_attachmentId;
87 bool m_attachmentIdHasBeenSet = false;
88
89 Aws::String m_connectionToken;
90 bool m_connectionTokenHasBeenSet = false;
91
92 int m_urlExpiryInSeconds{0};
93 bool m_urlExpiryInSecondsHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace ConnectParticipant
98} // namespace Aws
AWS_CONNECTPARTICIPANT_API GetAttachmentRequest()=default
GetAttachmentRequest & WithAttachmentId(AttachmentIdT &&value)
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetAttachmentRequest & WithConnectionToken(ConnectionTokenT &&value)
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String