AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UploadPartCopyResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/CopyPartResult.h>
10#include <aws/s3/model/ServerSideEncryption.h>
11#include <aws/s3/model/RequestCharged.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace S3
27{
28namespace Model
29{
31 {
32 public:
33 AWS_S3_API UploadPartCopyResult() = default;
36
37
39
44 inline const Aws::String& GetCopySourceVersionId() const { return m_copySourceVersionId; }
45 template<typename CopySourceVersionIdT = Aws::String>
46 void SetCopySourceVersionId(CopySourceVersionIdT&& value) { m_copySourceVersionIdHasBeenSet = true; m_copySourceVersionId = std::forward<CopySourceVersionIdT>(value); }
47 template<typename CopySourceVersionIdT = Aws::String>
48 UploadPartCopyResult& WithCopySourceVersionId(CopySourceVersionIdT&& value) { SetCopySourceVersionId(std::forward<CopySourceVersionIdT>(value)); return *this;}
50
52
55 inline const CopyPartResult& GetCopyPartResult() const { return m_copyPartResult; }
56 template<typename CopyPartResultT = CopyPartResult>
57 void SetCopyPartResult(CopyPartResultT&& value) { m_copyPartResultHasBeenSet = true; m_copyPartResult = std::forward<CopyPartResultT>(value); }
58 template<typename CopyPartResultT = CopyPartResult>
59 UploadPartCopyResult& WithCopyPartResult(CopyPartResultT&& value) { SetCopyPartResult(std::forward<CopyPartResultT>(value)); return *this;}
61
63
69 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
70 inline void SetServerSideEncryption(ServerSideEncryption value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
73
75
81 inline const Aws::String& GetSSECustomerAlgorithm() const { return m_sSECustomerAlgorithm; }
82 template<typename SSECustomerAlgorithmT = Aws::String>
83 void SetSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = std::forward<SSECustomerAlgorithmT>(value); }
84 template<typename SSECustomerAlgorithmT = Aws::String>
85 UploadPartCopyResult& WithSSECustomerAlgorithm(SSECustomerAlgorithmT&& value) { SetSSECustomerAlgorithm(std::forward<SSECustomerAlgorithmT>(value)); return *this;}
87
89
95 inline const Aws::String& GetSSECustomerKeyMD5() const { return m_sSECustomerKeyMD5; }
96 template<typename SSECustomerKeyMD5T = Aws::String>
97 void SetSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = std::forward<SSECustomerKeyMD5T>(value); }
98 template<typename SSECustomerKeyMD5T = Aws::String>
99 UploadPartCopyResult& WithSSECustomerKeyMD5(SSECustomerKeyMD5T&& value) { SetSSECustomerKeyMD5(std::forward<SSECustomerKeyMD5T>(value)); return *this;}
101
103
107 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
108 template<typename SSEKMSKeyIdT = Aws::String>
109 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
110 template<typename SSEKMSKeyIdT = Aws::String>
111 UploadPartCopyResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) { SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value)); return *this;}
113
115
119 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
120 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
121 inline UploadPartCopyResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
123
125
126 inline RequestCharged GetRequestCharged() const { return m_requestCharged; }
127 inline void SetRequestCharged(RequestCharged value) { m_requestChargedHasBeenSet = true; m_requestCharged = value; }
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template<typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
136 template<typename RequestIdT = Aws::String>
137 UploadPartCopyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
139 private:
140
141 Aws::String m_copySourceVersionId;
142 bool m_copySourceVersionIdHasBeenSet = false;
143
144 CopyPartResult m_copyPartResult;
145 bool m_copyPartResultHasBeenSet = false;
146
148 bool m_serverSideEncryptionHasBeenSet = false;
149
150 Aws::String m_sSECustomerAlgorithm;
151 bool m_sSECustomerAlgorithmHasBeenSet = false;
152
153 Aws::String m_sSECustomerKeyMD5;
154 bool m_sSECustomerKeyMD5HasBeenSet = false;
155
156 Aws::String m_sSEKMSKeyId;
157 bool m_sSEKMSKeyIdHasBeenSet = false;
158
159 bool m_bucketKeyEnabled{false};
160 bool m_bucketKeyEnabledHasBeenSet = false;
161
162 RequestCharged m_requestCharged{RequestCharged::NOT_SET};
163 bool m_requestChargedHasBeenSet = false;
164
165 Aws::String m_requestId;
166 bool m_requestIdHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace S3
171} // namespace Aws
UploadPartCopyResult & WithCopySourceVersionId(CopySourceVersionIdT &&value)
UploadPartCopyResult & WithRequestCharged(RequestCharged value)
UploadPartCopyResult & WithSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
void SetRequestCharged(RequestCharged value)
UploadPartCopyResult & WithServerSideEncryption(ServerSideEncryption value)
AWS_S3_API UploadPartCopyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetSSECustomerAlgorithm() const
UploadPartCopyResult & WithRequestId(RequestIdT &&value)
const CopyPartResult & GetCopyPartResult() const
void SetServerSideEncryption(ServerSideEncryption value)
void SetSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
UploadPartCopyResult & WithSSECustomerKeyMD5(SSECustomerKeyMD5T &&value)
ServerSideEncryption GetServerSideEncryption() const
void SetSSECustomerAlgorithm(SSECustomerAlgorithmT &&value)
const Aws::String & GetCopySourceVersionId() const
UploadPartCopyResult & WithCopyPartResult(CopyPartResultT &&value)
const Aws::String & GetSSECustomerKeyMD5() const
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetRequestId() const
UploadPartCopyResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetCopySourceVersionId(CopySourceVersionIdT &&value)
const Aws::String & GetSSEKMSKeyId() const
AWS_S3_API UploadPartCopyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
UploadPartCopyResult & WithBucketKeyEnabled(bool value)
void SetCopyPartResult(CopyPartResultT &&value)
AWS_S3_API UploadPartCopyResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument