AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetAttachmentResult.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace ConnectParticipant {
22namespace Model {
24 public:
25 AWS_CONNECTPARTICIPANT_API GetAttachmentResult() = default;
28
30
35 inline const Aws::String& GetUrl() const { return m_url; }
36 template <typename UrlT = Aws::String>
37 void SetUrl(UrlT&& value) {
38 m_urlHasBeenSet = true;
39 m_url = std::forward<UrlT>(value);
40 }
41 template <typename UrlT = Aws::String>
43 SetUrl(std::forward<UrlT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetUrlExpiry() const { return m_urlExpiry; }
54 template <typename UrlExpiryT = Aws::String>
55 void SetUrlExpiry(UrlExpiryT&& value) {
56 m_urlExpiryHasBeenSet = true;
57 m_urlExpiry = std::forward<UrlExpiryT>(value);
58 }
59 template <typename UrlExpiryT = Aws::String>
60 GetAttachmentResult& WithUrlExpiry(UrlExpiryT&& value) {
61 SetUrlExpiry(std::forward<UrlExpiryT>(value));
62 return *this;
63 }
65
67
70 inline long long GetAttachmentSizeInBytes() const { return m_attachmentSizeInBytes; }
71 inline void SetAttachmentSizeInBytes(long long value) {
72 m_attachmentSizeInBytesHasBeenSet = true;
73 m_attachmentSizeInBytes = value;
74 }
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
90 GetAttachmentResult& WithRequestId(RequestIdT&& value) {
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_url;
97
98 Aws::String m_urlExpiry;
99
100 long long m_attachmentSizeInBytes{0};
101
102 Aws::String m_requestId;
103 bool m_urlHasBeenSet = false;
104 bool m_urlExpiryHasBeenSet = false;
105 bool m_attachmentSizeInBytesHasBeenSet = false;
106 bool m_requestIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace ConnectParticipant
111} // namespace Aws
AWS_CONNECTPARTICIPANT_API GetAttachmentResult()=default
AWS_CONNECTPARTICIPANT_API GetAttachmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAttachmentResult & WithRequestId(RequestIdT &&value)
GetAttachmentResult & WithAttachmentSizeInBytes(long long value)
AWS_CONNECTPARTICIPANT_API GetAttachmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAttachmentResult & WithUrlExpiry(UrlExpiryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue