AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
MessageTemplateAttachment.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qconnect/QConnect_EXPORTS.h>
10#include <aws/qconnect/model/ContentDisposition.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QConnect {
22namespace Model {
23
31 public:
32 AWS_QCONNECT_API MessageTemplateAttachment() = default;
35 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ContentDisposition GetContentDisposition() const { return m_contentDisposition; }
42 inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; }
44 m_contentDispositionHasBeenSet = true;
45 m_contentDisposition = value;
46 }
49 return *this;
50 }
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetUploadedTime() const { return m_uploadedTime; }
77 inline bool UploadedTimeHasBeenSet() const { return m_uploadedTimeHasBeenSet; }
78 template <typename UploadedTimeT = Aws::Utils::DateTime>
80 m_uploadedTimeHasBeenSet = true;
81 m_uploadedTime = std::forward<UploadedTimeT>(value);
82 }
83 template <typename UploadedTimeT = Aws::Utils::DateTime>
85 SetUploadedTime(std::forward<UploadedTimeT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetUrl() const { return m_url; }
96 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
97 template <typename UrlT = Aws::String>
98 void SetUrl(UrlT&& value) {
99 m_urlHasBeenSet = true;
100 m_url = std::forward<UrlT>(value);
101 }
102 template <typename UrlT = Aws::String>
104 SetUrl(std::forward<UrlT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetUrlExpiry() const { return m_urlExpiry; }
114 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
115 template <typename UrlExpiryT = Aws::Utils::DateTime>
116 void SetUrlExpiry(UrlExpiryT&& value) {
117 m_urlExpiryHasBeenSet = true;
118 m_urlExpiry = std::forward<UrlExpiryT>(value);
119 }
120 template <typename UrlExpiryT = Aws::Utils::DateTime>
122 SetUrlExpiry(std::forward<UrlExpiryT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
132 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
133 template <typename AttachmentIdT = Aws::String>
135 m_attachmentIdHasBeenSet = true;
136 m_attachmentId = std::forward<AttachmentIdT>(value);
137 }
138 template <typename AttachmentIdT = Aws::String>
140 SetAttachmentId(std::forward<AttachmentIdT>(value));
141 return *this;
142 }
144 private:
146
147 Aws::String m_name;
148
149 Aws::Utils::DateTime m_uploadedTime{};
150
151 Aws::String m_url;
152
153 Aws::Utils::DateTime m_urlExpiry{};
154
155 Aws::String m_attachmentId;
156 bool m_contentDispositionHasBeenSet = false;
157 bool m_nameHasBeenSet = false;
158 bool m_uploadedTimeHasBeenSet = false;
159 bool m_urlHasBeenSet = false;
160 bool m_urlExpiryHasBeenSet = false;
161 bool m_attachmentIdHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace QConnect
166} // namespace Aws
AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
MessageTemplateAttachment & WithName(NameT &&value)
AWS_QCONNECT_API MessageTemplateAttachment(Aws::Utils::Json::JsonView jsonValue)
MessageTemplateAttachment & WithUrlExpiry(UrlExpiryT &&value)
AWS_QCONNECT_API MessageTemplateAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
MessageTemplateAttachment & WithContentDisposition(ContentDisposition value)
AWS_QCONNECT_API MessageTemplateAttachment()=default
MessageTemplateAttachment & WithUploadedTime(UploadedTimeT &&value)
MessageTemplateAttachment & WithAttachmentId(AttachmentIdT &&value)
MessageTemplateAttachment & WithUrl(UrlT &&value)
const Aws::Utils::DateTime & GetUploadedTime() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue