AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
DeleteObjectResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/S3Crt_EXPORTS.h>
10#include <aws/s3-crt/model/RequestCharged.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3Crt {
24namespace Model {
26 public:
27 AWS_S3CRT_API DeleteObjectResult() = default;
30
32
41 inline bool GetDeleteMarker() const { return m_deleteMarker; }
42 inline void SetDeleteMarker(bool value) {
43 m_deleteMarkerHasBeenSet = true;
44 m_deleteMarker = value;
45 }
47 SetDeleteMarker(value);
48 return *this;
49 }
51
53
58 inline const Aws::String& GetVersionId() const { return m_versionId; }
59 template <typename VersionIdT = Aws::String>
60 void SetVersionId(VersionIdT&& value) {
61 m_versionIdHasBeenSet = true;
62 m_versionId = std::forward<VersionIdT>(value);
63 }
64 template <typename VersionIdT = Aws::String>
65 DeleteObjectResult& WithVersionId(VersionIdT&& value) {
66 SetVersionId(std::forward<VersionIdT>(value));
67 return *this;
68 }
70
72
73 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
74 inline void SetRequestCharged(RequestCharged value) {
75 m_requestChargedHasBeenSet = true;
76 m_requestCharged = value;
77 }
79 SetRequestCharged(value);
80 return *this;
81 }
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
93 DeleteObjectResult& WithRequestId(RequestIdT&& value) {
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
99
100 private:
101 bool m_deleteMarker{false};
102
103 Aws::String m_versionId;
104
105 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
106
107 Aws::String m_requestId;
108 Aws::Http::HttpResponseCode m_HttpResponseCode;
109 bool m_deleteMarkerHasBeenSet = false;
110 bool m_versionIdHasBeenSet = false;
111 bool m_requestChargedHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace S3Crt
117} // namespace Aws
const Aws::String & GetVersionId() const
DeleteObjectResult & WithVersionId(VersionIdT &&value)
DeleteObjectResult & WithRequestId(RequestIdT &&value)
void SetRequestCharged(RequestCharged value)
AWS_S3CRT_API DeleteObjectResult()=default
const Aws::String & GetRequestId() const
DeleteObjectResult & WithDeleteMarker(bool value)
AWS_S3CRT_API DeleteObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DeleteObjectResult & WithRequestCharged(RequestCharged value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_S3CRT_API DeleteObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument