AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MessageTemplateAttachment.h
1
6#pragma once
7#include <aws/qconnect/QConnect_EXPORTS.h>
8#include <aws/qconnect/model/ContentDisposition.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QConnect
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QCONNECT_API MessageTemplateAttachment() = default;
40 AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline ContentDisposition GetContentDisposition() const { return m_contentDisposition; }
48 inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; }
49 inline void SetContentDisposition(ContentDisposition value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; }
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 MessageTemplateAttachment& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetUploadedTime() const { return m_uploadedTime; }
71 inline bool UploadedTimeHasBeenSet() const { return m_uploadedTimeHasBeenSet; }
72 template<typename UploadedTimeT = Aws::Utils::DateTime>
73 void SetUploadedTime(UploadedTimeT&& value) { m_uploadedTimeHasBeenSet = true; m_uploadedTime = std::forward<UploadedTimeT>(value); }
74 template<typename UploadedTimeT = Aws::Utils::DateTime>
75 MessageTemplateAttachment& WithUploadedTime(UploadedTimeT&& value) { SetUploadedTime(std::forward<UploadedTimeT>(value)); return *this;}
77
79
83 inline const Aws::String& GetUrl() const { return m_url; }
84 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
85 template<typename UrlT = Aws::String>
86 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
87 template<typename UrlT = Aws::String>
88 MessageTemplateAttachment& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetUrlExpiry() const { return m_urlExpiry; }
96 inline bool UrlExpiryHasBeenSet() const { return m_urlExpiryHasBeenSet; }
97 template<typename UrlExpiryT = Aws::Utils::DateTime>
98 void SetUrlExpiry(UrlExpiryT&& value) { m_urlExpiryHasBeenSet = true; m_urlExpiry = std::forward<UrlExpiryT>(value); }
99 template<typename UrlExpiryT = Aws::Utils::DateTime>
100 MessageTemplateAttachment& WithUrlExpiry(UrlExpiryT&& value) { SetUrlExpiry(std::forward<UrlExpiryT>(value)); return *this;}
102
104
107 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
108 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
109 template<typename AttachmentIdT = Aws::String>
110 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
111 template<typename AttachmentIdT = Aws::String>
112 MessageTemplateAttachment& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
114 private:
115
117 bool m_contentDispositionHasBeenSet = false;
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::Utils::DateTime m_uploadedTime{};
123 bool m_uploadedTimeHasBeenSet = false;
124
125 Aws::String m_url;
126 bool m_urlHasBeenSet = false;
127
128 Aws::Utils::DateTime m_urlExpiry{};
129 bool m_urlExpiryHasBeenSet = false;
130
131 Aws::String m_attachmentId;
132 bool m_attachmentIdHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace QConnect
137} // 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