AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateSessionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3/S3_EXPORTS.h>
9#include <aws/s3/model/ServerSideEncryption.h>
10#include <aws/s3/model/SessionCredentials.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 S3 {
24namespace Model {
26 public:
27 AWS_S3_API CreateSessionResult() = default;
30
32
38 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
40 m_serverSideEncryptionHasBeenSet = true;
41 m_serverSideEncryption = value;
42 }
45 return *this;
46 }
48
50
55 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
56 template <typename SSEKMSKeyIdT = Aws::String>
57 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) {
58 m_sSEKMSKeyIdHasBeenSet = true;
59 m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value);
60 }
61 template <typename SSEKMSKeyIdT = Aws::String>
62 CreateSessionResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) {
63 SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value));
64 return *this;
65 }
67
69
77 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
78 template <typename SSEKMSEncryptionContextT = Aws::String>
79 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
80 m_sSEKMSEncryptionContextHasBeenSet = true;
81 m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value);
82 }
83 template <typename SSEKMSEncryptionContextT = Aws::String>
84 CreateSessionResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) {
85 SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value));
86 return *this;
87 }
89
91
95 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
96 inline void SetBucketKeyEnabled(bool value) {
97 m_bucketKeyEnabledHasBeenSet = true;
98 m_bucketKeyEnabled = value;
99 }
101 SetBucketKeyEnabled(value);
102 return *this;
103 }
105
107
110 inline const SessionCredentials& GetCredentials() const { return m_credentials; }
111 template <typename CredentialsT = SessionCredentials>
112 void SetCredentials(CredentialsT&& value) {
113 m_credentialsHasBeenSet = true;
114 m_credentials = std::forward<CredentialsT>(value);
115 }
116 template <typename CredentialsT = SessionCredentials>
117 CreateSessionResult& WithCredentials(CredentialsT&& value) {
118 SetCredentials(std::forward<CredentialsT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::String& GetRequestId() const { return m_requestId; }
126 template <typename RequestIdT = Aws::String>
127 void SetRequestId(RequestIdT&& value) {
128 m_requestIdHasBeenSet = true;
129 m_requestId = std::forward<RequestIdT>(value);
130 }
131 template <typename RequestIdT = Aws::String>
132 CreateSessionResult& WithRequestId(RequestIdT&& value) {
133 SetRequestId(std::forward<RequestIdT>(value));
134 return *this;
135 }
137 private:
139
140 Aws::String m_sSEKMSKeyId;
141
142 Aws::String m_sSEKMSEncryptionContext;
143
144 bool m_bucketKeyEnabled{false};
145
146 SessionCredentials m_credentials;
147
148 Aws::String m_requestId;
149 bool m_serverSideEncryptionHasBeenSet = false;
150 bool m_sSEKMSKeyIdHasBeenSet = false;
151 bool m_sSEKMSEncryptionContextHasBeenSet = false;
152 bool m_bucketKeyEnabledHasBeenSet = false;
153 bool m_credentialsHasBeenSet = false;
154 bool m_requestIdHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace S3
159} // namespace Aws
AWS_S3_API CreateSessionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateSessionResult & WithCredentials(CredentialsT &&value)
ServerSideEncryption GetServerSideEncryption() const
CreateSessionResult & WithServerSideEncryption(ServerSideEncryption value)
AWS_S3_API CreateSessionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::String & GetSSEKMSKeyId() const
const Aws::String & GetSSEKMSEncryptionContext() const
void SetSSEKMSKeyId(SSEKMSKeyIdT &&value)
CreateSessionResult & WithSSEKMSKeyId(SSEKMSKeyIdT &&value)
void SetCredentials(CredentialsT &&value)
void SetServerSideEncryption(ServerSideEncryption value)
const Aws::String & GetRequestId() const
const SessionCredentials & GetCredentials() const
CreateSessionResult & WithRequestId(RequestIdT &&value)
CreateSessionResult & WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
AWS_S3_API CreateSessionResult()=default
void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT &&value)
CreateSessionResult & WithBucketKeyEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument