AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartContentUploadResult.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace QConnect
26{
27namespace Model
28{
30 {
31 public:
32 AWS_QCONNECT_API StartContentUploadResult() = default;
35
36
38
41 inline const Aws::String& GetUploadId() const { return m_uploadId; }
42 template<typename UploadIdT = Aws::String>
43 void SetUploadId(UploadIdT&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::forward<UploadIdT>(value); }
44 template<typename UploadIdT = Aws::String>
45 StartContentUploadResult& WithUploadId(UploadIdT&& value) { SetUploadId(std::forward<UploadIdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetUrl() const { return m_url; }
53 template<typename UrlT = Aws::String>
54 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
55 template<typename UrlT = Aws::String>
56 StartContentUploadResult& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
58
60
63 inline const Aws::Utils::DateTime& GetUrlExpiry() const { return m_urlExpiry; }
64 template<typename UrlExpiryT = Aws::Utils::DateTime>
65 void SetUrlExpiry(UrlExpiryT&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::forward<UrlExpiryT>(value); }
66 template<typename UrlExpiryT = Aws::Utils::DateTime>
67 StartContentUploadResult& WithUrlExpiry(UrlExpiryT&& value) { SetUrlExpiry(std::forward<UrlExpiryT>(value)); return *this;}
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetHeadersToInclude() const { return m_headersToInclude; }
75 template<typename HeadersToIncludeT = Aws::Map<Aws::String, Aws::String>>
76 void SetHeadersToInclude(HeadersToIncludeT&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude = std::forward<HeadersToIncludeT>(value); }
77 template<typename HeadersToIncludeT = Aws::Map<Aws::String, Aws::String>>
78 StartContentUploadResult& WithHeadersToInclude(HeadersToIncludeT&& value) { SetHeadersToInclude(std::forward<HeadersToIncludeT>(value)); return *this;}
79 template<typename HeadersToIncludeKeyT = Aws::String, typename HeadersToIncludeValueT = Aws::String>
81 m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::forward<HeadersToIncludeKeyT>(key), std::forward<HeadersToIncludeValueT>(value)); return *this;
82 }
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template<typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
90 template<typename RequestIdT = Aws::String>
91 StartContentUploadResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
93 private:
94
95 Aws::String m_uploadId;
96 bool m_uploadIdHasBeenSet = false;
97
98 Aws::String m_url;
99 bool m_urlHasBeenSet = false;
100
101 Aws::Utils::DateTime m_urlExpiry{};
102 bool m_urlExpiryHasBeenSet = false;
103
104 Aws::Map<Aws::String, Aws::String> m_headersToInclude;
105 bool m_headersToIncludeHasBeenSet = false;
106
107 Aws::String m_requestId;
108 bool m_requestIdHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace QConnect
113} // namespace Aws
StartContentUploadResult & AddHeadersToInclude(HeadersToIncludeKeyT &&key, HeadersToIncludeValueT &&value)
StartContentUploadResult & WithUrl(UrlT &&value)
StartContentUploadResult & WithRequestId(RequestIdT &&value)
AWS_QCONNECT_API StartContentUploadResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QCONNECT_API StartContentUploadResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_QCONNECT_API StartContentUploadResult()=default
StartContentUploadResult & WithHeadersToInclude(HeadersToIncludeT &&value)
const Aws::Utils::DateTime & GetUrlExpiry() const
StartContentUploadResult & WithUrlExpiry(UrlExpiryT &&value)
const Aws::Map< Aws::String, Aws::String > & GetHeadersToInclude() const
StartContentUploadResult & WithUploadId(UploadIdT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue