AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateSessionResult.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/ServerSideEncryption.h>
11#include <aws/s3-crt/model/SessionCredentials.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3Crt {
25namespace Model {
27 public:
28 AWS_S3CRT_API CreateSessionResult() = default;
31
33
39 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
41 m_serverSideEncryptionHasBeenSet = true;
42 m_serverSideEncryption = value;
43 }
46 return *this;
47 }
49
51
56 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
57 template <typename SSEKMSKeyIdT = Aws::String>
58 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
59 m_sSEKMSKeyIdHasBeenSet = true;
60 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
61 }
62 template <typename SSEKMSKeyIdT = Aws::String>
63 CreateSessionResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
64 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
65 return *this;
66 }
68
70
78 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
79 template <typename SSEKMSEncryptionContextT = Aws::String>
80 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
81 m_sSEKMSEncryptionContextHasBeenSet = true;
82 m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value);
83 }
84 template <typename SSEKMSEncryptionContextT = Aws::String>
85 CreateSessionResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
86 SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value));
87 return *this;
88 }
90
92
96 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
97 inline void SetBucketKeyEnabled(bool value) {
98 m_bucketKeyEnabledHasBeenSet = true;
99 m_bucketKeyEnabled = value;
100 }
102 SetBucketKeyEnabled(value);
103 return *this;
104 }
106
108
111 inline const SessionCredentials& GetCredentials() const { return m_credentials; }
112 template <typename CredentialsT = SessionCredentials>
113 void SetCredentials(CredentialsT&& value) {
114 m_credentialsHasBeenSet = true;
115 m_credentials = std::forward<CredentialsT>(value);
116 }
117 template <typename CredentialsT = SessionCredentials>
118 CreateSessionResult& WithCredentials(CredentialsT&& value) {
119 SetCredentials(std::forward<CredentialsT>(value));
120 return *this;
121 }
123
125
126 inline const Aws::String& GetRequestId() const { return m_requestId; }
127 template <typename RequestIdT = Aws::String>
128 void SetRequestId(RequestIdT&& value) {
129 m_requestIdHasBeenSet = true;
130 m_requestId = std::forward<RequestIdT>(value);
131 }
132 template <typename RequestIdT = Aws::String>
133 CreateSessionResult& WithRequestId(RequestIdT&& value) {
134 SetRequestId(std::forward<RequestIdT>(value));
135 return *this;
136 }
138 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
139
140 private:
142
143 Aws::String m_sSEKMSKeyId;
144
145 Aws::String m_sSEKMSEncryptionContext;
146
147 bool m_bucketKeyEnabled{false};
148
149 SessionCredentials m_credentials;
150
151 Aws::String m_requestId;
152 Aws::Http::HttpResponseCode m_HttpResponseCode;
153 bool m_serverSideEncryptionHasBeenSet = false;
154 bool m_sSEKMSKeyIdHasBeenSet = false;
155 bool m_sSEKMSEncryptionContextHasBeenSet = false;
156 bool m_bucketKeyEnabledHasBeenSet = false;
157 bool m_credentialsHasBeenSet = false;
158 bool m_requestIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace S3Crt
163} // namespace Aws
ServerSideEncryption GetServerSideEncryption() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_S3CRT_API CreateSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
CreateSessionResult & WithCredentials(CredentialsT &&value)
CreateSessionResult & WithRequestId(RequestIdT &&value)
AWS_S3CRT_API CreateSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSessionResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
const Aws::String & GetSSEKMSEncryptionContext() const
CreateSessionResult & WithBucketKeyEnabled(bool value)
void SetServerSideEncryption(ServerSideEncryption value)
const Aws::String & GetSSEKMSKeyId() const
CreateSessionResult & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
const SessionCredentials & GetCredentials() const
CreateSessionResult & WithServerSideEncryption(ServerSideEncryption value)
AWS_S3CRT_API CreateSessionResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument