AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSessionResult.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/s3/model/ServerSideEncryption.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/s3/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 S3
26{
27namespace Model
28{
30 {
31 public:
32 AWS_S3_API CreateSessionResult() = default;
35
36
38
44 inline ServerSideEncryption GetServerSideEncryption() const { return m_serverSideEncryption; }
45 inline void SetServerSideEncryption(ServerSideEncryption value) { m_serverSideEncryptionHasBeenSet = true; m_serverSideEncryption = value; }
48
50
55 inline const Aws::String& GetSSEKMSKeyId() const { return m_sSEKMSKeyId; }
56 template<typename SSEKMSKeyIdT = Aws::String>
57 void SetSSEKMSKeyId(SSEKMSKeyIdT&& value) { m_sSEKMSKeyIdHasBeenSet = true; m_sSEKMSKeyId = std::forward<SSEKMSKeyIdT>(value); }
58 template<typename SSEKMSKeyIdT = Aws::String>
59 CreateSessionResult& WithSSEKMSKeyId(SSEKMSKeyIdT&& value) { SetSSEKMSKeyId(std::forward<SSEKMSKeyIdT>(value)); return *this;}
61
63
71 inline const Aws::String& GetSSEKMSEncryptionContext() const { return m_sSEKMSEncryptionContext; }
72 template<typename SSEKMSEncryptionContextT = Aws::String>
73 void SetSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { m_sSEKMSEncryptionContextHasBeenSet = true; m_sSEKMSEncryptionContext = std::forward<SSEKMSEncryptionContextT>(value); }
74 template<typename SSEKMSEncryptionContextT = Aws::String>
75 CreateSessionResult& WithSSEKMSEncryptionContext(SSEKMSEncryptionContextT&& value) { SetSSEKMSEncryptionContext(std::forward<SSEKMSEncryptionContextT>(value)); return *this;}
77
79
83 inline bool GetBucketKeyEnabled() const { return m_bucketKeyEnabled; }
84 inline void SetBucketKeyEnabled(bool value) { m_bucketKeyEnabledHasBeenSet = true; m_bucketKeyEnabled = value; }
85 inline CreateSessionResult& WithBucketKeyEnabled(bool value) { SetBucketKeyEnabled(value); return *this;}
87
89
92 inline const SessionCredentials& GetCredentials() const { return m_credentials; }
93 template<typename CredentialsT = SessionCredentials>
94 void SetCredentials(CredentialsT&& value) { m_credentialsHasBeenSet = true; m_credentials = std::forward<CredentialsT>(value); }
95 template<typename CredentialsT = SessionCredentials>
96 CreateSessionResult& WithCredentials(CredentialsT&& value) { SetCredentials(std::forward<CredentialsT>(value)); return *this;}
98
100
101 inline const Aws::String& GetRequestId() const { return m_requestId; }
102 template<typename RequestIdT = Aws::String>
103 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
104 template<typename RequestIdT = Aws::String>
105 CreateSessionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
107 private:
108
110 bool m_serverSideEncryptionHasBeenSet = false;
111
112 Aws::String m_sSEKMSKeyId;
113 bool m_sSEKMSKeyIdHasBeenSet = false;
114
115 Aws::String m_sSEKMSEncryptionContext;
116 bool m_sSEKMSEncryptionContextHasBeenSet = false;
117
118 bool m_bucketKeyEnabled{false};
119 bool m_bucketKeyEnabledHasBeenSet = false;
120
121 SessionCredentials m_credentials;
122 bool m_credentialsHasBeenSet = false;
123
124 Aws::String m_requestId;
125 bool m_requestIdHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace S3
130} // 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