AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3PresignedUrl.h
1
6#pragma once
7#include <aws/socialmessaging/SocialMessaging_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 SocialMessaging
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_SOCIALMESSAGING_API S3PresignedUrl();
40 AWS_SOCIALMESSAGING_API S3PresignedUrl(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SOCIALMESSAGING_API S3PresignedUrl& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetUrl() const{ return m_url; }
50 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
51 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
52 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
53 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
54 inline S3PresignedUrl& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
55 inline S3PresignedUrl& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
56 inline S3PresignedUrl& WithUrl(const char* value) { SetUrl(value); return *this;}
58
60
67 inline const Aws::Map<Aws::String, Aws::String>& GetHeaders() const{ return m_headers; }
68 inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
69 inline void SetHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_headersHasBeenSet = true; m_headers = value; }
70 inline void SetHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
71 inline S3PresignedUrl& WithHeaders(const Aws::Map<Aws::String, Aws::String>& value) { SetHeaders(value); return *this;}
72 inline S3PresignedUrl& WithHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetHeaders(std::move(value)); return *this;}
73 inline S3PresignedUrl& AddHeaders(const Aws::String& key, const Aws::String& value) { m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this; }
74 inline S3PresignedUrl& AddHeaders(Aws::String&& key, const Aws::String& value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), value); return *this; }
75 inline S3PresignedUrl& AddHeaders(const Aws::String& key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(key, std::move(value)); return *this; }
76 inline S3PresignedUrl& AddHeaders(Aws::String&& key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), std::move(value)); return *this; }
77 inline S3PresignedUrl& AddHeaders(const char* key, Aws::String&& value) { m_headersHasBeenSet = true; m_headers.emplace(key, std::move(value)); return *this; }
78 inline S3PresignedUrl& AddHeaders(Aws::String&& key, const char* value) { m_headersHasBeenSet = true; m_headers.emplace(std::move(key), value); return *this; }
79 inline S3PresignedUrl& AddHeaders(const char* key, const char* value) { m_headersHasBeenSet = true; m_headers.emplace(key, value); return *this; }
81 private:
82
83 Aws::String m_url;
84 bool m_urlHasBeenSet = false;
85
87 bool m_headersHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SocialMessaging
92} // namespace Aws
S3PresignedUrl & AddHeaders(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetHeaders() const
void SetHeaders(Aws::Map< Aws::String, Aws::String > &&value)
AWS_SOCIALMESSAGING_API S3PresignedUrl(Aws::Utils::Json::JsonView jsonValue)
AWS_SOCIALMESSAGING_API S3PresignedUrl()
S3PresignedUrl & AddHeaders(Aws::String &&key, Aws::String &&value)
S3PresignedUrl & WithUrl(const char *value)
void SetHeaders(const Aws::Map< Aws::String, Aws::String > &value)
S3PresignedUrl & AddHeaders(const char *key, Aws::String &&value)
AWS_SOCIALMESSAGING_API Aws::Utils::Json::JsonValue Jsonize() const
S3PresignedUrl & AddHeaders(Aws::String &&key, const char *value)
S3PresignedUrl & WithUrl(Aws::String &&value)
void SetUrl(const Aws::String &value)
AWS_SOCIALMESSAGING_API S3PresignedUrl & operator=(Aws::Utils::Json::JsonView jsonValue)
S3PresignedUrl & AddHeaders(Aws::String &&key, const Aws::String &value)
S3PresignedUrl & WithUrl(const Aws::String &value)
S3PresignedUrl & WithHeaders(Aws::Map< Aws::String, Aws::String > &&value)
S3PresignedUrl & AddHeaders(const char *key, const char *value)
S3PresignedUrl & WithHeaders(const Aws::Map< Aws::String, Aws::String > &value)
S3PresignedUrl & AddHeaders(const Aws::String &key, const 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