AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetAttachmentRequest.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
12namespace Aws
13{
14namespace ConnectParticipant
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_CONNECTPARTICIPANT_API GetAttachmentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetAttachment"; }
31
32 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
33
34 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
41 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
42 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
43 template<typename AttachmentIdT = Aws::String>
44 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
45 template<typename AttachmentIdT = Aws::String>
46 GetAttachmentRequest& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
54 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
55 template<typename ConnectionTokenT = Aws::String>
56 void SetConnectionToken(ConnectionTokenT&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::forward<ConnectionTokenT>(value); }
57 template<typename ConnectionTokenT = Aws::String>
58 GetAttachmentRequest& WithConnectionToken(ConnectionTokenT&& value) { SetConnectionToken(std::forward<ConnectionTokenT>(value)); return *this;}
60
62
66 inline int GetUrlExpiryInSeconds() const { return m_urlExpiryInSeconds; }
67 inline bool UrlExpiryInSecondsHasBeenSet() const { return m_urlExpiryInSecondsHasBeenSet; }
68 inline void SetUrlExpiryInSeconds(int value) { m_urlExpiryInSecondsHasBeenSet = true; m_urlExpiryInSeconds = value; }
69 inline GetAttachmentRequest& WithUrlExpiryInSeconds(int value) { SetUrlExpiryInSeconds(value); return *this;}
71 private:
72
73 Aws::String m_attachmentId;
74 bool m_attachmentIdHasBeenSet = false;
75
76 Aws::String m_connectionToken;
77 bool m_connectionTokenHasBeenSet = false;
78
79 int m_urlExpiryInSeconds{0};
80 bool m_urlExpiryInSecondsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ConnectParticipant
85} // 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