AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
SourceUploadSummary.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyGen3 {
21namespace Model {
22
29 public:
30 AWS_AMPLIFYGEN3_API SourceUploadSummary() = default;
31 AWS_AMPLIFYGEN3_API SourceUploadSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetSourceUploadId() const { return m_sourceUploadId; }
40 inline bool SourceUploadIdHasBeenSet() const { return m_sourceUploadIdHasBeenSet; }
41 template <typename SourceUploadIdT = Aws::String>
42 void SetSourceUploadId(SourceUploadIdT&& value) {
43 m_sourceUploadIdHasBeenSet = true;
44 m_sourceUploadId = std::forward<SourceUploadIdT>(value);
45 }
46 template <typename SourceUploadIdT = Aws::String>
47 SourceUploadSummary& WithSourceUploadId(SourceUploadIdT&& value) {
48 SetSourceUploadId(std::forward<SourceUploadIdT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
60 template <typename CreatedAtT = Aws::Utils::DateTime>
61 void SetCreatedAt(CreatedAtT&& value) {
62 m_createdAtHasBeenSet = true;
63 m_createdAt = std::forward<CreatedAtT>(value);
64 }
65 template <typename CreatedAtT = Aws::Utils::DateTime>
66 SourceUploadSummary& WithCreatedAt(CreatedAtT&& value) {
67 SetCreatedAt(std::forward<CreatedAtT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetUploadExpiresAt() const { return m_uploadExpiresAt; }
77 inline bool UploadExpiresAtHasBeenSet() const { return m_uploadExpiresAtHasBeenSet; }
78 template <typename UploadExpiresAtT = Aws::Utils::DateTime>
79 void SetUploadExpiresAt(UploadExpiresAtT&& value) {
80 m_uploadExpiresAtHasBeenSet = true;
81 m_uploadExpiresAt = std::forward<UploadExpiresAtT>(value);
82 }
83 template <typename UploadExpiresAtT = Aws::Utils::DateTime>
84 SourceUploadSummary& WithUploadExpiresAt(UploadExpiresAtT&& value) {
85 SetUploadExpiresAt(std::forward<UploadExpiresAtT>(value));
86 return *this;
87 }
89
91
94 inline long long GetSizeInBytes() const { return m_sizeInBytes; }
95 inline bool SizeInBytesHasBeenSet() const { return m_sizeInBytesHasBeenSet; }
96 inline void SetSizeInBytes(long long value) {
97 m_sizeInBytesHasBeenSet = true;
98 m_sizeInBytes = value;
99 }
100 inline SourceUploadSummary& WithSizeInBytes(long long value) {
101 SetSizeInBytes(value);
102 return *this;
103 }
105 private:
106 Aws::String m_sourceUploadId;
107
108 Aws::Utils::DateTime m_createdAt{};
109
110 Aws::Utils::DateTime m_uploadExpiresAt{};
111
112 long long m_sizeInBytes{0};
113 bool m_sourceUploadIdHasBeenSet = false;
114 bool m_createdAtHasBeenSet = false;
115 bool m_uploadExpiresAtHasBeenSet = false;
116 bool m_sizeInBytesHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace AmplifyGen3
121} // namespace Aws
void SetUploadExpiresAt(UploadExpiresAtT &&value)
SourceUploadSummary & WithSourceUploadId(SourceUploadIdT &&value)
SourceUploadSummary & WithSizeInBytes(long long value)
SourceUploadSummary & WithUploadExpiresAt(UploadExpiresAtT &&value)
AWS_AMPLIFYGEN3_API SourceUploadSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_AMPLIFYGEN3_API SourceUploadSummary()=default
SourceUploadSummary & WithCreatedAt(CreatedAtT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUploadExpiresAt() const
AWS_AMPLIFYGEN3_API SourceUploadSummary(Aws::Utils::Json::JsonView jsonValue)
void SetSourceUploadId(SourceUploadIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue