AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GenericAttachment.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lex/model/Button.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 LexRuntimeService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LEXRUNTIMESERVICE_API GenericAttachment() = default;
38 AWS_LEXRUNTIMESERVICE_API GenericAttachment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMESERVICE_API GenericAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTitle() const { return m_title; }
48 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
49 template<typename TitleT = Aws::String>
50 void SetTitle(TitleT&& value) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
51 template<typename TitleT = Aws::String>
52 GenericAttachment& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
54
56
59 inline const Aws::String& GetSubTitle() const { return m_subTitle; }
60 inline bool SubTitleHasBeenSet() const { return m_subTitleHasBeenSet; }
61 template<typename SubTitleT = Aws::String>
62 void SetSubTitle(SubTitleT&& value) { m_subTitleHasBeenSet = true; m_subTitle = std::forward<SubTitleT>(value); }
63 template<typename SubTitleT = Aws::String>
64 GenericAttachment& WithSubTitle(SubTitleT&& value) { SetSubTitle(std::forward<SubTitleT>(value)); return *this;}
66
68
71 inline const Aws::String& GetAttachmentLinkUrl() const { return m_attachmentLinkUrl; }
72 inline bool AttachmentLinkUrlHasBeenSet() const { return m_attachmentLinkUrlHasBeenSet; }
73 template<typename AttachmentLinkUrlT = Aws::String>
74 void SetAttachmentLinkUrl(AttachmentLinkUrlT&& value) { m_attachmentLinkUrlHasBeenSet = true; m_attachmentLinkUrl = std::forward<AttachmentLinkUrlT>(value); }
75 template<typename AttachmentLinkUrlT = Aws::String>
76 GenericAttachment& WithAttachmentLinkUrl(AttachmentLinkUrlT&& value) { SetAttachmentLinkUrl(std::forward<AttachmentLinkUrlT>(value)); return *this;}
78
80
83 inline const Aws::String& GetImageUrl() const { return m_imageUrl; }
84 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
85 template<typename ImageUrlT = Aws::String>
86 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::forward<ImageUrlT>(value); }
87 template<typename ImageUrlT = Aws::String>
88 GenericAttachment& WithImageUrl(ImageUrlT&& value) { SetImageUrl(std::forward<ImageUrlT>(value)); return *this;}
90
92
95 inline const Aws::Vector<Button>& GetButtons() const { return m_buttons; }
96 inline bool ButtonsHasBeenSet() const { return m_buttonsHasBeenSet; }
97 template<typename ButtonsT = Aws::Vector<Button>>
98 void SetButtons(ButtonsT&& value) { m_buttonsHasBeenSet = true; m_buttons = std::forward<ButtonsT>(value); }
99 template<typename ButtonsT = Aws::Vector<Button>>
100 GenericAttachment& WithButtons(ButtonsT&& value) { SetButtons(std::forward<ButtonsT>(value)); return *this;}
101 template<typename ButtonsT = Button>
102 GenericAttachment& AddButtons(ButtonsT&& value) { m_buttonsHasBeenSet = true; m_buttons.emplace_back(std::forward<ButtonsT>(value)); return *this; }
104 private:
105
106 Aws::String m_title;
107 bool m_titleHasBeenSet = false;
108
109 Aws::String m_subTitle;
110 bool m_subTitleHasBeenSet = false;
111
112 Aws::String m_attachmentLinkUrl;
113 bool m_attachmentLinkUrlHasBeenSet = false;
114
115 Aws::String m_imageUrl;
116 bool m_imageUrlHasBeenSet = false;
117
118 Aws::Vector<Button> m_buttons;
119 bool m_buttonsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace LexRuntimeService
124} // namespace Aws
GenericAttachment & WithButtons(ButtonsT &&value)
const Aws::Vector< Button > & GetButtons() const
AWS_LEXRUNTIMESERVICE_API GenericAttachment(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API GenericAttachment()=default
GenericAttachment & WithAttachmentLinkUrl(AttachmentLinkUrlT &&value)
void SetAttachmentLinkUrl(AttachmentLinkUrlT &&value)
AWS_LEXRUNTIMESERVICE_API GenericAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
GenericAttachment & WithImageUrl(ImageUrlT &&value)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
GenericAttachment & AddButtons(ButtonsT &&value)
GenericAttachment & WithTitle(TitleT &&value)
GenericAttachment & WithSubTitle(SubTitleT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue