AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
UploadUrl.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
29class UploadUrl {
30 public:
31 AWS_SUPPORT_API UploadUrl() = default;
32 AWS_SUPPORT_API UploadUrl(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SUPPORT_API UploadUrl& operator=(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 UploadUrl& WithUrl(UrlT&& value) {
52 SetUrl(std::forward<UrlT>(value));
53 return *this;
54 }
56
58
61 inline int GetPartIndex() const { return m_partIndex; }
62 inline bool PartIndexHasBeenSet() const { return m_partIndexHasBeenSet; }
63 inline void SetPartIndex(int value) {
64 m_partIndexHasBeenSet = true;
65 m_partIndex = value;
66 }
67 inline UploadUrl& WithPartIndex(int value) {
68 SetPartIndex(value);
69 return *this;
70 }
72
74
78 inline const Aws::String& GetExpiryDate() const { return m_expiryDate; }
79 inline bool ExpiryDateHasBeenSet() const { return m_expiryDateHasBeenSet; }
80 template <typename ExpiryDateT = Aws::String>
81 void SetExpiryDate(ExpiryDateT&& value) {
82 m_expiryDateHasBeenSet = true;
83 m_expiryDate = std::forward<ExpiryDateT>(value);
84 }
85 template <typename ExpiryDateT = Aws::String>
86 UploadUrl& WithExpiryDate(ExpiryDateT&& value) {
87 SetExpiryDate(std::forward<ExpiryDateT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_url;
93
94 int m_partIndex{0};
95
96 Aws::String m_expiryDate;
97 bool m_urlHasBeenSet = false;
98 bool m_partIndexHasBeenSet = false;
99 bool m_expiryDateHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Support
104} // namespace Aws
void SetUrl(UrlT &&value)
Definition UploadUrl.h:46
AWS_SUPPORT_API UploadUrl()=default
bool ExpiryDateHasBeenSet() const
Definition UploadUrl.h:79
UploadUrl & WithPartIndex(int value)
Definition UploadUrl.h:67
AWS_SUPPORT_API UploadUrl(Aws::Utils::Json::JsonView jsonValue)
UploadUrl & WithUrl(UrlT &&value)
Definition UploadUrl.h:51
const Aws::String & GetExpiryDate() const
Definition UploadUrl.h:78
AWS_SUPPORT_API UploadUrl & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPartIndex(int value)
Definition UploadUrl.h:63
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
UploadUrl & WithExpiryDate(ExpiryDateT &&value)
Definition UploadUrl.h:86
void SetExpiryDate(ExpiryDateT &&value)
Definition UploadUrl.h:81
const Aws::String & GetUrl() const
Definition UploadUrl.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue