AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
CompletedUpload.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 CompletedUpload() = default;
32 AWS_SUPPORT_API CompletedUpload(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline int GetPartIndex() const { return m_partIndex; }
43 inline bool PartIndexHasBeenSet() const { return m_partIndexHasBeenSet; }
44 inline void SetPartIndex(int value) {
45 m_partIndexHasBeenSet = true;
46 m_partIndex = value;
47 }
48 inline CompletedUpload& WithPartIndex(int value) {
49 SetPartIndex(value);
50 return *this;
51 }
53
55
59 inline const Aws::String& GetETag() const { return m_eTag; }
60 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
61 template <typename ETagT = Aws::String>
62 void SetETag(ETagT&& value) {
63 m_eTagHasBeenSet = true;
64 m_eTag = std::forward<ETagT>(value);
65 }
66 template <typename ETagT = Aws::String>
67 CompletedUpload& WithETag(ETagT&& value) {
68 SetETag(std::forward<ETagT>(value));
69 return *this;
70 }
72 private:
73 int m_partIndex{0};
74
75 Aws::String m_eTag;
76 bool m_partIndexHasBeenSet = false;
77 bool m_eTagHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Support
82} // namespace Aws
AWS_SUPPORT_API CompletedUpload & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SUPPORT_API Aws::Utils::Json::JsonValue Jsonize() const
CompletedUpload & WithETag(ETagT &&value)
const Aws::String & GetETag() const
AWS_SUPPORT_API CompletedUpload()=default
AWS_SUPPORT_API CompletedUpload(Aws::Utils::Json::JsonView jsonValue)
CompletedUpload & WithPartIndex(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue