AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSessionResult.h
1
6#pragma once
7#include <aws/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/s3-crt/model/ServerSideEncryption.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3-crt/model/SessionCredentials.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3Crt
26{
27namespace Model
28{
30 {
31 public:
32 AWS_S3CRT_API CreateSessionResult();
35
36
38
42 inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
43 inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
44 inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = std::move(value); }
48
50
55 inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
56 inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
57 inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = std::move(value); }
58 inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
59 inline CreateSessionResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
60 inline CreateSessionResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(std::move(value)); return *this;}
61 inline CreateSessionResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
63
65
73 inline const Aws::String& GetSSEKMSEncryptionContext() const{ return m_sSEKMSEncryptionContext; }
74 inline void SetSSEKMSEncryptionContext(const Aws::String& value) { m_sSEKMSEncryptionContext = value; }
75 inline void SetSSEKMSEncryptionContext(Aws::String&& value) { m_sSEKMSEncryptionContext = std::move(value); }
76 inline void SetSSEKMSEncryptionContext(const char* value) { m_sSEKMSEncryptionContext.assign(value); }
79 inline CreateSessionResult& WithSSEKMSEncryptionContext(const char* value) { SetSSEKMSEncryptionContext(value); return *this;}
81
83
87 inline bool GetBucketKeyEnabled() const{ return m_bucketKeyEnabled; }
88 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabled = value; }
89 inline CreateSessionResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
91
93
96 inline const SessionCredentials& GetCredentials() const{ return m_credentials; }
97 inline void SetCredentials(const SessionCredentials& value) { m_credentials = value; }
98 inline void SetCredentials(SessionCredentials&& value) { m_credentials = std::move(value); }
99 inline CreateSessionResult& WithCredentials(const SessionCredentials& value) { SetCredentials(value); return *this;}
100 inline CreateSessionResult& WithCredentials(SessionCredentials&& value) { SetCredentials(std::move(value)); return *this;}
102
104
105 inline const Aws::String& GetRequestId() const{ return m_requestId; }
106 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
107 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
108 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
109 inline CreateSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
110 inline CreateSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
111 inline CreateSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
113 private:
114
115 ServerSideEncryption m_serverSideEncryption;
116
117 Aws::String m_sSEKMSKeyId;
118
119 Aws::String m_sSEKMSEncryptionContext;
120
121 bool m_bucketKeyEnabled;
122
123 SessionCredentials m_credentials;
124
125 Aws::String m_requestId;
126 };
127
128} // namespace Model
129} // namespace S3Crt
130} // namespace Aws
CreateSessionResult & WithSSEKMSKeyId(const char *value)
AWS_S3CRT_API CreateSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSessionResult & WithRequestId(Aws::String &&value)
CreateSessionResult & WithRequestId(const Aws::String &value)
CreateSessionResult & WithSSEKMSEncryptionContext(const Aws::String &value)
void SetSSEKMSEncryptionContext(const Aws::String &value)
void SetCredentials(SessionCredentials &&value)
CreateSessionResult & WithSSEKMSEncryptionContext(Aws::String &&value)
CreateSessionResult & WithCredentials(SessionCredentials &&value)
CreateSessionResult & WithSSEKMSKeyId(const Aws::String &value)
AWS_S3CRT_API CreateSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRequestId(const Aws::String &value)
const Aws::String & GetSSEKMSEncryptionContext() const
CreateSessionResult & WithBucketKeyEnabled(bool value)
void SetSSEKMSKeyId(const Aws::String &value)
const Aws::String & GetSSEKMSKeyId() const
const ServerSideEncryption & GetServerSideEncryption() const
CreateSessionResult & WithRequestId(const char *value)
CreateSessionResult & WithServerSideEncryption(ServerSideEncryption &&value)
void SetServerSideEncryption(const ServerSideEncryption &value)
void SetCredentials(const SessionCredentials &value)
CreateSessionResult & WithServerSideEncryption(const ServerSideEncryption &value)
CreateSessionResult & WithSSEKMSKeyId(Aws::String &&value)
const SessionCredentials & GetCredentials() const
void SetServerSideEncryption(ServerSideEncryption &&value)
void SetSSEKMSEncryptionContext(Aws::String &&value)
CreateSessionResult & WithSSEKMSEncryptionContext(const char *value)
CreateSessionResult & WithCredentials(const SessionCredentials &value)
void SetSSEKMSEncryptionContext(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument