AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UploadArchiveResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/Glacier_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13template <typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils {
17namespace Json {
18class JsonValue;
19} // namespace Json
20} // namespace Utils
21namespace Glacier {
22namespace Model {
34 public:
35 AWS_GLACIER_API UploadArchiveResult() = default;
38
40
43 inline const Aws::String& GetLocation() const { return m_location; }
44 template <typename LocationT = Aws::String>
45 void SetLocation(LocationT&& value) {
46 m_locationHasBeenSet = true;
47 m_location = std::forward<LocationT>(value);
48 }
49 template <typename LocationT = Aws::String>
50 UploadArchiveResult& WithLocation(LocationT&& value) {
51 SetLocation(std::forward<LocationT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetChecksum() const { return m_checksum; }
61 template <typename ChecksumT = Aws::String>
62 void SetChecksum(ChecksumT&& value) {
63 m_checksumHasBeenSet = true;
64 m_checksum = std::forward<ChecksumT>(value);
65 }
66 template <typename ChecksumT = Aws::String>
67 UploadArchiveResult& WithChecksum(ChecksumT&& value) {
68 SetChecksum(std::forward<ChecksumT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
79 template <typename ArchiveIdT = Aws::String>
80 void SetArchiveId(ArchiveIdT&& value) {
81 m_archiveIdHasBeenSet = true;
82 m_archiveId = std::forward<ArchiveIdT>(value);
83 }
84 template <typename ArchiveIdT = Aws::String>
85 UploadArchiveResult& WithArchiveId(ArchiveIdT&& value) {
86 SetArchiveId(std::forward<ArchiveIdT>(value));
87 return *this;
88 }
90
92
93 inline const Aws::String& GetRequestId() const { return m_requestId; }
94 template <typename RequestIdT = Aws::String>
95 void SetRequestId(RequestIdT&& value) {
96 m_requestIdHasBeenSet = true;
97 m_requestId = std::forward<RequestIdT>(value);
98 }
99 template <typename RequestIdT = Aws::String>
100 UploadArchiveResult& WithRequestId(RequestIdT&& value) {
101 SetRequestId(std::forward<RequestIdT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_location;
107
108 Aws::String m_checksum;
109
110 Aws::String m_archiveId;
111
112 Aws::String m_requestId;
113 bool m_locationHasBeenSet = false;
114 bool m_checksumHasBeenSet = false;
115 bool m_archiveIdHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Glacier
121} // namespace Aws
UploadArchiveResult & WithChecksum(ChecksumT &&value)
UploadArchiveResult & WithArchiveId(ArchiveIdT &&value)
AWS_GLACIER_API UploadArchiveResult()=default
UploadArchiveResult & WithLocation(LocationT &&value)
UploadArchiveResult & WithRequestId(RequestIdT &&value)
AWS_GLACIER_API UploadArchiveResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_GLACIER_API UploadArchiveResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue