AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
BlobPayload.h
1
6#pragma once
7#include <aws/opensearchmemory/OpenSearchMemory_EXPORTS.h>
8#include <aws/opensearchmemory/model/BlobContentType.h>
9#include <aws/opensearchmemory/model/BlobSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchMemory {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHMEMORY_API BlobPayload() = default;
32 AWS_OPENSEARCHMEMORY_API BlobPayload(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHMEMORY_API BlobPayload& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline BlobContentType GetContentType() const { return m_contentType; }
42 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
43 inline void SetContentType(BlobContentType value) {
44 m_contentTypeHasBeenSet = true;
45 m_contentType = value;
46 }
48 SetContentType(value);
49 return *this;
50 }
52
54
57 inline const BlobSource& GetSource() const { return m_source; }
58 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
59 template <typename SourceT = BlobSource>
60 void SetSource(SourceT&& value) {
61 m_sourceHasBeenSet = true;
62 m_source = std::forward<SourceT>(value);
63 }
64 template <typename SourceT = BlobSource>
65 BlobPayload& WithSource(SourceT&& value) {
66 SetSource(std::forward<SourceT>(value));
67 return *this;
68 }
70 private:
72
73 BlobSource m_source;
74 bool m_contentTypeHasBeenSet = false;
75 bool m_sourceHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace OpenSearchMemory
80} // namespace Aws
BlobContentType GetContentType() const
Definition BlobPayload.h:41
BlobPayload & WithContentType(BlobContentType value)
Definition BlobPayload.h:47
const BlobSource & GetSource() const
Definition BlobPayload.h:57
AWS_OPENSEARCHMEMORY_API BlobPayload & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHMEMORY_API Aws::Utils::Json::JsonValue Jsonize() const
BlobPayload & WithSource(SourceT &&value)
Definition BlobPayload.h:65
AWS_OPENSEARCHMEMORY_API BlobPayload()=default
AWS_OPENSEARCHMEMORY_API BlobPayload(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(BlobContentType value)
Definition BlobPayload.h:43
Aws::Utils::Json::JsonValue JsonValue