AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
RecordsEvent.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
9#include <utility>
10
11namespace Aws
12{
13namespace S3
14{
15namespace Model
16{
23 {
24 public:
26 AWS_S3_API RecordsEvent(Aws::Vector<unsigned char>&& value) { m_payload = std::move(value); }
27
31 inline const Aws::Vector<unsigned char>& GetPayload() const { return m_payload; }
32
36 inline Aws::Vector<unsigned char>&& GetPayloadWithOwnership() { return std::move(m_payload); }
37
41 inline void SetPayload(const Aws::Vector<unsigned char>& value) { m_payloadHasBeenSet = true; m_payload = value; }
42
46 inline void SetPayload(Aws::Vector<unsigned char>&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
47
51 inline RecordsEvent& WithPayload(const Aws::Vector<unsigned char>& value) { SetPayload(value); return *this;}
52
56 inline RecordsEvent& WithPayload(Aws::Vector<unsigned char>&& value) { SetPayload(std::move(value)); return *this;}
57
58 private:
59
61 bool m_payloadHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace S3
66} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
Aws::Vector< unsigned char > && GetPayloadWithOwnership()
Definition: RecordsEvent.h:36
void SetPayload(const Aws::Vector< unsigned char > &value)
Definition: RecordsEvent.h:41
const Aws::Vector< unsigned char > & GetPayload() const
Definition: RecordsEvent.h:31
RecordsEvent & WithPayload(Aws::Vector< unsigned char > &&value)
Definition: RecordsEvent.h:56
AWS_S3_API RecordsEvent(Aws::Vector< unsigned char > &&value)
Definition: RecordsEvent.h:26
RecordsEvent & WithPayload(const Aws::Vector< unsigned char > &value)
Definition: RecordsEvent.h:51
void SetPayload(Aws::Vector< unsigned char > &&value)
Definition: RecordsEvent.h:46
AWS_S3_API RecordsEvent()=default
std::vector< T, Aws::Allocator< T > > Vector