AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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