AWS SDK for C++

AWS SDK for C++ Version 1.11.911

Loading...
Searching...
No Matches
NotificationEventAttachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/notifications/Notifications_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Notifications {
20namespace Model {
21
28 public:
29 AWS_NOTIFICATIONS_API NotificationEventAttachment() = default;
32 AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetDisplayName() const { return m_displayName; }
39 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
40 template <typename DisplayNameT = Aws::String>
41 void SetDisplayName(DisplayNameT&& value) {
42 m_displayNameHasBeenSet = true;
43 m_displayName = std::forward<DisplayNameT>(value);
44 }
45 template <typename DisplayNameT = Aws::String>
47 SetDisplayName(std::forward<DisplayNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetAttachmentDownloadUrl() const { return m_attachmentDownloadUrl; }
58 inline bool AttachmentDownloadUrlHasBeenSet() const { return m_attachmentDownloadUrlHasBeenSet; }
59 template <typename AttachmentDownloadUrlT = Aws::String>
60 void SetAttachmentDownloadUrl(AttachmentDownloadUrlT&& value) {
61 m_attachmentDownloadUrlHasBeenSet = true;
62 m_attachmentDownloadUrl = std::forward<AttachmentDownloadUrlT>(value);
63 }
64 template <typename AttachmentDownloadUrlT = Aws::String>
65 NotificationEventAttachment& WithAttachmentDownloadUrl(AttachmentDownloadUrlT&& value) {
66 SetAttachmentDownloadUrl(std::forward<AttachmentDownloadUrlT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetContentType() const { return m_contentType; }
77 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
78 template <typename ContentTypeT = Aws::String>
79 void SetContentType(ContentTypeT&& value) {
80 m_contentTypeHasBeenSet = true;
81 m_contentType = std::forward<ContentTypeT>(value);
82 }
83 template <typename ContentTypeT = Aws::String>
85 SetContentType(std::forward<ContentTypeT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_displayName;
91
92 Aws::String m_attachmentDownloadUrl;
93
94 Aws::String m_contentType;
95 bool m_displayNameHasBeenSet = false;
96 bool m_attachmentDownloadUrlHasBeenSet = false;
97 bool m_contentTypeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Notifications
102} // namespace Aws
AWS_NOTIFICATIONS_API NotificationEventAttachment(Aws::Utils::Json::JsonView jsonValue)
NotificationEventAttachment & WithAttachmentDownloadUrl(AttachmentDownloadUrlT &&value)
AWS_NOTIFICATIONS_API NotificationEventAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationEventAttachment & WithContentType(ContentTypeT &&value)
AWS_NOTIFICATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NOTIFICATIONS_API NotificationEventAttachment()=default
NotificationEventAttachment & WithDisplayName(DisplayNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue