AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
DownloadUrl.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/support/Support_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Support {
20namespace Model {
21
30 public:
31 AWS_SUPPORT_API DownloadUrl() = default;
32 AWS_SUPPORT_API DownloadUrl(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::String& GetUrl() const { return m_url; }
44 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
45 template <typename UrlT = Aws::String>
46 void SetUrl(UrlT&& value) {
47 m_urlHasBeenSet = true;
48 m_url = std::forward<UrlT>(value);
49 }
50 template <typename UrlT = Aws::String>
51 DownloadUrl& WithUrl(UrlT&& value) {
52 SetUrl(std::forward<UrlT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetExpiryDate() const { return m_expiryDate; }
63 inline bool ExpiryDateHasBeenSet() const { return m_expiryDateHasBeenSet; }
64 template <typename ExpiryDateT = Aws::String>
65 void SetExpiryDate(ExpiryDateT&& value) {
66 m_expiryDateHasBeenSet = true;
67 m_expiryDate = std::forward<ExpiryDateT>(value);
68 }
69 template <typename ExpiryDateT = Aws::String>
70 DownloadUrl& WithExpiryDate(ExpiryDateT&& value) {
71 SetExpiryDate(std::forward<ExpiryDateT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_url;
77
78 Aws::String m_expiryDate;
79 bool m_urlHasBeenSet = false;
80 bool m_expiryDateHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Support
85} // namespace Aws
DownloadUrl & WithUrl(UrlT &&value)
Definition DownloadUrl.h:51
AWS_SUPPORT_API DownloadUrl & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SUPPORT_API DownloadUrl()=default
void SetExpiryDate(ExpiryDateT &&value)
Definition DownloadUrl.h:65
const Aws::String & GetExpiryDate() const
Definition DownloadUrl.h:62
DownloadUrl & WithExpiryDate(ExpiryDateT &&value)
Definition DownloadUrl.h:70
const Aws::String & GetUrl() const
Definition DownloadUrl.h:43
AWS_SUPPORT_API DownloadUrl(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue