AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetAttachmentResult.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace ConnectParticipant {
23namespace Model {
25 public:
26 AWS_CONNECTPARTICIPANT_API GetAttachmentResult() = default;
29
31
36 inline const Aws::String& GetUrl() const { return m_url; }
37 template <typename UrlT = Aws::String>
38 void SetUrl(UrlT&& value) {
39 m_urlHasBeenSet = true;
40 m_url = std::forward<UrlT>(value);
41 }
42 template <typename UrlT = Aws::String>
44 SetUrl(std::forward<UrlT>(value));
45 return *this;
46 }
48
50
54 inline const Aws::String& GetUrlExpiry() const { return m_urlExpiry; }
55 template <typename UrlExpiryT = Aws::String>
56 void SetUrlExpiry(UrlExpiryT&& value) {
57 m_urlExpiryHasBeenSet = true;
58 m_urlExpiry = std::forward<UrlExpiryT>(value);
59 }
60 template <typename UrlExpiryT = Aws::String>
61 GetAttachmentResult& WithUrlExpiry(UrlExpiryT&& value) {
62 SetUrlExpiry(std::forward<UrlExpiryT>(value));
63 return *this;
64 }
66
68
71 inline long long GetAttachmentSizeInBytes() const { return m_attachmentSizeInBytes; }
72 inline void SetAttachmentSizeInBytes(long long value) {
73 m_attachmentSizeInBytesHasBeenSet = true;
74 m_attachmentSizeInBytes = value;
75 }
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
91 GetAttachmentResult& WithRequestId(RequestIdT&& value) {
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
97
98 private:
99 Aws::String m_url;
100
101 Aws::String m_urlExpiry;
102
103 long long m_attachmentSizeInBytes{0};
104
105 Aws::String m_requestId;
106 Aws::Http::HttpResponseCode m_HttpResponseCode;
107 bool m_urlHasBeenSet = false;
108 bool m_urlExpiryHasBeenSet = false;
109 bool m_attachmentSizeInBytesHasBeenSet = false;
110 bool m_requestIdHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace ConnectParticipant
115} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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