AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UploadUrlMetadata.h
1
6#pragma once
7#include <aws/connect/Connect_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 Connect
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONNECT_API UploadUrlMetadata();
39 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUrl() const{ return m_url; }
47 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
48 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
49 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
50 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
51 inline UploadUrlMetadata& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
52 inline UploadUrlMetadata& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
53 inline UploadUrlMetadata& WithUrl(const char* value) { SetUrl(value); return *this;}
55
57
62 inline const Aws::String& GetUrlExpiry() const{ return m_urlExpiry; }
63 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
64 inline void SetUrlExpiry(const Aws::String& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = value; }
65 inline void SetUrlExpiry(Aws::String&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::move(value); }
66 inline void SetUrlExpiry(const char* value) { m_urlExpiryHasBeenSet = true; m_urlExpiry.assign(value); }
67 inline UploadUrlMetadata& WithUrlExpiry(const Aws::String& value) { SetUrlExpiry(value); return *this;}
68 inline UploadUrlMetadata& WithUrlExpiry(Aws::String&& value) { SetUrlExpiry(std::move(value)); return *this;}
69 inline UploadUrlMetadata& WithUrlExpiry(const char* value) { SetUrlExpiry(value); return *this;}
71
73
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 UploadUrlMetadata& AddHeadersToInclude(const Aws::String& key, const Aws::String& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, value); return *this; }
84 inline UploadUrlMetadata& AddHeadersToInclude(Aws::String&& key, const Aws::String& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), value); return *this; }
85 inline UploadUrlMetadata& AddHeadersToInclude(const Aws::String& key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, std::move(value)); return *this; }
86 inline UploadUrlMetadata& AddHeadersToInclude(Aws::String&& key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), std::move(value)); return *this; }
87 inline UploadUrlMetadata& AddHeadersToInclude(const char* key, Aws::String&& value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(key, std::move(value)); return *this; }
88 inline UploadUrlMetadata& AddHeadersToInclude(Aws::String&& key, const char* value) { m_headersToIncludeHasBeenSet = true; m_headersToInclude.emplace(std::move(key), value); return *this; }
89 inline UploadUrlMetadata& 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 Connect
105} // namespace Aws
const Aws::String & GetUrlExpiry() const
AWS_CONNECT_API UploadUrlMetadata(Aws::Utils::Json::JsonView jsonValue)
UploadUrlMetadata & WithUrlExpiry(Aws::String &&value)
UploadUrlMetadata & WithUrl(const Aws::String &value)
UploadUrlMetadata & AddHeadersToInclude(Aws::String &&key, const Aws::String &value)
UploadUrlMetadata & AddHeadersToInclude(const char *key, Aws::String &&value)
UploadUrlMetadata & WithUrl(const char *value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHeadersToInclude(Aws::Map< Aws::String, Aws::String > &&value)
AWS_CONNECT_API UploadUrlMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
UploadUrlMetadata & AddHeadersToInclude(Aws::String &&key, const char *value)
UploadUrlMetadata & AddHeadersToInclude(const Aws::String &key, const Aws::String &value)
UploadUrlMetadata & WithUrlExpiry(const char *value)
void SetHeadersToInclude(const Aws::Map< Aws::String, Aws::String > &value)
void SetUrlExpiry(const Aws::String &value)
UploadUrlMetadata & AddHeadersToInclude(const char *key, const char *value)
void SetUrl(const Aws::String &value)
UploadUrlMetadata & WithUrl(Aws::String &&value)
UploadUrlMetadata & WithHeadersToInclude(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetHeadersToInclude() const
UploadUrlMetadata & WithHeadersToInclude(Aws::Map< Aws::String, Aws::String > &&value)
UploadUrlMetadata & AddHeadersToInclude(const Aws::String &key, Aws::String &&value)
UploadUrlMetadata & WithUrlExpiry(const Aws::String &value)
UploadUrlMetadata & AddHeadersToInclude(Aws::String &&key, Aws::String &&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