AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PayloadPart.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/sagemaker-gateway-runtime/SageMakerGatewayRuntime_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace SageMakerGatewayRuntime {
14namespace Model {
21 public:
22 AWS_SAGEMAKERGATEWAYRUNTIME_API PayloadPart() = default;
23 AWS_SAGEMAKERGATEWAYRUNTIME_API PayloadPart(Aws::Vector<unsigned char>&& value) { m_bytes = std::move(value); }
24
26
30 inline const Aws::Vector<unsigned char>& GetBytes() const { return m_bytes; }
31 inline Aws::Vector<unsigned char>&& GetBytesWithOwnership() { return std::move(m_bytes); }
32 inline void SetBytes(const Aws::Vector<unsigned char>& value) {
33 m_bytesHasBeenSet = true;
34 m_bytes = value;
35 }
36 inline void SetBytes(Aws::Vector<unsigned char>&& value) {
37 m_bytesHasBeenSet = true;
38 m_bytes = std::move(value);
39 }
41 SetBytes(value);
42 return *this;
43 }
45 SetBytes(std::move(value));
46 return *this;
47 }
49
50 private:
52 bool m_bytesHasBeenSet = false;
53};
54
55} // namespace Model
56} // namespace SageMakerGatewayRuntime
57} // namespace Aws
Aws::Vector< unsigned char > && GetBytesWithOwnership()
Definition PayloadPart.h:31
AWS_SAGEMAKERGATEWAYRUNTIME_API PayloadPart(Aws::Vector< unsigned char > &&value)
Definition PayloadPart.h:23
const Aws::Vector< unsigned char > & GetBytes() const
Definition PayloadPart.h:30
void SetBytes(Aws::Vector< unsigned char > &&value)
Definition PayloadPart.h:36
PayloadPart & WithBytes(Aws::Vector< unsigned char > &&value)
Definition PayloadPart.h:44
void SetBytes(const Aws::Vector< unsigned char > &value)
Definition PayloadPart.h:32
AWS_SAGEMAKERGATEWAYRUNTIME_API PayloadPart()=default
PayloadPart & WithBytes(const Aws::Vector< unsigned char > &value)
Definition PayloadPart.h:40
std::vector< T, Aws::Allocator< T > > Vector