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/connectparticipant/ConnectParticipant_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 ConnectParticipant
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECTPARTICIPANT_API UploadMetadata();
37 AWS_CONNECTPARTICIPANT_API UploadMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTPARTICIPANT_API UploadMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetUrl() const{ return m_url; }
49 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
50 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
51 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
52 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
53 inline UploadMetadata& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
54 inline UploadMetadata& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
55 inline UploadMetadata& WithUrl(const char* value) { SetUrl(value); return *this;}
57
59
63 inline const Aws::String& GetUrlExpiry() const{ return m_urlExpiry; }
64 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
65 inline void SetUrlExpiry(const Aws::String& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = value; }
66 inline void SetUrlExpiry(Aws::String&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::move(value); }
67 inline void SetUrlExpiry(const char* value) { m_urlExpiryHasBeenSet = true; m_urlExpiry.assign(value); }
68 inline UploadMetadata& WithUrlExpiry(const Aws::String& value) { SetUrlExpiry(value); return *this;}
69 inline UploadMetadata& WithUrlExpiry(Aws::String&& value) { SetUrlExpiry(std::move(value)); return *this;}
70 inline UploadMetadata& WithUrlExpiry(const char* value) { SetUrlExpiry(value); return *this;}
72
74
77 inline const Aws::Map<Aws::String, Aws::String>& GetHeadersToInclude() const{ return m_headersToInclude; }
78 inline bool HeadersToIncludeHasBeenSet() const { return m_headersToIncludeHasBeenSet; }
79 inline void SetHeadersToInclude(const Aws::Map<Aws::String, Aws::String>& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude = value; }
80 inline void SetHeadersToInclude(Aws::Map<Aws::String, Aws::String>&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude = std::move(value); }
83 inline UploadMetadata& AddHeadersToInclude(const Aws::String& key, const Aws::String& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, value); return *this; }
84 inline UploadMetadata& AddHeadersToInclude(Aws::String&& key, const Aws::String& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), value); return *this; }
85 inline UploadMetadata& AddHeadersToInclude(const Aws::String& key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, std::move(value)); return *this; }
86 inline UploadMetadata& AddHeadersToInclude(Aws::String&& key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), std::move(value)); return *this; }
87 inline UploadMetadata& AddHeadersToInclude(const char* key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, std::move(value)); return *this; }
88 inline UploadMetadata& AddHeadersToInclude(Aws::String&& key, const char* value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), value); return *this; }
89 inline UploadMetadata& AddHeadersToInclude(const char* key, const char* value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, value); return *this; }
91 private:
92
93 Aws::String m_url;
94 bool m_urlHasBeenSet = false;
95
96 Aws::String m_urlExpiry;
97 bool m_urlExpiryHasBeenSet = false;
98
99 Aws::Map<Aws::String, Aws::String> m_headersToInclude;
100 bool m_headersToIncludeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace ConnectParticipant
105} // namespace Aws
UploadMetadata & WithUrlExpiry(const char *value)
UploadMetadata & WithUrl(Aws::String &&value)
UploadMetadata & AddHeadersToInclude(Aws::String &&key, const char *value)
UploadMetadata & AddHeadersToInclude(const char *key, const char *value)
UploadMetadata & AddHeadersToInclude(const Aws::String &key, const Aws::String &value)
UploadMetadata & WithUrl(const char *value)
AWS_CONNECTPARTICIPANT_API UploadMetadata()
UploadMetadata & WithUrlExpiry(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetHeadersToInclude() const
UploadMetadata & AddHeadersToInclude(Aws::String &&key, Aws::String &&value)
UploadMetadata & WithHeadersToInclude(const Aws::Map< Aws::String, Aws::String > &value)
UploadMetadata & AddHeadersToInclude(const Aws::String &key, Aws::String &&value)
void SetUrlExpiry(const Aws::String &value)
UploadMetadata & WithUrl(const Aws::String &value)
void SetHeadersToInclude(const Aws::Map< Aws::String, Aws::String > &value)
UploadMetadata & WithHeadersToInclude(Aws::Map< Aws::String, Aws::String > &&value)
UploadMetadata & AddHeadersToInclude(const char *key, Aws::String &&value)
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
UploadMetadata & AddHeadersToInclude(Aws::String &&key, const Aws::String &value)
void SetHeadersToInclude(Aws::Map< Aws::String, Aws::String > &&value)
UploadMetadata & WithUrlExpiry(const Aws::String &value)
AWS_CONNECTPARTICIPANT_API UploadMetadata(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API UploadMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
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