AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UploadMetadata.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkDocs
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_WORKDOCS_API UploadMetadata();
36 AWS_WORKDOCS_API UploadMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetUploadUrl() const{ return m_uploadUrl; }
46 inline bool UploadUrlHasBeenSet() const { return m_uploadUrlHasBeenSet; }
47 inline void SetUploadUrl(const Aws::String& value) { m_uploadUrlHasBeenSet = true; m_uploadUrl = value; }
48 inline void SetUploadUrl(Aws::String&& value) { m_uploadUrlHasBeenSet = true; m_uploadUrl = std::move(value); }
49 inline void SetUploadUrl(const char* value) { m_uploadUrlHasBeenSet = true; m_uploadUrl.assign(value); }
50 inline UploadMetadata& WithUploadUrl(const Aws::String& value) { SetUploadUrl(value); return *this;}
51 inline UploadMetadata& WithUploadUrl(Aws::String&& value) { SetUploadUrl(std::move(value)); return *this;}
52 inline UploadMetadata& WithUploadUrl(const char* value) { SetUploadUrl(value); return *this;}
54
56
59 inline const Aws::Map<Aws::String, Aws::String>& GetSignedHeaders() const{ return m_signedHeaders; }
60 inline bool SignedHeadersHasBeenSet() const { return m_signedHeadersHasBeenSet; }
61 inline void SetSignedHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_signedHeadersHasBeenSet = true; m_signedHeaders = value; }
62 inline void SetSignedHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_signedHeadersHasBeenSet = true; m_signedHeaders = std::move(value); }
64 inline UploadMetadata& WithSignedHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetSignedHeaders(std::move(value)); return *this;}
65 inline UploadMetadata& AddSignedHeaders(const Aws::String& key, const Aws::String& value) { m_signedHeadersHasBeenSet = true; m_signedHeaders.emplace(key, value); return *this; }
66 inline UploadMetadata& AddSignedHeaders(Aws::String&& key, const Aws::String& value) { m_signedHeadersHasBeenSet = true; m_signedHeaders.emplace(std::move(key), value); return *this; }
67 inline UploadMetadata& AddSignedHeaders(const Aws::String& key, Aws::String&& value) { m_signedHeadersHasBeenSet = true; m_signedHeaders.emplace(key, std::move(value)); return *this; }
68 inline UploadMetadata& AddSignedHeaders(Aws::String&& key, Aws::String&& value) { m_signedHeadersHasBeenSet = true; m_signedHeaders.emplace(std::move(key), std::move(value)); return *this; }
69 inline UploadMetadata& AddSignedHeaders(const char* key, Aws::String&& value) { m_signedHeadersHasBeenSet = true; m_signedHeaders.emplace(key, std::move(value)); return *this; }
70 inline UploadMetadata& AddSignedHeaders(Aws::String&& key, const char* value) { m_signedHeadersHasBeenSet = true; m_signedHeaders.emplace(std::move(key), value); return *this; }
71 inline UploadMetadata& AddSignedHeaders(const char* key, const char* value) { m_signedHeadersHasBeenSet = true; m_signedHeaders.emplace(key, value); return *this; }
73 private:
74
75 Aws::String m_uploadUrl;
76 bool m_uploadUrlHasBeenSet = false;
77
79 bool m_signedHeadersHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace WorkDocs
84} // namespace Aws
UploadMetadata & AddSignedHeaders(const Aws::String &key, const Aws::String &value)
UploadMetadata & WithUploadUrl(const char *value)
UploadMetadata & WithUploadUrl(const Aws::String &value)
UploadMetadata & WithSignedHeaders(const Aws::Map< Aws::String, Aws::String > &value)
void SetUploadUrl(const Aws::String &value)
AWS_WORKDOCS_API UploadMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
UploadMetadata & AddSignedHeaders(const char *key, const char *value)
UploadMetadata & WithSignedHeaders(Aws::Map< Aws::String, Aws::String > &&value)
void SetSignedHeaders(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetUploadUrl() const
UploadMetadata & AddSignedHeaders(const char *key, Aws::String &&value)
UploadMetadata & WithUploadUrl(Aws::String &&value)
void SetUploadUrl(Aws::String &&value)
AWS_WORKDOCS_API UploadMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetUploadUrl(const char *value)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
UploadMetadata & AddSignedHeaders(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetSignedHeaders() const
UploadMetadata & AddSignedHeaders(Aws::String &&key, const Aws::String &value)
void SetSignedHeaders(const Aws::Map< Aws::String, Aws::String > &value)
UploadMetadata & AddSignedHeaders(const Aws::String &key, Aws::String &&value)
UploadMetadata & AddSignedHeaders(Aws::String &&key, const char *value)
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