AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UploadArchiveResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Glacier {
23namespace Model {
35 public:
36 AWS_GLACIER_API UploadArchiveResult() = default;
39
41
44 inline const Aws::String& GetLocation() const { return m_location; }
45 template <typename LocationT = Aws::String>
46 void SetLocation(LocationT&& value) {
47 m_locationHasBeenSet = true;
48 m_location = std::forward<LocationT>(value);
49 }
50 template <typename LocationT = Aws::String>
51 UploadArchiveResult& WithLocation(LocationT&& value) {
52 SetLocation(std::forward<LocationT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetChecksum() const { return m_checksum; }
62 template <typename ChecksumT = Aws::String>
63 void SetChecksum(ChecksumT&& value) {
64 m_checksumHasBeenSet = true;
65 m_checksum = std::forward<ChecksumT>(value);
66 }
67 template <typename ChecksumT = Aws::String>
68 UploadArchiveResult& WithChecksum(ChecksumT&& value) {
69 SetChecksum(std::forward<ChecksumT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
80 template <typename ArchiveIdT = Aws::String>
81 void SetArchiveId(ArchiveIdT&& value) {
82 m_archiveIdHasBeenSet = true;
83 m_archiveId = std::forward<ArchiveIdT>(value);
84 }
85 template <typename ArchiveIdT = Aws::String>
86 UploadArchiveResult& WithArchiveId(ArchiveIdT&& value) {
87 SetArchiveId(std::forward<ArchiveIdT>(value));
88 return *this;
89 }
91
93
94 inline const Aws::String& GetRequestId() const { return m_requestId; }
95 template <typename RequestIdT = Aws::String>
96 void SetRequestId(RequestIdT&& value) {
97 m_requestIdHasBeenSet = true;
98 m_requestId = std::forward<RequestIdT>(value);
99 }
100 template <typename RequestIdT = Aws::String>
101 UploadArchiveResult& WithRequestId(RequestIdT&& value) {
102 SetRequestId(std::forward<RequestIdT>(value));
103 return *this;
104 }
106 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
107
108 private:
109 Aws::String m_location;
110
111 Aws::String m_checksum;
112
113 Aws::String m_archiveId;
114
115 Aws::String m_requestId;
116 Aws::Http::HttpResponseCode m_HttpResponseCode;
117 bool m_locationHasBeenSet = false;
118 bool m_checksumHasBeenSet = false;
119 bool m_archiveIdHasBeenSet = false;
120 bool m_requestIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Glacier
125} // namespace Aws
UploadArchiveResult & WithChecksum(ChecksumT &&value)
UploadArchiveResult & WithArchiveId(ArchiveIdT &&value)
AWS_GLACIER_API UploadArchiveResult()=default
UploadArchiveResult & WithLocation(LocationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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