AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
TaskDocument.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/DocumentContentType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
30 public:
31 AWS_CONTEXT_API TaskDocument() = default;
32 AWS_CONTEXT_API TaskDocument(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API TaskDocument& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 TaskDocument& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline long long GetSizeBytes() const { return m_sizeBytes; }
59 inline bool SizeBytesHasBeenSet() const { return m_sizeBytesHasBeenSet; }
60 inline void SetSizeBytes(long long value) {
61 m_sizeBytesHasBeenSet = true;
62 m_sizeBytes = value;
63 }
64 inline TaskDocument& WithSizeBytes(long long value) {
65 SetSizeBytes(value);
66 return *this;
67 }
69
71
74 inline DocumentContentType GetContentType() const { return m_contentType; }
75 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
77 m_contentTypeHasBeenSet = true;
78 m_contentType = value;
79 }
81 SetContentType(value);
82 return *this;
83 }
85 private:
86 Aws::String m_name;
87
88 long long m_sizeBytes{0};
89
91 bool m_nameHasBeenSet = false;
92 bool m_sizeBytesHasBeenSet = false;
93 bool m_contentTypeHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Context
98} // namespace Aws
void SetContentType(DocumentContentType value)
AWS_CONTEXT_API TaskDocument()=default
AWS_CONTEXT_API TaskDocument & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API TaskDocument(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetSizeBytes(long long value)
const Aws::String & GetName() const
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
TaskDocument & WithSizeBytes(long long value)
TaskDocument & WithName(NameT &&value)
TaskDocument & WithContentType(DocumentContentType value)
DocumentContentType GetContentType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String