AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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